/** * * common.js * Javascript 1.0 * iO2 Consulting * info@iO2Consulting.com * November 2002 * */  //from quirksmode - modifiedfunction getObj(name){  if (document.getElementById)  {  	this.obj = document.getElementById(name);	this.style = document.getElementById(name).style;  }  else if (document.all)  {	this.obj = document.all[name];	this.style = document.all[name].style;  }  else if (document.layers)  {   	this.obj = document.layers[name];   	this.style = document.layers[name];  }}var clipTop = 0;var clipWidth = 280;var clipBottom = 455;var topper = 0;var lyrheight = 0;var time,amount,theTime,theHeight,DHTML;function init(layername){	DHTML = (document.getElementById || document.all || document.layers)	if (!DHTML) return;	var x = new getObj(layername);	if (document.layers)	{		lyrheight = x.style.clip.bottom;		lyrheight += 20;		x.style.clip.top = clipTop;		x.style.clip.left = 0;		x.style.clip.right = clipWidth;		x.style.clip.bottom = clipBottom;	}	else if (document.getElementById || document.all)	{		lyrheight = x.obj.offsetHeight;		lyrheight += 40;		x.style.clip = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';	}}function getLayerHeight(layername){	var thisLayerHeight = 0;	DHTML = (document.getElementById || document.all || document.layers)	if (!DHTML) return;	var x = new getObj(layername);	if (document.layers)	{		thisLayerHeight = x.style.clip.bottom;		thisLayerHeight += 20;				return thisLayerHeight;	}	else if (document.getElementById || document.all)	{		thisLayerHeight = x.obj.offsetHeight;		thisLayerHeight += 40;		return thisLayerHeight;	}}function scrollayer(layername,amt,tim){	var lyrhght;		lyrhght = getLayerHeight(layername);	if (!DHTML) return;	thelayer = new getObj(layername);	if (!thelayer) return;	lyrheight = lyrhght;	amount = amt;	theTime = tim;	realscroll();}function realscroll(){	if (!DHTML) return;	clipTop += amount;	clipBottom += amount;	topper -= amount;	if (clipTop < 0 || clipBottom > lyrheight)	{		clipTop -= amount;		clipBottom -= amount;		topper += amount;		return;	}	if (document.getElementById || document.all)	{		clipstring = 'rect('+clipTop+'px,'+clipWidth+'px,'+clipBottom+'px,0)';		thelayer.style.clip = clipstring;		thelayer.style.top = topper + 'px';	}	else if (document.layers)	{		thelayer.style.clip.top = clipTop;		thelayer.style.clip.bottom = clipBottom;		thelayer.style.top = topper;	}	time = setTimeout('realscroll()',theTime);}function stopScroll(){	if (time) clearTimeout(time);}//end quirksmode 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 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_VScroller(el,dr,ty,oy,spd) { //v1.6 by PVII var g,gg,fr,sp,pa='',slw=true,m=false,h,ly;ty=parseInt(ty); if((g=MM_findObj(el))!=null){gg=(document.layers)?g:g.style;}else{return;} if(dr=="Stop"){if(g.toMove){clearTimeout(g.p7Magic);}g.toMove=false;} if((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1)&& !window.opera){pa="px";} if(navigator.userAgent.indexOf("NT")>-1 || navigator.userAgent.indexOf("Windows 2000")>-1){slw=false;} if(spd=="Slow"){sp=(slw)?2:1;fr=(slw)?40:30;}else if(spd=="Medium"){sp=(slw)?4:1;fr=(slw)?40:10; }else{sp=(slw)?8:4;fr=(slw)?40:10;}if(spd=="Warp"){sp=5000;}var yy=parseInt(gg.top);if(isNaN(yy)){ if(g.currentStyle){yy=parseInt(g.currentStyle.top);}else if(document.defaultView){ yy=parseInt(document.defaultView.getComputedStyle(g,"").getPropertyValue("top"));}else{yy=0;}} if(document.all || document.getElementById){h=parseInt(g.offsetHeight); if(!h){h=parseInt(g.style.pixelHeight);} }else if(document.layers){h=parseInt(g.clip.height);}ly=ty+parseInt(oy)-h; if(dr=="Down"){if(yy>ly){m=true;yy-=sp;if(yy<ly){yy=ly;}}} if(dr=="Up"){if(yy<ty){m=true;yy+=sp;if(yy>ty){yy=ty;}}} if(dr=="Reset"){gg.top=ty+pa;if(g.toMove){clearTimeout(g.p7Magic);}g.toMove=false;} if(m){gg.top=yy+pa;if(g.toMove){clearTimeout(g.p7Magic);}g.toMove=true;  eval("g.p7Magic=setTimeout(\"P7_VScroller('"+el+"','"+dr+"',"+ty+","+oy+",'"+spd+"')\","+fr+")"); }else{g.toMove=false;}} 
