/* -- Adobe GoLive JavaScript Library */

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, st) {
	var s=si.toUpperCase();
	var myID=id.toUpperCase()+":";
	var id1=s.indexOf(myID,st);
	if (id1==-1) return "";
	var ch=s.charAt(id1-1);
	if (ch!=" " && ch!="\t" && ch!="\n" && ch!=";" && ch!="{")
		return CSGetStyleAttrValue (si, id, id1+1);
	var start=id1+myID.length;
	ch=s.charAt(start);
	while(ch==" " || ch=="\t" || ch=="\n") {start++; ch=s.charAt(start);}
	s=s.substring(start,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",0);
		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top",0);
		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width",0);
		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height",0);
		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility",0);
		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index",0);
	}
}
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;
}
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 newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}


userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
mustInitImg = true;
function initImgID() {var di = document.images; if (mustInitImg && di) { for (var i=0; i<di.length; i++) { if (!di[i].id) di[i].id=di[i].name; } mustInitImg = false;}}

function findElement(n,ly) {
	var d = document;
	if (browserVers < 4)		return d[n];
	if ((browserVers >= 6) && (d.getElementById)) {initImgID; return(d.getElementById(n))}; 
	var cd = ly ? ly.document : d;
	var elem = cd[n];
	if (!elem) {
		for (var i=0;i<cd.layers.length;i++) {
			elem = findElement(n,cd.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (i=0;i<array.length;i+=2) {
			img = null; var n = array[i];
			if (d.images) {
				if (d.layers) {img = findElement(n,0);}
				else {img = d.images[n];}
			}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (!img && d.getElementsByName) {
				var elms = d.getElementsByName(n);
				if (elms) {
					for (j=0;j<elms.length;j++) {
						if (elms[j].src) {img = elms[j]; break;}
					}
				}
			}
			if (img) {img.src = array[i+1];}
		}
	}
}


function changeImages() {
	changeImagesArray(changeImages.arguments);
}


function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])
			changeImagesArray(toggleImages.arguments[i+1]);
	}
}

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


var djaframeset = "";
function DJautoFrameset(action){
	var passedName = unescape(window.location.search);
	var lengthOfPassedName=passedName.length;
	if (lengthOfPassedName > 1) {
		djaframeset=passedName.substring(1,lengthOfPassedName);
	}
}
//-->
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)
	}
}

// AD_WindowClose - www.ad-soft.ch
// Copyright (c) AD-Software 1980 - 2004
// Version: 1.00, 2005-05-06
function AD_WindowClose(action)
{self.close();
}
//
//-->


function DJintoFrameset(action){
	var myact = action[1];
	var mypar = "";
	var myparent = "";
	var newparent = "";
	var mytemp1 = "";
	var lengthOfPassedName = 0;
	var passedName = "";
	if(parent.frames.length > 0) {
		mypar = parent.location.pathname;
		if(mypar.lastIndexOf("\\") != -1){
			myparent = mypar.substring(mypar.lastIndexOf("\\")+1, mypar.length);
		} else if(mypar.lastIndexOf("/") != -1) {
			myparent = mypar.substring(mypar.lastIndexOf("/")+1, mypar.length);
		} else {
			myparent = mypar;
		}
	}
	if(myact.lastIndexOf("\\") != -1){
		newparent = myact.substring(myact.lastIndexOf("\\")+1, myact.length);
	} else if(myact.lastIndexOf("/") != -1) {
		newparent = myact.substring(myact.lastIndexOf("/")+1, myact.length);
	} else {
		newparent = myact;
	}
	if (newparent.length > 0) {
		if(parent.frames.length == 0 || myparent != newparent || (top != parent && action[2])) {
			if(action[3]) {
				mytemp1=action[1];
			} else {
				mytemp1=action[1] + "?" + escape(window.location.href);
			}
			if(!action[2]) {
				window.location.replace(mytemp1);
			} else {
				top.location.replace(mytemp1);
			}
		} else {
			if(parent.djaframeset && parent.djaframeset != "" && !action[3]) {
				mytemp1 = parent.djaframeset;
				parent.djaframeset = "";
				window.location.replace(mytemp1);
			}
		}
	}
}
//-->
// OpenPopUpLite 2.0.1 action by Nate Baldwin, www.mindpalette.com, copyright 2004
if (typeof MPStoreOpenWin2 == "undefined") MPStoreOpenWin2 = new Array();
function MPOpenPopupLite(action) {
	var posX = 0;
	var posY = 0;
	if (action[4] == true) {
		posX = Math.round((screen.availWidth/2)-(action[2]/2));
		posY = Math.round((screen.availHeight/2)-(action[3]/2));
		} else {
		posX = action[12];
		posY = action[13];
		}
	if (action[16] == true) {
		posX = 0;
		posY = 0;
		action[2] = screen.availWidth;
		action[3] = screen.availHeight;
		}
	for (i=5; i<12; i++) {
		action[i] == true ? action[i] = "yes" : action[i] = "no";
		}
	var windowOptions = "";
	windowOptions += "width=" + action[2];
	windowOptions += ",height=" + action[3];
	windowOptions += ",resizable=" + action[11];
	windowOptions += ",scrollbars=" + action[5];
	windowOptions += ",menubar=" + action[6];
	windowOptions += ",toolbar=" + action[9];
	windowOptions += ",directories=" + action[7];
	windowOptions += ",location=" + action[10];
	windowOptions += ",status=" + action[8];
	windowOptions += ",left=" + posX;
	windowOptions += ",top=" + posY;
	var thisPopup = window.open(action[15], action[1], windowOptions);
	MPStoreOpenWin2[action[1]] = thisPopup;
	if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)")
		window.location = action[14];
	}
//-->

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

// AD_Tools
// Copyright (c) 1980 - 2004
// Version: 1.04, 2004-10-17

//Code from IE.scrp from adobe golive script source
adUAG  = window.navigator.userAgent; 
adBVS = parseInt(adUAG.charAt(adUAG.indexOf("/")+1),10);
adIsW3CDOM = ((document.getElementById) && !(ad_IsIE()&&adBVS < 6)) ? true : false;

function ad_IsIE() 
{ return (adUAG.indexOf("MSIE") > 0);
}

adIImg=false;

function ad_InitImgID() 
{ if ( ! adIImg && document.images) 
  { for (var i=0; i<document.images.length; i++) 
    { if (!document.images[i].id) 
        document.images[i].id=document.images[i].name;
    } 
    adIImg = true;
  }
}

function ad_FindElement(n,ly) 
{ if (adBVS < 4) 
    return document[n];
	if (adIsW3CDOM) 
	{ ad_InitImgID();
	  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=ad_FindElement(n,curDoc.layers[i]);
	    if (elem) 
	      return elem; 
	  }
  }
	return elem;
}

function ad_GetImage(n) 
{ if(document.images) 
  { if (!ad_IsIE() && adBVS < 5) 
    { return (ad_FindElement(n,0));
    } 
    else 
    { return (document.images[n]);
    }
  } 
  else 
  { return null;
  }
}
//Code from IE.scrp from adobe golive script source

function ad_GetFormElementValue(vForm, vElem)
{	return document.forms[vForm].elements[vElem].value;
}

function ad_GotoLink(vTar, vUri)
{	var mFrame=false;
 	if (!vTar)
  	location = vUri;
	else
	{	for(i = 0; i < parent.frames.length; i++) 
	 	{	if (parent.frames[i].name == vTar) 
		 	{	mFrame = true; 
		  	break;
		 	}
	 	}
		if (mFrame == true)
 		 	parent.frames[vTar].location = vUri;
   	else
		 	window.open(vUri, vTar, "");
	}
}

function ad_PathGetDir(vPath)
{	var mPosP = 0;
	var mDir = "";
	
	if ( ad_PathCheck(vPath)== true )
	{	mPosP = vPath.lastIndexOf("/");
		if ( ++mPosP > 1 )
		{	mDir = vPath.substring(0,mPosP);
			if (mDir.lastIndexOf("/") > mDir.length && mDir.length > 0 )
	  			mDir += "/";
		}
		return mDir;
	}
	return "";	
}

function ad_PathGetFile(vPath)
{	var mPosF = 0;

	if ( ad_PathCheck(vPath) == true )
	{	var mPosP = vPath.lastIndexOf("/");
		if ( ++mPosP > 1 )
			mPosF = vPath.lastIndexOf(".");
		if ( mPosF <= 0 )	
			return "";
		return vPath.substring(mPosP, mPosF-2);
	}
	return "";	
}

function ad_PathGetExt(vPath)
{	if ( ad_PathCheck(vPath) == true )
	{	var mPosF = vPath.lastIndexOf(".");
		if ( mPosF <= 0 )	
			return "";
		return vPath.substring(mPosF,vPath.length);
	}
	return "";	
}

function ad_PathGetCount(vPath)
{	if ( ad_PathCheck(vPath) == true )
	{	var mPosF = vPath.lastIndexOf(".");
		if ( mPosF <= 0 )	
			return 0;
		return (parseInt(vPath.substring(mPosF-1,mPosF)) + (10 * parseInt(vPath.substring(mPosF-2,mPosF-1))));
	}
	return 0;	
}

function ad_IsDefined(vVar)
{	var mOkay = true;
	var mOldErr = window.onerror;
 	window.onerror=ad_ErrHandle;
 	try 
 	{	eval(vVar);
 	}
 	catch (e) 
 	{ mOkay=false;
 	}
 	window.onerror=mOldErr;
 	return mOkay;
}

function ad_ErrHandle()
{	return true;
}

function ad_PathCheck(vPath)
{	if (vPath)
		return (vPath+"" != "" && vPath != "#" && vPath != "undefined");
	else	
		return false;	
}



// AD_DispWinPic
// Copyright (c) 1980 - 2006
// Version: 3.04, 2006-04-18
function AD_DispWinPic(action)
{	var WinW = action[4];
 	var WinH = action[5];
	var BackURL = action[6];
	var HTMLpag = "";
	var DispTrue = "";
	
	var ScrnL = (screen.width - WinW) / 2;
	var ScrnT = (screen.height - WinH) / 2;	
	var PicWid = action[13];
	var PicHei = action[14];
	var wf = "";	
	if (ad_IsDefined("DS_TimeOut") )
	{	clearInterval(DS_TimeOut);
		DS_TimeOut = 0 ;
	}
	HTMLpag += '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">';
	HTMLpag += '<html><head><title>Bild anzeigen</title>';
	if (action[15] && action[15]+"" != "" && action[15]+"" != "#" )
		HTMLpag += '<link href="'+action[15]+'" rel="stylesheet" media="all">';
	HTMLpag += '<s'+'cript language="javascript"><!'+'--\r\nfunction RePosAll() {';
	HTMLpag += ' if (document.layers) {';
	HTMLpag += '  document.layers["TxWait"].style.display="none";';
	HTMLpag += '  document.layers["PicTab"].style.display="'+DispTrue+'";';
	HTMLpag += ' } else if (document.getElementById) {';	
	HTMLpag += '  document.getElementById("TxWait").style.display="none";';
	HTMLpag += '  document.getElementById("PicTab").style.display="'+DispTrue+'";';
	HTMLpag += ' } else if (document.all) {';	
	HTMLpag += '  document.all.TxWait.style.display="none";';
	HTMLpag += '  document.all.PicTab.style.display="'+DispTrue+'";';
	HTMLpag += '} ';
  if (PicWid >= 150 && PicHei >= 150)	
   {HTMLpag += ' if (document.PicTmp.width >= document.PicTmp.height)';
    HTMLpag += ' {var pW = ((document.PicTmp.width > '+PicWid+') ? '+PicWid+' : document.PicTmp.width);';
	  HTMLpag += ' 	var pH = (document.PicTmp.height / (document.PicTmp.width / pW));';
	  HTMLpag += ' } else {';
	  HTMLpag += '  var pH = ((document.PicTmp.height > '+PicHei+') ? '+PicHei+' : document.PicTmp.height);';
	  HTMLpag += '  var pW = (document.PicTmp.width / (document.PicTmp.height / pH));';
	  HTMLpag += ' }';
	  HTMLpag += ' document.PicTmp.width = pW;';
	  HTMLpag += ' document.PicTmp.height = pH;';
	 } 
	HTMLpag += ' var ScrnX = window.screen.width;';
	HTMLpag += ' var ScrnY = window.screen.height;';
	HTMLpag += ' var NewW = document.PicTmp.width+50;';
  HTMLpag += ' if (window.opera) var NewH = document.PicTmp.height+140;';
  HTMLpag += ' else if (window.netscape) var NewH = document.PicTmp.height+140;';
  HTMLpag += ' else var NewH = document.PicTmp.height+140;';
	HTMLpag += ' var PosX;';
	HTMLpag += ' var PosY;';
	HTMLpag += ' PosX = (ScrnX - NewW)/2;';
	HTMLpag += ' PosY = (ScrnY - NewH)/2;';
	HTMLpag += ' if ( window.opera ) ';
	HTMLpag += '   window.moveTo(PosX,1);';
	HTMLpag += ' else';
	HTMLpag += '   window.moveTo(PosX,PosY);';
    HTMLpag += ' self.resizeTo(NewW,NewH);';
	HTMLpag += ' self.setfocus;';
    HTMLpag += ' document.PicTmp.onload=null;';
	HTMLpag += '}\r\n--'+'>\r\n</s'+'cript></head>';
	if (BackURL != null && BackURL != "#")
		HTMLpag += '<body background="'+ BackURL +'" bgcolor="'+action[7]+'" text="'+action[3]+'" link="'+action[8]+'" alink="'+action[9]+'" vlink="'+action[10]+'" width="'+WinW+'" height="'+WinH+'">';
	else
		HTMLpag += '<body bgcolor="'+action[7]+'" text="'+action[3]+'" link="'+action[8]+'" alink="'+action[9]+'" vlink="'+action[10]+'" width="'+WinW+'" height="'+WinH+'">';
 	HTMLpag += '<center><div id="TxWait" style="display:"><b><font size="3" color="'+action[3]+'" face="Verdana">'+action[2]+'</font></b></div>';
 	if ( window.opera ) 
   	HTMLpag += '<div id="PicTab" style="display:">';  	
  else 	
   	HTMLpag += '<div id="PicTab" style="display:none">';  	
	HTMLpag += '<table border="0" cellspacing="2" cellpadding="0">';
	HTMLpag += '<tr valign="middle" align="center">';
	HTMLpag += '<td align="center" valign="middle" colspan="2">';
	HTMLpag += '<table border="2" cellspacing="0" cellpadding="0" bgcolor="#dddddd"><tr><td>';
 	HTMLpag += '<img  name="PicTmp" onMousedown="return window.close();" src="';
 	var mImg = null;
 	if ( action[16]+"" != "" )
   	mImg = ad_GetImage(action[16]);
 	if ( mImg )
  	HTMLpag += mImg.src;
	else
  	HTMLpag += action[1];
	HTMLpag += '" align="TOP" vspace="0" hspace="0" border="0" onload="javascript:RePosAll();">';
	HTMLpag += '</td></tr></table></td></tr>';
	HTMLpag += '<tr valign="middle" align="center">';
	if ( !action[17] ) 
	{	HTMLpag += '<td align="center" valign="middle"><input type="submit" name="btnclose" value="'+action[11]+'" onclick="return window.close();"></td>';
		HTMLpag += '<td align="center" valign="middle"><input type="submit" name="btnprint" value="'+action[12]+'" onclick="return window.print();"></td>';
	} else {
		HTMLpag += '<td align="center" valign="middle"><a href="#" title="'+action[11]+'" onClick="return window.close();"><b><font size="1" face="Verdana" color="'+action[3]+'">'+action[11]+'</font></b></a></td>';
		HTMLpag += '<td align="center" valign="middle"><a href="#" title="'+action[12]+'" onClick="return window.print();"><b><font size="1" face="Verdana" color="'+action[3]+'">'+action[12]+'</font></b></a></td>';
	}	
	HTMLpag += '</tr>\r\n';
	HTMLpag += '</table></div>\r\n';
	HTMLpag += '</center>\r\n';
	HTMLpag += '</body>\r\n';
	HTMLpag += '</html>\r\n';
	wf = wf + "width="+WinW;
	wf = wf + ",height="+WinH;
	wf = wf + ",left="+ScrnL;
	if ( window.opera )
		wf = wf + ",top=1";
	else 	
		wf = wf + ",top="+ScrnT;
	wf = wf + ",resizable=no";
	wf = wf + ",scrollbars=no";
	wf = wf + ",menubar=no";
	wf = wf + ",toolbar=no";
	wf = wf + ",directories=no";
	wf = wf + ",location=no";
	wf = wf + ",status=yes";
	F1 = open("","_blank",wf);
	F1.document.open("text/html", "_blank");
	F1.document.writeln(HTMLpag);
	F1.focus();
	F1.document.close();
}
//
//-->

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);
	}
}

// HideAllLayers.action v1.1.3 - March, 2002
// © Copyright 2000 by Walter Blady
// All rights reserved
var HALisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var HALisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var HALW3C = document.getElementById ? true : false;
var HALvis, HALhid;
function WBHideAllLayers(action) { 
	if (HALVersion()) {
		HALvis = (HALW3C || HALisIE4) ? "visible" : "show";
		HALhid = (HALW3C || HALisIE4) ? "hidden" : "hide";
		HALState = action[1];
		var path = (action[4].length > 0) ? eval(action[4] + ".document") : document;
		if (HALW3C) {
			var len = path.getElementsByTagName("div").length;
		}
		else if (HALisIE4) {
			var len = path.all.tags("div").length;
		}
		else if (HALisNav4) {
			var len = path.layers.length;
		}
		for (var i = 0; i < len; i++) {
			if (HALW3C) {
				var HALDiv = path.getElementsByTagName("div");
				if (action[2].length > 0 ) {
					if (HALDiv[i].id.indexOf(action[2]) > -1) {
						HALDiv[i].style.visibility = action[1] ? HALhid : HALvis;
						var innerObjs = HALDiv[i].getElementsByTagName("div");
						if (action[3]) {
							for (var j = 0; j < innerObjs.length; j++) {
								innerObjs[j].style.visibility = action[1] ? HALhid : HALvis;
							}
						}
					}
				}
				else {
					if (HALDiv[i].id.length > 0) HALDiv[i].style.visibility = action[1] ? HALhid : HALvis;
				}
			}
			else if (HALisIE4) {
				var HALDiv = path.all.tags("div")[i];
				if (action[2].length > 0 ) {
					if (HALDiv.id.indexOf(action[2]) > -1) {
						HALDiv.style.visibility = action[1] ? HALhid : HALvis;
						if (action[3]) {
							for (var j = 0; j < document.all[action[2]].children.length; j++) {
								HALDiv.children[j].style.visibility = action[1] ? HALhid : HALvis;
							}
						}	
					}
				}
				else {
					if (HALDiv[i].id.length > 0) HALDiv.style.visibility = action[1] ? HALhid : HALvis;
				}
			}
			else if (HALisNav4) {
				var obj = path.layers[i];
				HALFindLayerObject(action, obj, action[2]);
			}
		}
	}
	return;
}
function HALFindLayerObject(action, layerObj, layerName) {
	if (layerName.length > 0) {
		if (layerObj.id.indexOf(layerName) > -1) {
			layerObj.visibility = action[1] ? HALhid : HALvis;
			if (action[3]) {
				for (var i = 0; i < layerObj.layers.length; i++) {
					layerObj.layers[i].visibility = action[1] ? HALhid : HALvis;
					if (layerObj.layers[i].layers.length == 0) {
						return;
					}
					else {
						var obj = layerObj.layers[i];
						layerName = layerObj.layers[i].id;
						HALFindLayerObject(action, obj, layerName); 
					}
				}
			}
		}
	}
	else {
		layerObj.visibility = action[1] ? HALhid : HALvis;
	}
	if (layerObj.layers.length == 0) {
		return;
	}
	else {
		for (var i = 0; i < layerObj.layers.length; i++) {
			var obj = layerObj.layers[i];
			HALFindLayerObject(action, obj, layerName); 
		}
	}
	return layerObj;
}
function HALVersion() {
	return true;
}
//
//-->



