// -- 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 CSSetStyleVis(s,v) {
	if (CSIsW3CDOM){CSIDOM();document.getElementById(s).style.visibility=(v==0)?"hidden":"visible";}
	else if(IsIE())CSIEStyl(s).visibility=(v==0)?"hidden":"visible";
	else CSNSStyl(s).visibility=(v==0)?'hide':'show';
}
function CSGetStyleVis(s) {
	if (CSIsW3CDOM) {CSIDOM();return(document.getElementById(s).style.visibility=="hidden")?0:1;}
	else if(IsIE())return(CSIEStyl(s).visibility=="hidden")?0:1;
	else return(CSNSStyl(s).visibility=='hide')?0:1;
}
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
// The ScrollArea 1.1 action by Michael Ahgren 2004
var timerID=null;
var tempAction=new Array()
var accMove=new Array()
var setUpIsDone=false
var sLayer=null
var cLayer=null
var sLayerTop=null
var cLayerHeight=null
var cLayerWidth=null
var sLayerLeft=null
var sLayerHeight=null
var uMax=0
var dMax=0
var lMax=0
var rMax=0
elem=new Array()
currentLayer=null
window.onload = NN6fix;
function NN6fix(){
	if (navigator.appName=="Netscape"&& document.getElementById){
	elem=document.getElementsByTagName("div")
		for(var i=0;i<elem.length;i++){
			if(elem[i].parentNode.id==""){
				data="rect(0px,"+elem[i].offsetWidth+"px,"+elem[i].offsetHeight+"px,0px)"
				elem[i].style.clip = data
		}
	}
}
}
function initScrolling (action) {
	if (action[9]){
		clearInterval(timerID)
	}else{
		tempAction=action
		if (currentLayer==null || currentLayer!=action[2]){
		setUp(tempAction)
	}
	
	timerID = setInterval('scrollText(tempAction)',action[3]);
	}
}
function scrollText (action) {
for (var i=5;i<=8;i++){
if (action[i]){
x=i+""
switch (x){
case "5":
if (accMove[5]<uMax){
	if(document.layers){
	sLayer.top-=action[4] 
	}
	if (document.all){
	sLayer.style.pixelTop-=action[4] 
	}
	if (document.getElementById&&!document.all){
	sLayer.style.top=parseInt(sLayer.style.top)-action[4]+"px"
	} 
accMove[5]+=action[4]
accMove[6]-=action[4]
}
break
case "6":
if (accMove[6]<dMax){
if(document.layers){
	sLayer.top+=action[4] 
	}
	if (document.all){
	sLayer.style.pixelTop+=action[4] 
	}
	if (document.getElementById&&!document.all){
	sLayer.style.top=parseInt(sLayer.style.top)+action[4]+"px"
	} 
accMove[6]+=action[4]
accMove[5]-=action[4]
}
break
case "7":
if (accMove[7]<lMax){
if(document.layers){
	sLayer.left-=action[4] 
	}
	if (document.all){
	sLayer.style.pixelLeft-=action[4] 
	}
	if (document.getElementById&&!document.all){
	sLayer.style.left=parseInt(sLayer.style.left)-action[4]+"px"
	} 
accMove[7]+=action[4]
accMove[8]-=action[4]
}
break
case "8":
if (accMove[8]<rMax){
if(document.layers){
	sLayer.left+=action[4] 
	}
	if (document.all){
	sLayer.style.pixelLeft+=action[4] 
	}
	if (document.getElementById&&!document.all){
	sLayer.style.left=parseInt(sLayer.style.left)+action[4]+"px"
	} 
accMove[8]+=action[4]
accMove[7]-=action[4]
}
break
}
}
}
}
function setUp(action){
	currentLayer=action[2]
		if (document.layers){
		sLayer=eval("document."+action[1]+".document."+action[2])
		cLayer=eval("document."+action[1])
		sLayerTop=sLayer.top
		cLayerHeight=cLayer.clip.height
		cLayerWidth=cLayer.clip.width
		sLayerLeft=sLayer.left
		sLayerHeight=sLayer.clip.height
		sLayerWidth=sLayer.clip.width
	}
	if(document.all){
	currentLayer=action[2]
		sLayer=eval("document.all."+action[2])
		cLayer=eval("document.all."+action[1])
		sLayerTop=eval(sLayer.offsetTop)
		cLayerHeight=cLayer.clientHeight
		cLayerWidth=cLayer.clientWidth
		sLayerLeft=sLayer.offsetLeft
		sLayerHeight=sLayer.clientHeight
		sLayerWidth=sLayer.clientWidth
		sLayer.style.pixelTop=sLayer.offsetTop
		sLayer.style.pixelLeft=sLayer.offsetLeft
	}
	if(document.getElementById && !document.all){
	currentLayer=action[2]
		sLayer=document.getElementById(action[2]) 
		cLayer=document.getElementById(action[1]) 
	if(navigator.userAgent.indexOf("Netscape6/6.0")!=-1 ){			
				sLayerTop=sLayer.offsetTop-sLayer.parentNode.offsetTop
				sLayerLeft=sLayer.offsetLeft-sLayer.parentNode.offsetLeft
			}else{
				sLayerTop=sLayer.offsetTop
				sLayerLeft=sLayer.offsetLeft
				cLayer.style.overflow=""
			}
		cLayerHeight=parseInt(cLayer.offsetHeight) 
		cLayerWidth=parseInt(cLayer.offsetWidth) 
		sLayerHeight=parseInt(sLayer.offsetHeight) 
		sLayerWidth=parseInt(sLayer.offsetWidth)
			if (!sLayer.style.top&&!sLayer.firstTime){
				sLayer.style.top=sLayerTop+"px"
				sLayer.style.left=sLayerLeft+"px"
				sLayer.firstTime=true
			}
	}
if(navigator.userAgent.indexOf("Opera")!=-1 && parseInt(navigator.userAgent.substr(navigator.userAgent.indexOf("Opera")+6,1))<7){
currentLayer=action[2]
	sLayer=document.getElementById(action[2]) 
	cLayer=document.getElementById(action[1]) 
	sLayerTop=sLayer.offsetTop
	sLayerLeft=sLayer.offsetLeft
	sLayerHeight=sLayer.style.pixelHeight
	sLayerWidth=sLayer.style.pixelWidth
	cLayerHeight=cLayer.style.pixelHeight
	cLayerWidth=cLayer.style.pixelWidth	
}
	uMax=(sLayerHeight-cLayerHeight+sLayerTop)
	dMax=-1*sLayerTop
	lMax=(sLayerWidth-cLayerWidth+sLayerLeft)
	rMax=-1*sLayerLeft
	if (uMax<0){
		uMax=0
	}
	if (dMax<0){
		dMax=0
	}
	if(lMax<0){
		lMax=0
	}
	if(rMax<0){
		rMax=0
	}
	for (var i=5;i<=9;i++){
	accMove[i]=0
	}	
}
//
//-->
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}
// AutoScroll.action v2.0 - April, 2006
// © Copyright 2000 by Walter Blady
// All rights reserved
var ASisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var ASisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var ASisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var ASW3C = document.getElementById ? true : false;
var ASisOpera = navigator.userAgent.indexOf("Opera") >= 0;
var ASsuff = ASisOpera ? "" : "px";
var ASObject0 = new Object(), ASObject1 = new Object(), ASObject2 = new Object(), ASObject3 = new Object();
var W3CinitFlag = false;
function WBAutoScroll(action) {
	if (ASVersion()) {
		if (!W3CinitFlag) ASBoxPrep();
		var obj = eval("ASObject" + action[1]);
		if (obj.idx == null) {
			obj.idx = action[1];
			obj.doinit = ASDoInit;
			obj.action = action;
			obj.doinit();
		}
		if (action[2] == 6) {
			if (obj.ASrep > 0) clearTimeout(obj.ASrep);
			if (obj.ASrepeat > 0) clearInterval(obj.ASrepeat);
			obj.ASstopFlag = true;
			return;
		}
		if (action[2] == 4 || action[2] == 5) {
			if (obj.ASrep > 0) clearTimeout(obj.ASrep);
			if (obj.ASrepeat > 0) clearInterval(obj.ASrepeat);
			obj.ASpauseFlag = false;
			if (action[2] == 5) {
				if (obj.idx == 0 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject0.doscroll()", obj.ASdelay);
				if (obj.idx == 1 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject1.doscroll()", obj.ASdelay);
				if (obj.idx == 2 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject2.doscroll()", obj.ASdelay);
				if (obj.idx == 3 && !obj.ASstopFlag) obj.ASrepeat = setInterval("ASObject3.doscroll()", obj.ASdelay);
			}
			return;
		}
		if (obj.ASrep > 0) clearTimeout(obj.ASrep);
		if (obj.ASrepeat > 0) clearInterval(obj.ASrepeat);
		obj.ASpauseFlag = false;
		obj.ASstartDelay = action[5]*1000;
		obj.ASlineDelay = action[8]*1000;
		obj.ASendDelay = action[6]*1000;
		if (action[2] == 0) {
			obj.ASupDown = true;
			obj.ASminus = false;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", action[12]);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", action[12]);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", action[12]);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", action[12]);
		}
		if (action[2] == 1) {
			obj.ASupDown = true;
			obj.ASminus = true;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", action[12]);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", action[12]);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", action[12]);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", action[12]);
		}
		if (action[2] == 2) {
			obj.ASupDown = false;
			obj.ASminus = false;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", action[12]);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", action[12]);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", action[12]);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", action[12]);
		}
		if (action[2] == 3) {
			obj.ASupDown = false;
			obj.ASminus = true;
			if (obj.idx == 0) obj.ASrepeat = setInterval("ASObject0.doscroll()", action[12]);
			if (obj.idx == 1) obj.ASrepeat = setInterval("ASObject1.doscroll()", action[12]);
			if (obj.idx == 2) obj.ASrepeat = setInterval("ASObject2.doscroll()", action[12]);
			if (obj.idx == 3) obj.ASrepeat = setInterval("ASObject3.doscroll()", action[12]);
		}
	}
	return;
}
function ASDoScroll() {
	if (!this.ASpauseFlag && this.ASstartFlag) {
		this.scrollto(this.contentBox, this.ASxloc, this.ASyloc);
		this.ASpauseFlag = true;
		this.ASstartFlag = false;
		if (this.idx == 0) this.ASrep = setTimeout("ASObject0.pause()", this.ASstartDelay);
		if (this.idx == 1) this.ASrep = setTimeout("ASObject1.pause()", this.ASstartDelay);
		if (this.idx == 2) this.ASrep = setTimeout("ASObject2.pause()", this.ASstartDelay);
		if (this.idx == 3) this.ASrep = setTimeout("ASObject3.pause()", this.ASstartDelay);
	}
	if (!this.ASpauseFlag && this.ASpixelLines > 0 && this.ASpixCount >= this.ASpixelLines) {
		this.ASpixCount = 0;
		this.ASpauseFlag = true;
		if (this.idx == 0) this.ASrep = setTimeout("ASObject0.pause()", this.ASlineDelay);
		if (this.idx == 1) this.ASrep = setTimeout("ASObject1.pause()", this.ASlineDelay);
		if (this.idx == 2) this.ASrep = setTimeout("ASObject2.pause()", this.ASlineDelay);
		if (this.idx == 3) this.ASrep = setTimeout("ASObject3.pause()", this.ASlineDelay);
	}
	if (!this.ASpauseFlag) {
		var end = false;
		if (this.ASupDown) {
			if (this.ASminus) {
				this.ASyloc = (this.ASyloc - this.ASlines >= this.ASyDest) ? this.ASyloc - this.ASlines : this.ASyDest;
				end = (this.ASyloc == this.ASyDest);
			}
			else {
				this.ASyloc = (this.ASyloc + this.ASlines <= this.ASyOrig) ? this.ASyloc + this.ASlines : this.ASyOrig;
				end = (this.ASyloc == this.ASyOrig);
			}
		}
		else {
			if (this.ASminus) {
				this.ASxloc = (this.ASxloc - this.ASlines >= this.ASxDest) ? this.ASxloc - this.ASlines : this.ASxDest;
				end = (this.ASxloc == this.ASxDest);
			}
			else {
				this.ASxloc = (this.ASxloc + this.ASlines <= this.ASxOrig) ? this.ASxloc + this.ASlines : this.ASxOrig;
				end = (this.ASxloc == this.ASxOrig);
			}
		}
		this.scrollto(this.contentBox, this.ASxloc, this.ASyloc);
		this.ASpixCount += this.ASlines;
	}
	if (end) {
		if (this.ASloop) {
			this.ASpauseFlag = true;
			this.ASstartFlag = true;
			if (this.action[2] == 1 || this.action[2] == 3) {
				this.ASyloc = this.ASyOrig;
				this.ASxloc = this.ASxOrig;
			}
			else if (this.action[2] == 0 || this.action[2] == 2){
				this.ASyloc = this.ASyDest;
				this.ASxloc = this.ASxDest;
			}
			this.ASpixCount = 0;
			if (this.idx == 0) this.ASrep = setTimeout("ASObject0.pause()", this.ASendDelay);
			if (this.idx == 1) this.ASrep = setTimeout("ASObject1.pause()", this.ASendDelay);
			if (this.idx == 2) this.ASrep = setTimeout("ASObject2.pause()", this.ASendDelay);
			if (this.idx == 3) this.ASrep = setTimeout("ASObject3.pause()", this.ASendDelay);
		}
		else {
			if (this.ASrepeat > 0) clearInterval(this.ASrepeat);
			if (this.ASrep > 0) clearTimeout(this.ASrep);
		}
	}
	return;
}
function ASScrollTo(obj, x, y) {
	if (ASW3C) {
		obj.left = x + ASsuff;
		obj.top = y + ASsuff;		
	}
	else if (ASisIE4) {
		obj.pixelLeft = x;
		obj.pixelTop = y;
	}
	else {
		obj.moveTo(x, y);
	}
	return;
}
function ASPause() {
	this.ASpauseFlag = false;
	clearTimeout(this.ASrep);
	return;
}
function ASGetObject(objName) {
	var params;
	if (ASW3C) {
		params = eval('document.getElementById("' + objName + '").style');
	}
	else if (ASisIE4) {
		params = eval("document.all." + objName + ".style");
	}
	else {
		params = ASFindLayerObject(objName, 0);
	}
	return params;
}
function ASFindLayerObject(layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = thisLayer.document;
	}
	else {
		var thisDocument = document;
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = ASFindLayerObject(layer, thisDocument.layers[i]); 
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function ASDoInit() {
	this.getobject = ASGetObject;
	this.scrollto = ASScrollTo;
	this.pause = ASPause;
	this.doscroll = ASDoScroll;
	this.clipingBox = this.getobject(this.action[3]);
	this.contentBox = this.getobject(this.action[4]);
	this.ASstopFlag = false;
 	this.ASrepeat = 0;
 	this.ASrep = 0;
	this.ASstartDelay = 0;
	this.ASlineDelay = 0;
	this.ASendDelay = 0;
	this.ASyDest = 0;
	this.ASyOrig = 0;
	this.ASyloc = 0;
	this.ASxDest = 0;
	this.ASxOrig = 0;
	this.ASxloc = 0;
	this.ASpixCount = 0;
	this.ASpauseFlag = false;
	this.ASstartFlag = this.action[13] == 0 ? true : false;
	this.ASstopFlag = false;
	this.ASpixelLines = this.action[7];
	this.ASloop = this.action[9];
	this.ASlines = this.action[11];
	this.ASdelay = this.action[12];
	if (ASW3C) {
		if (ASisOpera) {
			var clipingBox = document.getElementById(this.action[3]);
			var contentBox = document.getElementById(this.action[4]);
			this.contBoxWidth = contentBox.clientWidth;
			this.contBoxHeight = contentBox.clientHeight;
			this.contBoxTop = contentBox.offsetTop;
			this.contBoxLeft = contentBox.offsetLeft;
			this.clipBoxWidth = clipingBox.clientWidth;
			this.clipBoxHeight = clipingBox.clientHeight;
		}
		else {
			this.contBoxWidth = parseInt(this.contentBox.width);
			this.contBoxHeight = parseInt(this.contentBox.height);
			this.contBoxTop = parseInt(this.contentBox.top);
			this.contBoxLeft = parseInt(this.contentBox.left);
			this.clipBoxWidth = parseInt(this.clipingBox.width);
			this.clipBoxHeight = parseInt(this.clipingBox.height);
		}
	}
	else if (document.all) {
		this.contBoxWidth = this.contentBox.width;
		this.contBoxHeight = this.contentBox.height;
		this.contBoxTop = this.contentBox.pixelTop;
		this.contBoxLeft = this.contentBox.pixelLeft;
		this.clipBoxWidth = this.clipingBox.width;
		this.clipBoxHeight = this.clipingBox.height;
	}
	else {
		this.contBoxWidth = this.contentBox.clip.width;
		this.contBoxHeight = this.contentBox.clip.height;
		this.contBoxTop = this.contentBox.top;
		this.contBoxLeft = this.contentBox.left;
		this.clipBoxWidth = this.clipingBox.clip.width;
		this.clipBoxHeight = this.clipingBox.clip.height;
	}
	this.scrollto(this.contentBox, this.contBoxTop, this.contBoxLeft);
	this.ASyOrig = this.contBoxTop;
	this.ASxOrig = this.contBoxLeft;
	this.ASyloc = this.contBoxTop;
	this.ASxloc = this.contBoxLeft;
	if (this.action[10]) {
		this.ASyDest = this.contBoxTop < 0 ? this.clipBoxHeight : -1*this.contBoxHeight;
		this.ASxDest = this.contBoxLeft < 0 ? this.clipBoxWidth : -1*this.contBoxWidth;
	}
	else {
		this.ASyDest = this.contBoxTop < 0 ? 0 : -1*(this.contBoxHeight - this.clipBoxHeight);
		this.ASxDest = this.contBoxLeft < 0 ? 0 : -1*(this.contBoxWidth - this.clipBoxWidth);
	}
	return;
}
function ASBoxPrep() {
	if (!W3CinitFlag && ASW3C && document.getElementsByTagName("style")[0].innerHTML != "") {
		var d = document.getElementsByTagName("div");
		var s = document.getElementsByTagName("style");
		for (var i = 0; i < s.length; i++) {
			var html = (s[i].innerHTML);
			var start = html.indexOf("!--") + 3;
			var end = html.lastIndexOf("}") + 1 - start;
			html = html.indexOf("!--") > -1 ? html.substr(start, end) : html;
			html = html.replace(/^\s*/, "");
			html = html.replace(/:\s*#/g, ": ~");
			html = html.replace(/[\n\r]/g, "");
			var styleArray = html.split(/\s*\}\s*/);
			for (var j = 0; j < styleArray.length; j++) {
				var name = styleArray[j].substr(styleArray[j].search(/\w/), styleArray[j].search(/{/));
				name = name.replace(/[ \{].+/g, "")
				for (var k = 0; k < d.length; k++) {
					var match = (name == d[k].id && name != "");
					if (match) break;
				}
				if (styleArray[j] != "" && match) {
					styleArray[j] = styleArray[j].replace(/\**#/, "");
					styleArray[j] = styleArray[j].replace(/~/g, "#");
					var styleName = styleArray[j].substr(0, styleArray[j].indexOf("{"));
					styleName = styleName.replace(/\s*/g, "");
					styleArray[j] = styleArray[j].toLowerCase();
					var t = eval("d." + styleName + ".style");
					var divName = eval("d." + styleName + ".id");
					var styleString = styleArray[j].replace(/^.*\{\s*/, "");
					styleString = styleString.replace(/\s*\}.*$|\s*\}.*\n.*$|\s*\}.*\r.*$/, "");
					styleString = styleString.replace(/\;$/, "");
					var divArray = styleString.split(/\;\s*/g);
					for (var k = 0; k < divArray.length; k++) {
						var propertyName = divArray[k].substr(0, divArray[k].indexOf(":"));
						var dash = propertyName.indexOf("-");
						if (dash > -1) {
							var propertyName = propertyName.substr(0, dash) + propertyName.substr(dash + 1, 1).toUpperCase() + propertyName.substr(dash + 2, propertyName.length);
						}
						var propertyValue = divArray[k].substr(divArray[k].indexOf(":"), divArray[k].length);
						propertyValue = propertyValue.replace(/:*(-->)*}*\n*/g, "");
						propertyValue = propertyValue.replace(/^\s*|\s*$/, "");
						if (ASisNN6 && propertyValue.indexOf("(") > -1) {
							propertyValue = propertyValue.replace(/auto|pt|pi|px|em|ex|mm|cm|in|%/g, "$& ");
							propertyValue = propertyValue.replace(/ \)/g, ")");
						}
						t.name = divName;
						t[propertyName] = propertyValue;
					}
				}
			}
		}
		W3CinitFlag = true;
	}
	return;
}
function ASVersion() {
	return true;
}
//-->
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 */
}
//-->
// Version 1.1. A Michael Ahgren action.
function CSRemoveIEbox(){
if (document.images&&navigator.userAgent.indexOf("MSIE")!=-1){
	for(i=0;i<document.links.length;i++){
		target=eval("document.links[i]")
		target.onfocus=blurHandler
		}
	}
}
function blurHandler(){
obj=window.event.srcElement
if(obj.tagName == "A"||obj.tagName=="AREA") obj.blur()
}
function CSOpenFullWindow(action) {
	var wf = "";	
	if(action[12]) {
		wf = wf + "width=" + screen.availWidth;
		wf = wf + ",height=" + screen.availHeight;
	} else {
		wf = wf + "width=" + action[3];
		wf = wf + ",height=" + action[4];
	}
	wf = wf + ",resizable=" + (action[5] ? "yes" : "no");
	wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");
	wf = wf + ",menubar=" + (action[7] ? "yes" : "no");
	wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");
	wf = wf + ",directories=" + (action[9] ? "yes" : "no");
	wf = wf + ",location=" + (action[10] ? "yes" : "no");
	wf = wf + ",status=" + (action[11] ? "yes" : "no");	
	if(action[12]) {
		wf = wf + ",left=0";
		wf = wf + ",top=0";
	} else {
		if(action[13]) {
			wf = wf + ",left=" + action[13];
		}
		if(action[14]) {
			wf = wf + ",top=" + action[14];
		}
	}
	window.open(action[1],action[2],wf);
}
function CSSetImageURL(action) {
	var img=CSGetImage(action[1]);
	if (img) img.src=action[2];
}
function CStextswapID(action) {
(action[2] != "") ? (updateobject = action[2]) : (updateobject = action[1]);
(action[5] == true) ? (whichfunction = "disappear()") : (whichfunction = "revert()");
if(document.all) { originaltext = document.all(updateobject).innerHTML };
if(document.getElementById) { originaltext = document.getElementById(updateobject).innerHTML};
timeout = (action[4] != "") ? (action[4] * 1000) : 0;
if(document.getElementById) { originaltext = document.getElementById(updateobject).innerHTML};
timeout = (action[4] != "") ? (action[4] * 1000) : 0;
if (document.all)	 {  document.all(updateobject).innerHTML = action[6] + action[3] + action[7]; if (timeout != 0)  setTimeout(whichfunction,timeout); } 
	else { 	if (document.getElementById) { document.getElementById(updateobject).innerHTML = action[6] + action[3] + action[7];
			if (timeout != 0)   setTimeout(whichfunction,timeout)  }
		}
}
function disappear() {  if (document.all) { document.all(updateobject).innerHTML = "<div id=updateobject></div>" } 
	else { if (document.getElementById) { document.getElementById(updateobject).innerHTML = "" }
	}
}
function revert() { if (document.all) { document.all(updateobject).innerHTML = originaltext } 
	else { if (document.getElementById) { document.getElementById(updateobject).innerHTML = originaltext }
	}
}
function CSShowHide(action) {
	if (action[1] == '') return;
	var type=action[2];
	if(type==0) CSSetStyleVis(action[1],0);
	else if(type==1) CSSetStyleVis(action[1],1);
	else if(type==2) { 
		if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
		else CSSetStyleVis(action[1],0);
	}
}
// EOF

