<!--
function Ich_swapImage() {
  var i,j=0,x,a=Ich_swapImage.arguments; document.Ich_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=Ich_findObj(a[i]))!=null){document.Ich_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function Ich_swapImgRestore() {
  var i,x,a=document.Ich_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function Ich_preloadImages() {
 var d=document; if(d.images){ if(!d.Ich_p) d.Ich_p=new Array();
   var i,j=d.Ich_p.length,a=Ich_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.Ich_p[j]=new Image; d.Ich_p[j++].src=a[i];}}
}

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

function Ich_findObj(n, d) {
  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=Ich_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function KR_centerLayers() {
	if (document.layers || document.all || document.getElementById){
		var winWidth, winHeight, i, horz, vert, width, height, offsetX, offsetY, negX, negY, group, x, y, args;
		args = KR_centerLayers.arguments;
		
		onresize = KR_reload;

				
		winWidth = (document.all)?document.body.clientWidth:window.innerWidth;
		winHeight = (document.all)?document.body.clientHeight:window.innerHeight;
				
		for (i=0; i<(args.length-9); i+=10) {
			horz    = args[i+1];
			vert    = args[i+2];
			width   = parseInt(args[i+3]);
			height  = parseInt(args[i+4]);
			offsetX = parseInt(args[i+5]);
			offsetY = parseInt(args[i+6]);
			negX    = args[i+7];
			negY    = args[i+8];
		
			x = ((winWidth - width)/2) + offsetX;
			y = ((winHeight - height)/2) + offsetY;
						
			x = (negX=='false' && (x < 0))?0:x;
			y = (negY=='false' && (y < 0))?0:y;
				
			layerObj = (document.getElementById)?document.getElementById(args[i]):Ich_findObj(args[i]);
			
			if (layerObj!=null) {
				layerObj = (layerObj.style)?layerObj.style:layerObj;
				layerObj.left = (horz=="true")?x:layerObj.left;
				layerObj.top = (vert=="true")?y:layerObj.top;
			}
		}
	}
}

function KR_reload() {location.reload();}

function main(link) {
ow1 = window.open(''+link+'','preview','WIDTH=400,HEIGHT=690,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow1.moveTo(0,0);
ow1.opener=self
if(navigator.appVersion.charAt(0)>=3){ow1.focus()}
}

function Wopen(link) {
ow2 = window.open(''+link+'','preview','WIDTH=380,HEIGHT=380,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow2.moveTo(0,0);
ow2.opener=self
if(navigator.appVersion.charAt(0)>=3){ow2.focus()}
}

function Ich_showHideLayers() {
  var i,p,v,obj,args=Ich_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=Ich_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 Mfopen(link) {
ow2 = window.open(''+link+'','preview','WIDTH=380,HEIGHT=640,RESIZABLE=yes,TOOLBAR=no,SCROLLBARS=AUTO,directories=no,status=no,LOCATION=no,menubar=no');
ow2.moveTo(0,0);
ow2.opener=self
if(navigator.appVersion.charAt(0)>=3){ow2.focus()}
}

function Bbs(link) {
ow8 = window.open(''+link+'','preview','WIDTH=640,HEIGHT=480,RESIZABLE=no,TOOLBAR=no,SCROLLBARS=yes,directories=no,status=no,LOCATION=no,menubar=no');
ow8.moveTo(0,0);
ow8.opener=self
if(navigator.appVersion.charAt(0)>=3){ow8.focus()}
}

