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

// OUT Open Image Window Action v1.2.6
// Script copyright 1999, 2000 OUT Media Design GmbH. All rights reserved.

function OUTOpenImageWindow(action) {
	var imgWinW = action[3];
	var imgWinH = action[4];
	var bgImg = action[16] ? ' BACKGROUND="'+action[15]+'" ' : '';
	var bVers=window.navigator.appVersion.substring(0,1);
	var isMac = window.navigator.userAgent.indexOf("Mac") >= 0;
	var isNN = window.navigator.appName.indexOf("Netscape")>=0;
	var isIE = window.navigator.appName.indexOf("Explorer")>=0;
	var wOffset = (bVers<4 && isNN) ? 9 : action[14];

	imgWinW += 2*wOffset;
	imgWinH += 2*wOffset;
	var wf = "";	
	wf = wf + "width=" + imgWinW;
	wf = wf + ",height=" + imgWinH;
	wf = wf + ",resizable=" + (action[5] ? "no" : "yes");
	wf = wf + ",scrollbars=" + (action[6] ? "no" : "yes");
	wf = wf + ",menubar=" + (action[7] ? "no" : "yes");
	wf = wf + ",toolbar=" + (action[8] ? "no" : "yes");
	wf = wf + ",directories=" + (action[9] ? "no" : "yes");
	wf = wf + ",location=" + (action[10] ? "no" : "yes");
	wf = wf + ",status=" + (action[11] ? "no" : "yes");
	var newImgWin = window.open("",action[2],wf);
	newImgWin.saveResizable = !action[5];
	
	newImgWin.document.writeln('<HTML><HEAD><TITLE>'+action[13]+'</TITLE></HEAD>');
	newImgWin.document.writeln('<BODY BGCOLOR="'+action[12]+'"'+bgImg+' MARGINWIDTH="'+action[14]+'" MARGINHEIGHT="'+action[14]+'" LEFTMARGIN="'+action[14]+'" TOPMARGIN="'+action[14]+'">');
	newImgWin.document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%" HEIGHT="100%"><TR><TD VALIGN="middle" ALIGN="center"><IMG SRC="'+action[1]+'"');
	if (action[17] && bVers>=4) newImgWin.document.write(' ONLOAD="var imgWinW=this.width+'+2*wOffset+';var imgWinH=this.height+'+2*wOffset+';if(window.setResizable) window.setResizable(true);window.resizeTo(imgWinW, imgWinH);if (window.setResizable) window.setResizable(window.saveResizable);if(window.document.body && (window.document.body.clientWidth!=imgWinW || window.document.body.clientHeight!=imgWinH)) { window.resizeTo(2*imgWinW-window.document.body.clientWidth,2*imgWinH-window.document.body.clientHeight);}"');
	newImgWin.document.writeln('></TD></TR></TABLE>');
	newImgWin.document.writeln('</BODY></HTML>');
	newImgWin.document.close();
	if(bVers>=4 && !action[17]) { //do chrome compensation now
		if (isNN && newImgWin.setResizable) newImgWin.setResizable(true);
		if (!(isIE && isMac)) newImgWin.resizeTo(imgWinW,imgWinH);
		if (isNN && newImgWin.setResizable) newImgWin.setResizable(!action[5]);
		if(isIE && !isMac && (newImgWin.document.body.clientWidth!=imgWinW || newImgWin.document.body.clientHeight!=imgWinH)) newImgWin.resizeTo(2*imgWinW-newImgWin.document.body.clientWidth,2*imgWinH-newImgWin.document.body.clientHeight);
	}
	if(action[18] && bVers>=4 && !(isMac && isIE && bVers<5)) newImgWin.focus();
}
// by Mads Rasmussen Jul. 2000 - Oct 2000
// new version 1.2.3 mar'01
// Copyright © Mads Rasmussen
//All Rights Reserved  Rasmussens Design
var agt = window.navigator.userAgent; apN = window.navigator.appName;
var erIE5 = (agt.indexOf("MSIE 5") >= 5) ? true : false;
var erIE4 = (agt.indexOf("MSIE 4") != -1) ? true : false;
var erNN = (apN.indexOf("Netscape") >= 0) ? true : false;
var erMac = (agt.indexOf("Mac") >= 0) ? true : false;
var erWin = (agt.indexOf("Win") >= 0) ? true : false;
function RDCenterNewWindow(action) {
var CWBredde,CWHojde,CWvin,erstatCWHojde;

erstatCWHojde=action[4];
 if(erIE5 && erMac) erstatCWHojde=(erstatCWHojde-15); 
 if(erNN && erMac){CWBredde = CWBredde - 5; CWHojde = CWHojde - 25;
}
if(action[7] || action[8] || action[9] || action[10])CWdiv=2.4; else CWdiv=2;
if(action[7] || action[8] || action[9] || action[10] && erIE4 && erMac) erstatCWHojde+=60;
if(erMac){ CWmacW=30; CWmacH=30;}
	else { CWmacW=0; CWmacH=0;}
	CWBredde = (((screen.width-CWmacW)/2)-(action[3]/2));
	CWHojde = (((screen.height-CWmacH)/CWdiv)-(erstatCWHojde/2));

	CWvin = CWvin + ",width=" + action[3];
	CWvin = CWvin + ",height=" + erstatCWHojde ;
	CWvin = CWvin + ",resizable=" + (action[5] ? "1" : "0");
	CWvin = CWvin + ",scrollbars=" + (action[6] ? "1" : "0");
	CWvin = CWvin + ",menubar=" + (action[7] ? "1" : "0");
	CWvin = CWvin + ",toolbar=" + (action[8] ? "1" : "0");
	CWvin = CWvin + ",directories=" + (action[9] ? "1" : "0");
	CWvin = CWvin + ",location=" + (action[10] ? "1" : "0");
	CWvin = CWvin + ",status=" + (action[11] ? "1" : "0");
	CWvin = CWvin + ",left=" + CWBredde;
	CWvin = CWvin + ",top=" + CWHojde;
	CWvin = CWvin + ",ScreenX=" + CWBredde;
	CWvin = CWvin + ",ScreenY=" + CWHojde;	
	
if(erIE4 && erMac) CWHojde = CWHojde + 20;
		else if (erIE5 && erMac)var CWHojde = CWHojde;
		nytCWvin = window.open(action[1],action[2],CWvin);	
if(erIE4 && erMac || erWin && erIE5) {
		nytCWvin.moveTo(CWBredde,CWHojde);
		nytCWvin.focus()
		}
}

