/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false;
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0);  }
CSIImg=false;
function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i<document.images.length; i++) { if (!document.images[i].id) document.images[i].id=document.images[i].name; } CSIImg = true;}}
function CSFindElement(n,ly) { if (CSBVers<4) return document[n];
	if (CSIsW3CDOM) {CSInitImgID();return(document.getElementById(n));}
	var curDoc = ly?ly.document:document; var elem = curDoc[n];
	if (!elem) {for (var i=0;i<curDoc.layers.length;i++) {elem=CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}
function CSGetImage(n) {if(document.images) {return ((!IsIE()&&CSBVers<5)?CSFindElement(n,0):document.images[n]);} else {return null;}}
CSDInit=false;
function CSIDOM() { if (CSDInit)return; CSDInit=true; if(document.getElementsByTagName) {var n = document.getElementsByTagName('DIV'); for (var i=0;i<n.length;i++) {CSICSS2Prop(n[i].id);}}}
function CSICSS2Prop(id) { var n = document.getElementsByTagName('STYLE');for (var i=0;i<n.length;i++) { var cn = n[i].childNodes; for (var j=0;j<cn.length;j++) { CSSetCSS2Props(CSFetchStyle(cn[j].data, id),id); }}}
function CSFetchStyle(sc, id) {
	var s=sc; while(s.indexOf("#")!=-1) { s=s.substring(s.indexOf("#")+1,sc.length); if (s.substring(0,s.indexOf("{")).toUpperCase().indexOf(id.toUpperCase())!=-1) return(s.substring(s.indexOf("{")+1,s.indexOf("}")));}
	return "";
}
function CSGetStyleAttrValue (si, id) {
	var s=si.toUpperCase();
	var myID=id.toUpperCase()+":";
	var id1=s.indexOf(myID);
	if (id1==-1) return "";
	s=s.substring(id1+myID.length+1,si.length);
	var id2=s.indexOf(";");
	return ((id2==-1)?s:s.substring(0,id2));
}
function CSSetCSS2Props(si, id) {
	var el=document.getElementById(id);
	if (el==null) return;
	var style=document.getElementById(id).style;
	if (style) {
		if (style.left=="") style.left=CSGetStyleAttrValue(si,"left");
		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top");
		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width");
		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height");
		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility");
		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index");
	}
}
function CSSetStylePos(s,d,p) {
	if (CSIsW3CDOM)d==0?document.getElementById(s).style.left=p+"px":document.getElementById(s).style.top=p+"px";
	else if(IsIE())(d==0)?CSIEStyl(s).posLeft=p:CSIEStyl(s).posTop=p;
	else (d==0)?CSNSStyl(s).left=p:CSNSStyl(s).top=p;
}
function CSGetStylePos(s,d) {
	if (CSIsW3CDOM){CSIDOM();return parseInt((d==0)?document.getElementById(s).style.left:document.getElementById(s).style.top);}
	else if (IsIE()) {CSIEWinInit();return(d==0)?CSIEStyl(s).posLeft:CSIEStyl(s).posTop;}
	else {return (d==0)?CSNSStyl(s).left:CSNSStyl(s).top;}
}
CSIEWInit=false;
function CSIEWinInit() { if(CSIEWInit==true) return; else CSIEWInit=true; if (IsIE()&&(CSAg.indexOf("Win")!=-1)&&CSBVers==4) { var i=0; var lyr=document.all.tags("div")[i++]; while(lyr) {lyr.style.posLeft=lyr.offsetLeft; lyr.style.posTop=lyr.offsetTop; lyr=document.all.tags("div")[i++];}}}
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
	idxArray[i] = i;
CSAction2(CSInit, idxArray);
}
CSInit = new Array;
CSExit = new Array;
CSStopExecution=false;
function CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;
function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; /* dont follow link */
	else return false; /* dont follow link */
}
/* -- Action Functions */
var DJresizeW = 0;
var DJresizeH = 0;
var DJresizeW2 = 0;
var DJresizeH2 = 0;
var DJsmoothSpeed = 10;
var DJold2 = new Array();
var DJdoitonce = 0;
function DJcheckResize() {
	DJSmoothOnce();
	if(DJresizeW != DJresizeW2 || DJresizeH != DJresizeH2) {
		 	document.location = document.location;
	}
}
function DJmoveNewPos2(t) {
	if(document.all) {
		x = document.body.scrollLeft + DJold2[t].originX;
		y = document.body.scrollTop + DJold2[t].originY;
	} else {
		x = window.pageXOffset + DJold2[t].originX;
		y = window.pageYOffset + DJold2[t].originY;
	}
	d1 = x - DJold2[t].x;
	d2 = y - DJold2[t].y;
	DJold2[t].x = Math.round((DJold2[t].x + (x - DJold2[t].x)*DJold2[t].smooth)*1000)/1000;
	DJold2[t].y = Math.round((DJold2[t].y + (y - DJold2[t].y)*DJold2[t].smooth)*1000)/1000;
	
	if(!DJold2[t].lockx) {CSSetStylePos(DJold2[t].oldLayer,0,Math.round(DJold2[t].x));}
	if(!DJold2[t].locky) {CSSetStylePos(DJold2[t].oldLayer,1,Math.round(DJold2[t].y));}
	setTimeout("DJmoveNewPos2(" + t + ")",DJsmoothSpeed);
}
function DJSmoothOnce() {
	var w = 0;
	var h = 0;
	if (window.innerHeight) { // all except Explorer
		w = window.innerWidth;
		h = window.innerHeight;
	}
	if(document.documentElement && document.documentElement.clientWidth) { // Explorer 6 Strict Mode
		if(w == 0 || document.documentElement.clientWidth < w) {
			w = document.documentElement.clientWidth;
		}
		if(h == 0 || document.documentElement.clientHeight < h) {
			h = document.documentElement.clientHeight;
		}
	}
	if(document.body && document.body.clientWidth) { // other Explorers
		if(w == 0 || document.body.clientWidth < w) {
			w = document.body.clientWidth;
		}
		if(h == 0 || document.body.clientHeight < h) {
			h = document.body.clientHeight;
		}
	}
	if(window.scrollbars && window.scrollbars.visible && !(document.body)) {
		w -= 16;
		h -= 16;
	}
	DJresizeW2 = w;
	DJresizeH2 = h;
	if(window.navigator.userAgent.indexOf("MSIE") > -1 && window.navigator.platform.indexOf("Mac") > -1) {
		DJsmoothSpeed = 100;
	}
}
function DJSmoothFloatLayer2(action) {
	var x=0;
	var y=0;
	if(!DJdoitonce) {
		DJSmoothOnce();
		DJdoitonce = 1;
		DJresizeW = DJresizeW2;
		DJresizeH = DJresizeH2;
	}
	var w = DJresizeW;
	var h = DJresizeH;
	window.onresize = DJcheckResize;
	if(document.getElementById) {
		if(document.getElementById(action[1]).scrollWidth) {
			x = document.getElementById(action[1]).scrollWidth;
			y = document.getElementById(action[1]).scrollHeight;
		} else {
			x = document.getElementById(action[1]).style.width;
			y = document.getElementById(action[1]).style.height;
		}
	} else if(eval("document."+action[1]+".clip.width")){
		x = eval("document."+action[1]+".clip.width");
		y = eval("document."+action[1]+".clip.height");
	} else {
		x = eval('document.all["'+action[1]+'"].style.pixelWidth');
		y = eval('document.all["'+action[1]+'"].style.pixelHeight');
	}
	switch(action[6]) {
		case 2:  x = (w - x) + action[2][0]; y = action[2][1]; break;
		case 3:  x = action[2][0]; y = (h - y) + action[2][1]; break;
		case 4:  x = (w - x) + action[2][0]; y = (h - y) + action[2][1]; break;
		case 5:  x = ((w/2) - (x/2)) + action[2][0]; y = ((h/2) - (y/2)) + action[2][1]; break;
		default:  x = action[2][0]; y = action[2][1]; break;
	}
	DJold2[DJold2.length] = new Array();
	t = DJold2.length - 1;
	DJold2[t].oldLayer = action[1];
	CSSetStylePos(DJold2[t].oldLayer,0,x);
	CSSetStylePos(DJold2[t].oldLayer,1,y);
	DJold2[t].x = x;
	DJold2[t].y = y;
	DJold2[t].originX = x;
	DJold2[t].originY = y;
	DJold2[t].smooth = 1.0/action[3];
	if(action[4]) {DJold2[t].lockx = 1;} else {DJold2[t].lockx = 0;}
	if(action[5]) {DJold2[t].locky = 1;} else {DJold2[t].locky = 0;}
	setTimeout("DJmoveNewPos2(" + t + ")",100);
}
/* EOF */
