/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
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 */
// StylesToDiv.action v1.1.6 - March, 2004
// © Copyright 2001 by Walter Blady
// All rights reserved
var STDW3C = document.getElementById ? true : false;
var STDisNN6 = navigator.userAgent.indexOf("Netscape6") >= 0;
var W3CinitFlag = false;
function WBStylesToDiv(action) {
	if (!W3CinitFlag && STDW3C) {
		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");
					t.name = divName;
					if (divName != styleName && action[1]) {
						var string = "\nCharacter codes for the 2 names:\nStyleName = ";
						for (var i = 0; i < styleName.length; i++) {
							string += styleName.charCodeAt(i) + " ";
						}
						string += "\n  DivName = ";
						for (var i = 0; i < divName.length; i++) {
							string += divName.charCodeAt(i) + " ";
						}
						alert("This browser is reporting a name mismatch between the Style Object " + styleName + " and the Div Object " + divName + string);
					}
					var styleString = styleArray[j].replace(/^.*\{\s*/, "");
					styleString = styleString.replace(/\s*\}.*$|\s*\}.*\n.*$|\s*\}.*\r.*$/, "");
					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 (STDisNN6 && propertyValue.indexOf("(") > -1) {
							propertyValue = propertyValue.replace(/auto|pt|pi|px|em|ex|mm|cm|in|%/g, "$& ");
							propertyValue = propertyValue.replace(/ \)/g, ")");
						}
						t[propertyName] = propertyValue;
					}
				}
			}
		}
	}
	W3CinitFlag = true;
	return;
}
function CSSlideNewWindow(action) {
var wh = ""
if (action[7] || action[8] || action[9] == true) wh=action[4]-125
else wh = action[4]
var wf = "";	
wf = wf + "width=" + action[3];
wf = wf + ",height=" + wh;
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(navigator.appVersion.charAt(0) >=4) {
var sw=screen.width-20;
var sh=screen.height;
var newwidth=action[3]; 
var newheight=action[4];
var positionleft=(sw-newwidth)/2;
var positiontop=""
if (action[7] || action[8] || action[9] == true) positiontop=(sh-newheight)/3;
else positiontop=(sh-newheight)/2.5;
}
newwindow=window.open(action[1],action[2],wf); 
newwindow.focus()	
if(navigator.appVersion.charAt(0) >=4) {
	for(width1 = 1 ; width1 < positionleft ; width1 = width1 + 10)
	newwindow.moveTo(width1,positiontop)
	}
}
/* EOF */
