function at_show_aux(parent,child)
{var p=document.getElementById(parent);var c=document.getElementById(child);var top=(c["at_position"]=="y")?p.offsetHeight+2:0;var left=(c["at_position"]=="x")?p.offsetWidth+2:0;for(;p;p=p.offsetParent)
{top+=p.offsetTop;left+=p.offsetLeft;}
c.style.position="absolute";c.style.top=top+'px';c.style.left=left+'px';c.style.visibility="visible";}
function at_show()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);if(c.style.visibility=='hidden'){c.style.visibility='visible';}
at_show_aux(p.id,c.id);clearTimeout(c["at_timeout"]);}
function divshow(){var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);at_show_aux(p.id,c.id);clearTimeout(c["at_timeout"]);}
function at_hide()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);c["at_timeout"]=setTimeout("document.getElementById('"+c.id+"').style.visibility = 'hidden'",100);}
function at_click()
{var p=document.getElementById(this["at_parent"]);var c=document.getElementById(this["at_child"]);if(c.style.visibility!="visible")at_show_aux(p.id,c.id);else c.style.visibility="hidden";return false;}
function at_attach(parent,child,showtype,position,cursor)
{var p=document.getElementById(parent);var c=document.getElementById(child);p["at_parent"]=p.id;c["at_parent"]=p.id;p["at_child"]=c.id;c["at_child"]=c.id;p["at_position"]=position;c["at_position"]=position;c.style.position="absolute";c.style.visibility="hidden";if(cursor!=undefined)p.style.cursor=cursor;switch(showtype)
{case"click":p.onclick=at_click;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide;break;case"hover":p.onmouseover=at_show;p.onmouseout=at_hide;c.onmouseover=at_show;c.onmouseout=at_hide;break;}}
function P7_ExpMenu(){if(navigator.appVersion.indexOf("MSIE")==-1){return;}
var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='p7menubar';for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;this.className=cl;};lg[k].onmouseout=function(){c=this.className;this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}}
function toggle(objLink,imgName){document.images[imgName].src=(document.images[imgName].src==plus.src)?minus.src:plus.src;objLink.blur();return false;}
var jkpanel={controltext:'',$mainpanel:null,contentdivheight:0,openclose:function($,speed){this.$mainpanel.stop()
if(this.$mainpanel.attr('openstate')=='closed')
this.$mainpanel.animate({top:0},speed).attr({openstate:'open'})
else
this.$mainpanel.animate({top:-this.contentdivheight+'px'},speed).attr({openstate:'closed'})},init:function(file,height,speed){jQuery(document).ready(function($){if($(window).width()>1100)
jkpanel.$mainpanel=$('<div id="dropdownpanel" style="margin-left: 8%;"><div class="contentdiv " style="border-bottom: 4px solid #3399cc;" ></div><div class="control" >'+'</div></div>').prependTo('body')
else
jkpanel.$mainpanel=$('<div id="dropdownpanel" ><div class="contentdiv " style="border-bottom: 4px solid #3399cc;" ></div><div class="control" >'+'</div></div>').prependTo('body')
var $contentdiv=jkpanel.$mainpanel.find('.contentdiv')
var $controldiv=jkpanel.$mainpanel.find('.control').css({cursor:'wait'})
$contentdiv.load(file,'',function($){var heightattr=isNaN(parseInt(height))?'auto':parseInt(height)+'px'
$contentdiv.css({height:heightattr})
jkpanel.contentdivheight=parseInt($contentdiv.get(0).offsetHeight)
jkpanel.$mainpanel.css({top:-jkpanel.contentdivheight+'px',visibility:'visible'}).attr('openstate','closed')
$controldiv.css({cursor:'hand',cursor:'pointer'})})
jkpanel.$mainpanel.click(function(){jkpanel.openclose($,speed)})})}}
