function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function P7_getWD(tDim){ //v2.3 by PVII
 var sh=0,sw=0,rt=0;if(window.innerWidth){sh=window.innerHeight;sw=window.innerWidth;
 }else if(document.body){sh=document.body.clientHeight;sw=document.body.clientWidth;
 if(document.body.offsetHeight==sh&&document.documentElement&&document.documentElement.clientHeight){
  sh=document.documentElement.clientHeight;}
 if(document.body.offsetWidth==sw&&document.documentElement&&document.documentElement.clientWidth) {
 sw=document.documentElement.clientWidth;}}rt=(tDim=="width")?sw:sh;return rt;
}
function P7_OpResizeFix(a) { //v1.1 by PVII
if(!window.opera){return;}if(!document.p7oprX){
 document.p7oprY=window.innerWidth;document.p7oprX=window.innerHeight;
 document.onmousemove=P7_OpResizeFix;
 }else{if(document.p7oprX){
  var k=document.p7oprX-window.innerHeight;
  var j=document.p7oprY - window.innerWidth;
  if(k>1 || j>1 || k<-1 || j<-1){
  document.p7oprY=window.innerWidth;document.p7oprX=window.innerHeight;
  location.reload();}}}
}
P7_OpResizeFix();

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function P7_setTabBar(){ //v0.8 beta script by PVII
 //set the image over and down name convention
 document.p7TabOver="_over";
 document.p7TabDown="_down";
 var i,g,gg,tl,tu,args=P7_setTabBar.arguments;
 P7TabProp=new Array();for(i=0;i<args.length;i++){P7TabProp[i]=args[i];}
 P7TabIM=new Array();P7TabSB = new Array();for(i=0;i<P7TabProp[1];i++){tl="p7TBim"+(i+1);
 if((g=MM_findObj(tl))!=null){P7TabIM[i]=tl;}else{alert('P7TabBar:missing image:'+tl);return;}
 tl="p7TBsub"+(i+1);if((g=MM_findObj(tl))!=null){P7TabSB[i]=tl;gg=(document.layers)?g:g.style;
 gg.visibility="hidden";}else{alert('P7TabBar:missing submenu:'+tl);return;}}
 document.P7_TBswapd=new Array();document.P7_TBswapo=new Array();for(i=0;i<P7TabIM.length;i++){
 g=MM_findObj(P7TabIM[i]);gg=g.src;g.p7TBim=g.src;tu=gg.lastIndexOf(".");
 g.p7TBimo=gg.substring(0,tu)+document.p7TabOver+gg.substring(tu,gg.length);
 g.p7TBimd=gg.substring(0,tu)+document.p7TabDown+gg.substring(tu,gg.length);
 if(P7TabProp[2]>1){document.P7_TBswapo[i]=new Image();document.P7_TBswapo[i].src=g.p7TBimo;}
 if(P7TabProp[2]>0){document.P7_TBswapd[i]=new Image();document.P7_TBswapd[i].src=g.p7TBimd;}}
 g=MM_findObj('P7TabH');gg=(document.layers)?g:g.style;gg.visibility="hidden";
 if((g=MM_findObj(P7TabProp[3]))!=null){if(g.className){g.className=P7TabProp[4];}}
 document.P7TabBar=true;
}
function P7_trigTabBar(bu){ //v0.8 beta script by PVII
 if(!document.P7TabBar){return;}
 var i,g,d,dB=P7TabProp[0]-1,tF=false;
 for(i=0;i<P7TabSB.length;i++){g=MM_findObj(P7TabSB[i]);gg=(document.layers)?g:g.style;
 d=MM_findObj(P7TabIM[i]);if(P7TabIM[i]==bu){tF=true;gg.visibility="visible";
 if(P7TabProp[2]>0){if(i==dB){d.src=d.p7TBimd;}else if (P7TabProp[2]>1){d.src=d.p7TBimo;}}
 g=MM_findObj('P7TabH');gg=(document.layers)?g:g.style;gg.visibility="visible";
 }else{gg.visibility="hidden";if(P7TabProp[2]>0){d.src=d.p7TBim;}}}
 if(!tF){g=MM_findObj(P7TabSB[dB]);d=MM_findObj(P7TabIM[dB]);gg=(document.layers)?g:g.style;
 gg.visibility="visible";if(P7TabProp[2]>0){d.src=d.p7TBimd;}
 g=MM_findObj('P7TabH');gg=(document.layers)?g:g.style;gg.visibility="hidden";}
}
function P7_styleFixA(tLay1,theWidth1,tLay2,theWidth2,theMargin){ //v0.4 beta script by PVII
 var w,totW,tL,tL2,doc,args=P7_styleFixA.arguments;w=P7_getWD("width");
 P7STXA=new Array();for(var i=0;i<args.length;i++){P7STXA[i]=args[i];}
 totW=theWidth1+theWidth2+theMargin;tL=parseInt((w-totW)/2);
 tL=(tL<=0)?1:tL;tL2=tL+theWidth1+theMargin;
 doc="<style>\n#"+tLay1+"{left: "+tL+"px}\n#"+tLay2+"{left: "+tL2+"px}\n</style>";
 document.P7StA=true;document.write(doc);
}
function P7_styleRR(){ //v0.4 beta script by PVII
 var g,gg,pa,w,totW,tL,tL2;if(document.layers){MM_reloadPage(false);
 }else{if(document.P7StA){pa=(window.opera)?'':'px';
 w=P7_getWD("width");totW=P7STXA[1]+P7STXA[3]+P7STXA[4];
 tL=parseInt((w-totW)/2);tL=(tL<=0)?1:tL;tL2=tL+P7STXA[1]+P7STXA[4];
 if((g=MM_findObj(P7STXA[0]))!=null){g.style.left=tL+pa;}
 if((g=MM_findObj(P7STXA[2]))!=null){g.style.left=tL2+pa;}}}
}
function P7_Shop(a) { //v1.0 by PVII
 document.p7shop = window.open(a,'theShop','toolbar=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes,height=600,width=800');
 document.p7shop.focus();
}

function P7_tutpop(a) { //v1.0 by PVII
 document.p7tutpop = window.open(a,'thetoot','toolbar=no,status=yes,scrollbars=yes,resizable=yes,height=440,width=640');
 document.p7tutpop.focus();
}
function P7_infopop(a) { //v1.0 by PVII
 document.p7tutpop = window.open(a,'theInfo','toolbar=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,height=440,width=640');
 document.p7tutpop.focus();
}
//frameset buster
if (top != window){
    top.location.href = window.location.href;
}