<!--

function gywm() {
win = window.open("../gywm.htm", "windowName", "width=600,innerWidth=679,height=380,innerHeight=140,left=40,top=40,screenX=40,screenY=40,location=0,menubar=0,scrollbars=no,status=0,toolbar=0");
}

function doPopup() {
win = window.open("../search.htm", "windowName", "width=479,innerWidth=679,height=400,innerHeight=140,left=40,top=40,screenX=40,screenY=40,location=0,menubar=0,scrollbars=yes,status=0,toolbar=0");
}

/*function doPopup1() {
win = window.open("http://gb.ibucm.com", "windowName","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
}
*/
function doPopup2() {
win = window.open("../yljd.htm", "windowName", "width=450,innerWidth=679,height=300,innerHeight=140,left=40,top=40,screenX=40,screenY=40,location=0,menubar=0,scrollbars=yes,status=0,toolbar=0");
}

function doPopup3() {
win = window.open("../note.htm", "windowName", "width=550,innerWidth=679,height=320,innerHeight=140,left=40,top=40,screenX=40,screenY=40,location=0,menubar=0,scrollbars=yes,status=0,toolbar=0");
}

function doPopup4() {
win = window.open("../help.htm", "windowName", "width=615,innerWidth=679,height=500,innerHeight=140,left=40,top=40,screenX=40,screenY=40,location=0,menubar=0,scrollbars=yes,status=0,toolbar=0");
}

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);

var expdate=new Date();
expdate.setTime(expdate.getTime()+(24*60*60*1000*365));

function SetCookie(name,value)
{


var argv=SetCookie.arguments;
 var argc=SetCookie.arguments.length;
 var expires=(2<argc)?argv[2]:null;
 var path=(3<argc)?argv[3]:null;
 var domain=(4<argc)?argv[4]:null;
 var secure=(5<argc)?argv[5]:false;
 document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");
}

function writecook()
{
  var url=location.href;
  SetCookie("historyUrlyyx",url,expdate,"/",null,false);
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function bb(qaz) 
{qaz.style.visibility="hidden"} 
function aa(qaz) 
{qaz.style.visibility="visible"} 

/*
function showhidelayer(layer)
{
 var x=window.event.clientX;
 var y=window.event.clientY;
 var x1=layer.style.posWidth+x;
 var y1=layer.style.posHeight+y+20;
 if(x1>window.document.body.offsetWidth)
{layer.style.posLeft=window.document.body.offsetWidth-layer.style.posWidth-30}
 else
 {layer.style.posLeft=x-100}
 if(y1>window.document.body.offsetHeight)
{layer.style.posTop=y-layer.style.posHeight-15}
  else
  {layer.style.posTop=y+window.document.body.scrollTop+5}
 if(layer.style.visibility=="hidden")
  {layer.style.visibility="visible";}
 else
  {
   layer.style.visibility="hidden"}
}
*/

function showhidelayer(layer)
{
 var x=window.event.clientX;
 var y=window.event.clientY;
 var x1=layer.style.posWidth+x;
 var y1=layer.style.posHeight+y;
 //var screenX=window.document.body.offsetWidth;
/*var screeny=window.document.body.offsetHeight; */
 if(x1>window.document.body.offsetWidth)
{layer.style.posLeft=window.document.body.offsetWidth-layer.style.posWidth-30}
 else
 {layer.style.posLeft=x-100}
 if(y1>window.document.body.offsetHeight)
{layer.style.posTop=y-layer.style.posHeight-5}
  else
  {layer.style.posTop=y+window.document.body.scrollTop+5}
 if(layer.style.visibility=="hidden")
  {layer.style.visibility="visible"; 
    theobject=layer
    highlighting=setInterval("highlightit(theobject)",90)}
 else
  {hid(layer);
   layer.style.visibility="hidden"}
}

function hid(layer)
{
	clearInterval(highlighting)
	layer.filters.alpha.opacity=0
}

function highlightit(layer)
{
	if (layer.filters.alpha.opacity<100)
		layer.filters.alpha.opacity+=10
	else if (window.highlighting)
		clearInterval(highlighting)
}

function swapimage(pic,url)
{pic.src=url}
//-->
