// READ THIS Dr. Clue's X-browser X-frame Div-Recursive DHTML library
// copyright @1998,99,00... drclue/www.drclue.net License is granted for
// this software, & components in support of personal, home pages.
// All other rights reserved.

DC_PIXELTUNE=0,iZindex=DC_tries=DC_tries=iScan=0
DC_W3C=DC_NS=DC_IE=DC_defDoc=DC_nullChk=szEpath=oAuto=null
DC_FRAMES=false;var MXstart="mousedown:mouseover"
DC_FRAMEpath="top."
DC_READY=false;
function DCgetCSSclass(oD,szCSS)
	{
	if((typeof oD.styleSheets)!='undefined')
	for(xx=oD.styleSheets.length-1;xx>=0;xx--)
		{
		if(typeof oD.styleSheets[xx].cssRules !="undefined")
			{
			if(oD.styleSheets[xx].cssRules.item(szCSS))
			  return oD.styleSheets[xx].cssRules.item(szCSS).style
			}else if((typeof oD.styleSheets[xx].rules)!='undefined')
				if(oD.styleSheets[xx].rules.length)
				if(oD.styleSheets[xx].rules.item(szCSS))
				return oD.styleSheets[xx].rules.item(szCSS).style;
		}
	if(oD.classes)if(oD.classes[szCSS])return oD.classes[szCSS].all;
	alert("Could not access "+szCSS)
	return null
	}
function popWin(szWIN,szHREF,szOPTIONS)
	{
	var bDebug=true,szOptions="width="+(screen.width)+",height="+(screen.height-20)+",scrollbars=yes,resizable=yes,location="+((bDebug)?"yes":"no")+",status="+((bDebug)?"yes":"no")
	szHref='about:blank';
	if(popWin.arguments.length>1)if(szHREF)szHref=szHREF;
	if(popWin.arguments.length>2)szOptions=szOPTIONS;
	var obWIN=eval(szWIN+'=window.open("'+szHref+'","'+szWIN+'","'+szOptions+'")');
	obWIN.moveTo(0,0)
	if(obWIN)obWIN.focus();
	return obWIN
	}
function DCa2o(features,oObject,nocase)
	{
	aF=features.split(",")
	oP=(typeof oObject=='undefined')?(new Object()):oObject
	for(kk=0;kk<aF.length;kk++)
	   {
	   aNV=aF[kk].split("=");szF=aNV[0];szA=aNV.slice(1).join("=");
	   eval("oP."+((nocase)?szF:szF.toUpperCase())+"=eval(szA)")
	   }
	return oP}
function toI(o){if(o)return parseInt(o);return 0;}
function toX(iV,iLen)
	{for(szR='';iV>0;szR=String("0123456789ABCDEF").substring((iC=(iV%16)),iC+1)+szR,iV=Math.floor((iV-iC)/16));
	if(toX.arguments.length>1&&szR.length<iLen)szR+=String("0000").substring(0,iLen-szR.length)
	return szR}
function DCgetTime(obj)
	{var oD=new Date();return oD.getHours()+":"+oD.getMinutes()+":"+oD.getSeconds()}
function DCgetForm(szF)
	{
	var oP=DCparsePath(szF),result=null,aF=oP.szL.split("."),oL=null
	if(aF.length==0)return null
	var oW=eval(oP.szWindow);if(!oW)return null
	var oD=oW.document,szF=aF[aF.length-1]
	if(DC_NS&&aF.length>1)oL=oD.getElementById(aF[0]);if(oL)oD=oL.document
	return oD.forms[szF]
	}
function DCgetImage(szF)
	{
	var oP=DCparsePath(szF),result=null,aF=oP.szL.split("."),oL=null
	if(aF.length==0)return null
	var oW=eval(oP.szWindow);if(!oW)return null
	var oD=oW.document,szF=aF[aF.length-1]
	if(DC_NS&&aF.length>1)oL=oD.getElementById(aF[0]);if(oL)oD=oL.document
	return oD.images[szF]
	}
function DCshowMe(obj)
	{
	var tt="",z=0,iW=6
	for(i in obj){tt+=(((z++)%iW)?",":"\n")+i+"="+(tt+=(i)?eval("obj."+i):"NULL");}
	alert(tt)}
function DCreplace(szT,szF,szR){return szT.split(szF).join(szR)}
function DCgetPath(szL)
	{
	var oL=DCok(szL);
	if(oL)if(oL.navPath)return oL.navPath
	if(szL.split)return DCparsePath(szL);
	return null
	}
function DCgetDefaultWindow(){if(self.frames)if(self.frames.length>1)return self.frames[0];return self;}
function DCgetDefaultDocument(){return DCgetDefaultWindow().document;}
function DCgetParent(pL){return ((oN=DCgetPath(pL)))?eval(oN.szParent):DCgetDefaultWindow()}
function DCgetParentWindow(szL)
	{if(DCgetParentWindow.arguments.length==0)return DCgetDefaultWindow()
	if(!szL)return DCgetDefaultWindow()
	if(!szL.split)return szL.window
	navPath=DCparsePath(szL)
	if(!navPath)return DCgetDefaultWindow()
	iDoc=navPath.szParent.lastIndexOf(".document")
	if(iDoc==navPath.szParent.length-9)return eval(navPath.szParent.substring(0,iDoc))
	return eval(navPath.szParent)
	}
function DCgetParentDocument(szL)
	{
	if(!szL)return DCgetDefaultDocument()
	oParent=DCgetParent(szL)
	if(oParent)if(oParent.document)return oParent.document
	return (oParent)?oParent:DCgetDefaultDocument()
	}
function DCgetW(pL){oL=DCok(pL);return(oL)?DCclip(oL)[1]:0}
function DCgetH(pL){oL=DCok(pL);return(oL)?DCclip(oL)[2]:0}
function DCgetWinHeight(szL)
	{
	var oW=DCgetParentWindow(szL);if(!oW)return 0
	if(oW.innerHeight)return oW.innerHeight
	if(oW.document)if(oW.document.body)if(oW.document.body.clientHeight)return oW.document.body.clientHeight
	return DCgetH(oW)}
function DCgetWinWidth(szL)
	{
	var oW=DCgetParentWindow(szL);if(!oW)return 0
	if(oW.innerWidth)return oW.innerWidth+DC_PIXELTUNE
	if(oW.document)if(oW.document.body)if(oW.document.body.clientWidth)return oW.document.body.clientWidth+DC_PIXELTUNE
	return DCgetW(oW)}
function DCgetName(pL){return ((oL=DCok(pL)))?oL.navPath.szL:"";}
function DCchop(sz,szChar)
	{
	var aa=sz.split(szChar);
	for(;aa.length>0;aa.pop())if(aa[aa.length-1])break;
	for(;aa.length>0;aa.shift())if(aa[0])break;
	return aa.join(szChar)
	}
var ppRep=new Array(".layers",".all","@",".document.","'","\"","['",".","']",".","[\"",".","\"]",".","..",".")
function DCparsePath(szL)
	{
	if(szL.navPath)return szL.navPath
var oP={szPath:DCreplace(szL,"'","\""),bExists:false,bChild:false,szWindow:null,szL:null,szParent:null}
	if(!szL)return oP;if(!szL.split )return oP
	for(pp=0;pp<ppRep.length;pp+=2)szL=szL.split(ppRep[pp]).join(ppRep[pp+1])
if(szL.indexOf("all."	  )<0 )szL="all."+szL
if(szL.indexOf("document.")<0 )szL=((DC_FRAMES)?"parent.frames[0].document.":"parent.document.")+szL
if(szL.indexOf("document.")==0)szL=((DC_FRAMES)?"parent.frames[0].":"parent.")+szL
	oP.szPath		=szL=DCchop(szL,".")
	var rTemp		=szL.split(".all")
	oP.bChild		=(rTemp.length>2)
	oP.szL		=rTemp.pop()
	oP.szParent	=rTemp.join(".all")
	oP.szL		=DCchop(oP.szL,".")
	oP.szWindow	=oP.szParent.substring(0,oP.szParent.indexOf(".document"))
	oW=eval(oP.szWindow)
//	if(oW){oL=oW.document.getElementById(oP.szL)}

	oD=eval(oP.szParent)
	if(oW)
		{
		if(typeof oD.getElementById=='undefined')
		{
		oD.getElementById=oW.DC_getElementById;//DCbindDoc(oD)
		}
		if(typeof oD.getElementById!='undefined')
		oL=oD.getElementById(oP.szL)
		}


	if(oL)if(!oP.bExists){oP.bExists=true;oL.NAME=oP.szL}
	return oP
	}
function DCok(szL)//check/normalize
	{
	if(!szL||szL.navPath)return szL
	var oL
	if(szL.navPath||!szL.split)return szL
	var oN=new DCparsePath(szL);
	if(!oN.bExists)return null;
	oTP=eval(oN.szParent);
	var oW=eval(oN.szWindow);if(!oW)return null
	oL=oW.document.getElementById(oN.szL);
	if(!oTP.getElementById)  {oTP.getElementById=DC_getElementById;}
	if(oL.navPath)return oL;oL.navPath=oN
	if(!oL.window)oL.window=DCgetParentWindow(szL)
	if(oN.bChild)oL.oParent=DCok(oN.szParent)
	DCbindNode(oL)
	return oL;
	}
function DCgetX(szL){return (oL=DCok(szL))?toI(oL.style.left):0}
function DCgetY(szL){return (oL=DCok(szL))?toI(oL.style.top):0}
function DCwhereIs(oA)
	{
	if(!oA)return null;oA.LEFT=oA.TOP=0
	if(typeof oA.x=="number"){oA.LEFT=oA.x;oA.TOP=oA.y;return oA}
	if(typeof oA.offsetLeft!="number")return oA
	oA.TOP=oA.offsetTop;oA.LEFT=oA.offsetLeft
	if(!oA.parentElement&&!oA.parentNode)return oA
	var szSkip=":FORM:TBODY:TR:CENTER:BR:DIV:"+((DC_W3C)?"TD:TABLE:":"")+((DC_IE)?"FONT:":"")
	szOP="";
	if(typeof oA.x=="number")oA.LEFT=oA.x;if(oA.y)oA.TOP=oA.y;
	if(oA.parentElement)
	  {
	  for(oT=oA.parentElement;oT.parentElement;oT=oT.parentElement)
		if(szSkip.indexOf(":"+oT.tagName.toUpperCase())<0)
		{oA.LEFT+=(oT.offsetLeft);oA.TOP+=(oT.offsetTop);}
	  }else if(oA.parentNode){
	  for(oT=oA.parentNode;oT.parentNode;oT=oT.parentNode)
		if(szSkip.indexOf(":"+oT.tagName.toUpperCase())<0)
		{oA.LEFT+=oT.offsetLeft;oA.TOP+=oT.offsetTop;}
	  }
//	DCstatus(szOP)
	return oA
	}
function DCgetAnchorIn(pL,szA)
	{
	var oL=DCok(pL),result=null;if(!oL||DC_W3C)return DCgetAnchor(null,szA)
	if(oL.document)if(oL.document.anchors)result =DCanchorByName(oL.document.anchors,szA)
	if(!result)return null
	return result
	}
function DCanchorByName(aA,szA)
	{
	for(Z=0;Z<aA.length;Z++)if(aA[Z].name==szA)return DCwhereIs(aA[Z]);return null
	}
function DCgetAnchor(szL,szA)
	{
	var aA=DCgetParentDocument(szL).anchors
	if(aA)return DCanchorByName(aA,szA);
	return null
	}
function DCflyToAnchor(szL,szA,iMode)
	{
	var oL=DCok(szL);if(!oL)return
	mode=(DCflyToAnchor.arguments.length>=3)?iMode:0
	if((oA=DCgetAnchor(szL,szA))==null)return
	DCmoveTo(szL,((mode!=2)?oA.LEFT:oL.style.left),((mode!=1)?oA.TOP:oL.style.top))
	DCshow(oL,true)
	}
function DCclip2Array(oL)
	{
	clips = new Array(1,1,1,1)
	if(!oL)return clips
	if(!oL.style)oL.style=oL;
	if(!oL.style.clips)
		{
		clips[0]=clips[3]=0;
		if(oL.style.height)clips[2]=toI(oL.style.height)
		if(oL.style.width)clips[1]=toI(oL.style.width);
		return clips;
		}
	oC=oL.style.clip;
	if( DC_NS)return new Array(oC.top,oC.right,oC.bottom,oC.left)
	return oL.style.clip.split("rect(")[1].split(")")[0].split("px")  
	}
function DCclip(pL,iT,iR,iB,iL)
	{
	var oL=DCok(pL);if(!(oL))return new Array(-1,-1,-1,-1)
	if(DCclip.arguments.length<2)return DCclip2Array(oL)
	var oC=oL.style.clip;
	Clips=new Array(iT,iR,iB,iL)
	if(DC_NS){oC.top=iT;oC.bottom=iB;oC.left=iL;oC.right=iR
	}else{oL.style.clip="rect("+Array(iT,iR,iB,iL).join("px ")+"px)"}
	return Clips
	}
function DCcreateIn(pL,szL,x,y,w,h,bgColor)
	{
	oL=DCok(pL);if(!oL)return null;
	return DCcreate(oL.navPath.szPath+".all."+szL,x,y,w,h,bgColor)
	}
function DCcreate(szL,x,y,w,h,bgColor)
	{
	var oL=DCok(szL);if(oL)return oL;navPath=DCparsePath(szL)
	szPX=(DC_NS)?"":"px"
	var oS={visibility:((navPath.bChild)?'inherit':'visible'),backgroundColor:((bgColor	)?((String(":clear:transparent:").indexOf(bgColor)>-1)?null:bgColor):null),position:"absolute",zIndex:1,border:'none',display:'block',overflow:'hidden',left:x,top:y,width:w,height:h}
	var KK=null;oParent=eval(navPath.szParent)
	if(DC_NS)
	  {
	  szTargetWindow=(navPath.szParent.indexOf(".all")>-1)?navPath.szParent:navPath.szWindow
	  KK=oParent.layers[navPath.szL]=new Layer(w,eval(szTargetWindow))
	  KK.clip.height=h;KK.style=KK
	  if(oS.backgroundColor!=null)KK.bgColor=oS.backgroundColor;//bColor
	  if(!KK.document.getElementById)KK.document.getElementById=DC_getElementById;
	  KK.style.position='absolute'
	  }else if(DC_W3C){
	  var oW=eval(navPath.szWindow)
	  KK=oW.document.createElement("DIV")
	  KK.id=navPath.szL
	  KK.appendChild(oW.document.createTextNode(""))
	  if(navPath.bChild)
		{
		oParent.appendChild(KK)
		oParent.all=oParent.getElementsByTagName("DIV")
		}else{
		oW.document.body.appendChild(KK)
		oW.document.all=oW.document.getElementsByTagName("BODY")[0].getElementsByTagName("DIV")
		}
	  KK.style.clip='rect(0px '+w+'px '+h+'px 0px)'
	  }else if(DC_IE){
	  str='\n<div id='+navPath.szL
	  str+=' style="visibility:'+oS.visibility+';position:'+oS.position+';'
	  str+='clip:rect(0px '+oS.width+'px '+oS.height+'px 0px); '
	  str+='"> </div>';szCreate=navPath.szParent
	  if(navPath.szParent.indexOf(".all")==-1||DC_FRAMES)szCreate+=".body"
	  var oTmp=eval(szCreate);
	  if(typeof oTmp=='undefined')oTmp=document.body
	  if(typeof oTmp=='undefined')return null;
	  oTmp.insertAdjacentHTML("BeforeEnd",str)
	  KK=eval(navPath.szWindow).document.all[navPath.szL]
	  }
	if(!KK)return null;
	KK.style.position=oS.position;
	KK.style.visibility=oS.visibility;KK.style.zIndex=oS.zIndex;
	KK.style.border=oS.border;KK.style.display=oS.display;
	//if(oS.backgroundColor!=null)
	KK.style.backgroundColor=oS.backgroundColor;
	if(DC_NS)
	{
	if(oS.backgroundColor)KK.style.layerBackgroundColor=oS.backgroundColor
	KK.clip.bottom=h;
	KK.clip.right=w
	}else{
	KK.style.clip='rect(0px '+w+'px '+h+'px 0px)'
	KK.style.overflow=oS.overflow;
	}
	KK.style.left=oS.left;KK.style.top=oS.top;
	KK.style.width=oS.width;KK.style.height=oS.height;
	KK.NAME=navPath.szL
	return DCok(navPath.szPath)
	}
function DCdestroyLayer(pL)
	{
	var oL=DCok(pL);if(!oL)return
	oL.style.visibility="hidden"
	if(DC_NS){oL.window.document.all[pL]=null
	}else{oL.innerHTML="";oL.outerHTML=""}
	}
function DCalert(obj){setTimeout("alert('"+obj+"')",300);return;}
function DCgetXYscroll(pL)
	{
	oW=window;oL=DCok(pL)
	if(oL)oW=DCgetParentWindow(oL.navPath.szPath)
	return {LEFT:((DC_W3C)?oW.scrollX:((DC_NS)?oW.pageXOffset:oW.document.body.scrollLeft)),TOP:((DC_W3C)?oW.scrollY:((DC_NS)?oW.pageYOffset:oW.document.body.scrollTop))}
	}
function DCsetFloat(pL,bOnOff)
	{
	if(!(oL=DCok(pL)))return
	if(oL.scrollPump)clearTimeout(oL.scrollPump);
	if(!oL.scrollPump){oL.scrollOffY=DCgetY(oL);oL.scrollOffX=DCgetX(oL)}
	oL.scrollPump=null;if(!bOnOff)return

	oW=DCgetParentWindow(oL.navPath.szPath)
	tY=oL.scrollOffY+((DC_W3C)?oW.scrollY:((DC_NS)?oW.pageYOffset:oW.document.body.scrollTop))
	tX=oL.scrollOffX+((DC_W3C)?oW.scrollX:((DC_NS)?oW.pageXOffset:oW.document.body.scrollLeft))

	if(toI(oL.style.top)!=tY||toI(oL.style.left)!=tX)
	 {DCmoveTo(oL,tX,tY);if(oL.floatNotify)oL.floatNotify()}
	szHM='DCsetFloat('+oL.navPath.szPath+',true)'
	oL.scrollPump=setTimeout(szHM,150)
	}
var obLastMover=null;
function DCsetTrigger(szL,szEvents,szFunction)
	{
	var szF=(DCsetTrigger.arguments.length>2)?szFunction:null;
	var oL=DCok(szL);if(!oL||!szEvents)return false;
	aEvents=szEvents.split(",")
	for(xT=0;xT<aEvents.length;xT++)
	  {
	szEvent=aEvents[xT];if(szEvent.indexOf("on")!=0)szEvent="on"+szEvent;
	oDpath=oL.navPath.szPath
	var szT=(szEvent=="onmousemove"|szEvent.indexOf("onkey")==0)?oL.navPath.szWindow+".document":"oL"
	szHM="return "+szF+"('"+oDpath+"',new DC_EVENT('"+oDpath+"',"+((DC_NS||DC_W3C)?"arguments[0]":oL.navPath.szWindow+".event")+"))"
	eval(szT+"."+szEvent+((szF)?"=new Function(szHM)":"=null"))
	if(!DC_NS||!szEvent)continue;
	oE=eval("Event."+szEvent.substring(2).toUpperCase())
	oT=eval(szT)
	if(!szF){oT.releaseEvents(oE);}else{oT.captureEvents(oE)}
	  }
	return true
	}
function DC_track(szStart,szWhile,szEnd,szAction)
	{this.szStart=szStart;this.szWhile=szWhile;this.szEnd=szEnd;this.szAction=szAction;}
function DCsetTrack(pL,e_szEstart,szEaction,szEend,szFunc)
	{
	iArgc=DCsetTrack.arguments.length;
	var oL=DCok(pL);if(!oL)return true
	if(iArgc==1)//Clear handlers 
	{
	DCsetTrigger(oL,oL.eTrack.szStart)
	DCsetTrigger(oL,oL.eTrack.szWhile)
	DCsetTrigger(oL,oL.eTrack.szEnd);return true;
	}
	if(iArgc==5)//Assign handlers
	{
	oL.eTrack=new DC_track(e_szEstart,szEaction,szEend,szFunc)
	DCsetTrigger(oL,oL.eTrack.szStart,"DCsetTrack");return false;
	}
	Evt=e_szEstart
	if(oL.eTrack.szStart.indexOf(Evt.type)>-1)//**START
		{
		if(DCok(obLastMover))//**Reset event track
		{
		DCsetTrigger(obLastMover,obLastMover.eTrack.szEnd)
		DCsetTrigger(obLastMover,obLastMover.eTrack.szWhile)
		DCsetTrigger(obLastMover,obLastMover.eTrack.szStart,"DCsetTrack")
		}
		obLastMover=oL
		DCsetTrigger(oL,oL.eTrack.szEnd,"DCsetTrack")
		DCsetTrigger(oL,oL.eTrack.szWhile,"DCsetTrack")
		return(eval(oL.eTrack.szAction+"(obLastMover,Evt)"))
		} else if(oL.eTrack.szWhile.indexOf(Evt.type)>-1)//**WHILE
		return(eval(oL.eTrack.szAction+"(obLastMover,Evt)"))
	if(oL.eTrack.szEnd.indexOf(Evt.type)>-1)//**END
		{
		if(obLastMover)DCsetTrigger(obLastMover,obLastMover.eTrack.szStart,"DCsetTrack")
		DCsetTrigger(oL,oL.eTrack.szWhile)
		DCsetTrigger(oL,oL.eTrack.szEnd)
		bResult=eval(oL.eTrack.szAction+"(obLastMover,Evt)")
		obLastMover=null;return bResult;
		}
	return false;
	}
function DCinLayer(pL,Evt)
	{
	if(!(oL=DCok(pL)))return false;
	if(Evt.pageX<=DCgetX(oL)||Evt.pageY<=DCgetY(oL))return false
	if(Evt.pageX>=DCgetX(oL)+DCgetW(oL)||Evt.pageY>=DCgetY(oL)+DCgetH(oL))return false;
	return true;}
function DCmoveTo(pL,x,y)
	{
	var vL=DCok(pL);if(!vL)return;if(!vL.style)return;
	vL.style.left=toI(x);	vL.style.top=toI(y);
	}
function DCscroll(pL,iStep,iStepsize,bVertical)
	{	
	var oL=DCok(pL);if(!oL)return false;
	Clips=DCclip(oL);
	if(!oL.firstShape)oL.firstShape=new Array(toI(oL.style.top),toI(oL.style.width),toI(oL.style.height),toI(oL.style.left))
	HV=(bVertical)?1:0;iS=HV?0:3;iE=HV?2:1;
	Height=Clips[iE]-(Clips[iS])
	iOffset=(iStep*iStepsize)
	Clips[iS]=iOffset;Clips[iE]=iOffset+Height;
	DCclip(oL,Clips[0],Clips[1],Clips[2],Clips[3])
	DCmoveTo(oL,oL.firstShape[3]-Clips[3],oL.firstShape[0]-Clips[0])
	return true
	}
function DCsetBimage(szL,szImage)
	{
	var oL=DCok(szL);if(!oL)return false;
	oL.style.backgroundImage=szImage
	if(document.layers)oL.document.backgroundImage=oL.window.document.ids[szL].backgroundImage=szImage
	return true
	}
function DCsetBcolor(szL,szColor)
	{
	var oL=DCok(szL);if(!oL)return false;
if(String("clear:transparent").indexOf(szColor)>-1)szColor=null
	oL.style.backgroundColor=szColor
	if(document.layers)oL.document.bgColor=oL.window.document.ids[szL].backgroundColor=oL.window.document.ids[szL].layerBackgroundColor=szColor
	return true
	}	
function DCsetContent(pL,szContent){var oL=DCok(pL);if(!oL)return;DCopenLayer(oL);DCwrite(oL,szContent);DCcloseLayer(oL);}
function DCopenLayer(pL){var oL=DCok(pL);if(oL)oL.innerHTML="";}
function DCwrite(pL,szT){var oL=DCok(pL);if(oL)oL.innerHTML+=szT;}
function DCcloseLayer(pL)
	{
	var oL=DCok(pL);if(!oL||!DC_NS)return;var T=DCclip(pL);
	oL.document.open();oL.document.write(oL.innerHTML);oL.document.close()
	DCbindNode(oL);oL.style.height=T[2];oL.style.width=T[1]
	DCclip(oL,T[0],T[1],T[2],T[3])
	}
function DCshow(pL,bShow){var oL=DCok(pL);if(oL)oL.style.visibility=(bShow)?'inherit':'hidden'}
function DCshowTab(pL,szTabs)
	{
	var oL=DCok(pL),bL=null;if(!oL||!szTabs)return pL
	for(xSx=0,aTabs=szTabs.split(",");xSx<aTabs.length;xSx++)
	DCshow((bL=DCok(aTabs[xSx])),(bL==oL));return oL;
	}
function DCwhichTab(szTabs)
	{
	var aTabs=szTabs.split(","),oL=null
	for(Zx=0;Zx<aTabs.length;++Zx)
		{
		oL=DCok(aTabs[Zx])
		if(oL)if(String("visibleshowinherit").indexOf(oL.style.visibility)>-1)return oL;
		}
	return oL;
	}
function DCsetZindex(pL,iLevel){var oL=DCok(pL);if(oL)oL.style.zIndex=iLevel;}
function DCsetZtop(pL)
	{
	var oL=DCok(pL);if(!oL) return
	if(!DC_NS){iZindex++;oL.style.zIndex=(++iZindex);return}
	iLowest=null,iHighest=null,oOther=null
	for(xZZ=0;xZZ<oL.window.document.all.length;xZZ++)
	{if(!oL.window.document.all[xZZ].navPath)continue
	if(!oL.window.document.all[xZZ].navPath.szPath)continue
	if((oOther=oL.window.document.all[xZZ])==oL)continue
	if(iLowest==null)iLowest=iHighest=oOther.style.zIndex
	if(oOther.style.zIndex<iLowest)iLowest=oOther.style.zIndex
	if(oOther.style.zIndex>=iHighest)oL.style.zIndex=(iHighest=oOther.style.zIndex)+1}}
function DCsetZbottom(pL){var oL=DCok(pL);if(oL)oL.style.zIndex=0}
function DCsetZabove(pL,poL)
	{
	var oL1=DCok(pL),oL2=DCok(poL);if(oL1&&oL2)oL1.style.zIndex=oL2.zIndex+1
	}
function DCsetZbelow(pL,poL)
	{
	oL1=DCok(pL);oL2=DCok(poL);if(!oL1||!oL2)return
	if(oL2.style.zIndex==0)oL2.style.zIndex=1
	oL1.style.zIndex=otherLayer.style.zIndex+1
	}
function DCbindNode(oL)
	{
	oL.NAME=oL.navPath.szL
	if(!oL.MX				)oL.MX=oL.MY=0;oL.eMask=0
	if(!oL.document			)oL.document=oL
	if(!oL.all				)oL.all=(DC_NS)?oL.layers:oL.getElementsByTagName("DIV")
	if(!oL.getElementById		)oL.getElementById=self.DC_getElementById
	if(!oL.nodeType			)oL.nodeType=1
	if(!oL.style			)oL.style=oL;var oS=oL.style
	if(!oS.zIndex			)oS.zIndex=0
	if(!oS.left			)oS.left=0;
	if(!oS.top				)oS.top=0;var aC=DCclip2Array(oL)
	if(!oS.width&&aC[1]!=-1	)oS.width=aC[1]
	if(!oS.height&&aC[2]!=-1	)oS.height=aC[2]
	if(!oL.firstShape)oL.firstShape=new Array(toI(oS.top),toI(oS.width),toI(oS.height),toI(oS.left))
	}
function DCbindDoc(oDoc)
	{
	if(DC_NS)
		{
		oDoc.all=eval("oDoc.layers");if(!oDoc.nodeType)oDoc.nodeType=9
		}else if(DC_W3C){
		if(document.getElementsByTagName("BODY").length<1)return false;
		oDoc.all=document.getElementsByTagName("BODY")[0].getElementsByTagName("DIV")
		}
	if(!oDoc.getElementById)oDoc.getElementById=parent.DC_getElementById
	if(!oDoc.captureEvents)oDoc.captureEvents=oDoc.releaseEvents=DC_dummy
	}
function DCdocdone(oDoc)
	{
	if(!oDoc.links||!oDoc.images||!oDoc.anchors||!window.frames)
		{
		DCstatus("Doc objects "+DC_tries+"[]"+Array(!oDoc.links,!self.autoexec,!oDoc.images,!oDoc.anchors))
		return false;
		}
	DCbindDoc(oDoc);return true;
	}
function DCstatus(sz){window.status=window.defaultStatus=sz}
function DCscan(A,szS,DD)
	{
	var oResult=null,oL=null,x=0;iScan++
	if(DD)
	  {
	  if(DD.images	)if(DD.images[szS])return DD.images[szS]
	  if(DD.forms	)if(DD.forms.length){
	  if(DD.forms[szS])return DD.forms[szS]
	  for(xx=0;xx<DD.forms.length;xx++)
	  if(DD.forms[xx].elements[szS])return DD.forms[xx].elements[szS]
	  }
	}
	if(iScan<5)if(A)if(A.length)if(A.length>0)for(x=0;oResult==null&&x<A.length;x++)
		{
		oL=A[x]
		if(oL.layers	)if(!oL.all)oL.all=oL.layers
		if(!oL.NAME)if(oL.id)if(oL.id==szS)oResult=oL
		if(!oResult&&oL.NAME)if(oL.NAME==szS	)oResult=oL
		if(!oResult)if(oL.all)if(oL.all.length)if(oL.all.length>0)
		{oResult=DCscan(oL.all,szS,oL)}
		}
	iScan--;return oResult
	}
function DC_getElementById(szID){return DCscan(this.all,szID,this)}
function szIEevent(szL, Evt)
	{
	this.type=Evt.type;this.e=Evt
	this.layerX=Evt.x;this.layerY=Evt.y;
	this.screenX=Evt.screenX;this.screenY=Evt.screenY
	this.pageX=Evt.clientX;this.pageY=Evt.clientY
	if(document.body.scrollTop){this.pageY+=document.body.scrollTop;}
	if(document.body.scrollLeft)this.pageX+=document.body.scrollLeft
	this.target=Evt.srcElement;this.which=Evt.button+1
	this.modifiers=(((Evt.altKey)?1:0)+((Evt.ctrlKey)?2:0)+((Evt.shiftKey)?4:0));
	if(!(L=DCok(szL)))return;
	this.layerX=Evt.clientX-toI(L.offsetLeft);this.layerY=(Evt.clientY-toI(L.offsetTop))+document.body.scrollTop;if(L.oParent)for(tobj=L,x=0;(tobj=tobj.oParent)&&x<10;x++){if(String(tx=toI(tobj.offsetLeft))=="NaN")continue;this.layerX-=tx;this.layerY-=(ty=toI(tobj.offsetTop));this.pageX-=tx;this.pageY-=ty;}if(MXstart.indexOf(this.type)!=-1){L.MX=this.layerX;L.MY=this.layerY;}
	}
function szNSevent(szL, Evt) {
	with(Evt){
	this.type=type;this.e=Evt
	this.layerX=layerX;this.layerY=layerY
	this.pageX=pageX;this.pageY=pageY
	this.screenX=screenX;this.screenY=screenY
	this.target=target;this.modifiers=modifiers
	this.which=which}
	var L=DCok(szL);if(!L)return
	for(tobj=L,x=0;L.oParent&&(tobj=tobj.oParent)&&x<10;x++)
	 {
	 if(!tobj.style)continue
	 this.pageX-=toI(tobj.style.left)
	 this.pageY-=toI(tobj.style.top)
	 }
	if(MXstart.indexOf(this.type)!=-1){L.MX=this.layerX;L.MY=this.layerY}
	}
function szW3event(szL, Evt)
	{
	with(Evt){
	this.type=type;this.e=Evt
	this.layerX=layerX;this.layerY=layerY
	this.pageX=pageX;this.pageY=pageY
	this.screenX=screenX;this.screenY=screenY
	this.target=target;this.which=which
	this.modifiers=(((altKey)?1:0)+((ctrlKey)?2:0)+((shiftKey)?4:0));}
	var L=DCok(szL);if(!L)return
	for(tobj=L,x=0;L.oParent&&(tobj=tobj.oParent)&&x<10;x++)
	{this.pageX-=toI(tobj.style.left);this.pageY-=toI(tobj.style.top)}

	if(MXstart.indexOf(this.type)!=-1){L.MX=this.layerX;L.MY=this.layerY}
	}
function DCshift()//**Crutch IE5.0
	{
	if(!this.length)return null;var result=this[0]
	for(x=0;x<this.length-1;x++)this[x]=this[x+1]
	delete this[--this.length];return result;
	}
function DCpop()//**Crutch IE5.0
	{
	if(!this.length)return null;var result=this[(this.length-1)]
	delete this[this.length];return result;
	}
function DC_dummy(){return}
function DCautoexec()
	{
	DCstatus(window.status+".")	
	if((DC_tries++)<2)return;
	if((DC_tries++)>150){clearInterval(oAuto);oAuto=null;alert("Page Timed Out");return}
	if(DC_tries<1)return
	DCstatus(window.defaultStatus+". ["+DC_tries+"]")
	if(!DCdocdone(document))return
	DC_FRAMES=(self.frames.length>1)
	for(xAx=0;xAx<self.frames.length;xAx++)if(!DCdocdone(self.frames[xAx].document))return
	clearInterval(oAuto);oAuto=null
	self.DC_EVENT=(DC_NS)?szNSevent:((DC_IE)?szIEevent:szW3event)
	if(DC_NS)DC_PIXELTUNE=4;if(DC_IE)DC_PIXELTUNE=1;
	szEpath=((DC_NS)?"arguments[0]":"window.event")
	if(DC_IE)if(!Array().pop){Array.prototype.pop=DCpop;Array.prototype.shift=DCshift}
	DCstatus("Done...");DC_READY=true;window.focus()
	var oTF=self,aTF=new Array(),iTF=0
	while(oTF!=top&&oTF.parent&&iTF++<10){aTF.splice(0,0,oTF.name);oTF=oTF.parent;}
	aTF.splice(0,0,"top")
	DC_FRAMEpath=aTF.join('.')+'.'
	if(self.autoexec)self.autoexec()
	return
	}
DCstatus("Loading...")
DC_W3C=(document.getElementsByTagName&&!document.all)?true:false
DC_IE=(document.all)?true:false
DC_NS=(document.layers)?true:false
DC_OP=(navigator.userAgent.indexOf("Opera")>-1)?true:false
if(oAuto==null)oAuto=setInterval("DCautoexec()",250)
