/* -- Adobe GoLive JavaScript Library */

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 */
}

//Anti Spam Action ver. 1.2b
function RDas(action){
document.write("<a href='" + "mailto:" +action[1]+ "@" +action[2]+ "." +action[3]+"'>"+ action[4] + "<\/a>");
}
//-->

function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}

function CSActionGroup (action) {
	for(var i=1;i<action.length;i++) { CSAction(new Array(action[i])); }
}

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);
}
// © Mads Rasmussen Apr 2001
// Ver. 1.1.4 mar 2002
// All Rights Reserved Rasmussens Design
function flyanoteRD(action) { 
var venstre,hojre,baggfarve,poster,PIvin="";
if(action[14]==10){venstre=Math.floor(screen.width/2-action[7]/2); hojre =Math.floor(screen.height/2-action[8]/2);}
if(action[14]==20){venstre=action[9]; hojre=action[10];}
	PIvin = ",width=" + action[7];
	PIvin += ",height=" + action[8] ;
	PIvin += ",resizable=" + (action[13] ? "1" : "0");
	PIvin += ",scrollbars=" + (action[12] ? "1" : "0");
	PIvin +=",left=" + venstre;
	PIvin += ",top=" + hojre;
	PIvin +=",ScreenX=" + venstre;
	PIvin += ",ScreenY=" + hojre;
poster = "<html><head><meta http-equiv=\"content-type\" content=\"text/html;charset=iso-8859-1\">";
poster += '<title>'+action[3]+'</title>';
poster += '<link href=\"'+action[1]+'\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\">';
poster += '</head><body text=#000000 bgcolor=\"'+action[6]+'\" leftmargin=\"'+action[4]+'\" marginheight=\"'+action[4]+'\" marginwidth=\"'+action[5]+'\" topmargin=\"'+action[5]+'\">';
poster +='<font size="3">'+action[11]+'</FONT>';
poster += '</body></html>';
nytPIvin = window.open('',action[2],PIvin);
nytPIvin.focus();
nytPIvin.document.write(poster);
nytPIvin.document.close()
}

