/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
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 */
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}
// ThumbPopUp 1.0 action by Michael Ahgren copyright 2003
var  maWin 
function maThumbPop(action){
for(i=4;i<8;i++){
action[i]?action[i]=1:action[i]=0
}   
if( maWin && ! maWin.closed){ 
 maWin.close() 
} 
pagelabel = "myWin" 
 maWin=window.open("", pagelabel, "height="+action[2]+",width="+action[3]+",toolbar="+action[4]+",menubar="+action[5]+",directories="+action[6]+",scrollbars="+action[7]+",left="+action[8]+",top="+action[9]); 
maWrite(action) 
} 
function maMakeCode(action){ 
var code="" 
code+='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' 
code+='<html>' 
code+='<head>' 
code+='<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">' 
code+='<title>'+action[10]+'</title>' 
code+='</head>' 
code+='<body bgcolor="'+action[11]+'" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">' 
code+='<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">' 
code+='<tr>' 
code+='<td align="center" valign="middle"><img src="'+action[1]+'" alt="" height="'+action[2]+'" width="'+action[3]+'" border="0"></td>' 
code+='</tr>' 
code+='</table>' 
code+='</body>' 
code+='</html>' 
return code 
} 
function maWrite(action){ 
 maWin.document.open() 
 maWin.document.write(maMakeCode(action)) 
 maWin.document.close() 
 maWin.focus() 
} 
// End ThumbPopUp action
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;
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 */

