﻿<!--
var act;

function showlayer(what,x) {
	act = x;
	act.style.backgroundColor="#EBEDF0";
	document.getElementById('subnav'+what).style.display="block";
}
function hidelayer(what) {
	if(act){
	act.style.backgroundColor="#D8DCE1";
	}
	document.getElementById('subnav'+what).style.display="none";
}

//########### check flash start
   var version = 0;
  // ns
  // ueber plugin
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	if (navigator.plugins && navigator.plugins["Shockwave Flash"]  && (version = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1) {
	var versionString = navigator.plugins["Shockwave Flash"].description.substring(version-1, version);
	version = parseInt( versionString );
  	}
}
	
	// ie
	//ueber test object
	var FlashMode3 = 0;
	var FlashMode4 = 0;
  	var FlashMode5 = 0;
	var FlashMode6 = 0;
	var FlashMode7 = 0;
	var FlashMode8 = 0;
	var FlashMode9 = 0;
	var FlashMode10 = 0;
   
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 )) {
			
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n');
		document.write('</SCRIPT\> \n');
		
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
		document.write('</SCRIPT\> \n');
				
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
		document.write('</SCRIPT\> \n');
				
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
		document.write('</SCRIPT\> \n');
		
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n');
		document.write('</SCRIPT\> \n');
		
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode8 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))\n');
		document.write('</SCRIPT\> \n');
		
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode9 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))\n');
		document.write('</SCRIPT\> \n');
		
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('FlashMode10 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10")))\n');
		document.write('</SCRIPT\> \n');
		
		if(FlashMode3){
			version = 3;
		}
		if(FlashMode4){
			version = 4;
		}
		if(FlashMode5){
			version = 5;
		}
		if(FlashMode6){
			version = 6;
		}
		if(FlashMode7){
			version = 7;
		}
		if(FlashMode8){
			version = 8;
		}
		if(FlashMode9){
			version = 9;
		}
		if(FlashMode10){
			version = 10;
		}
	}
//########### check flash end


function writeSWF(obj,w,h,v,nf,murl){
/*alert('hi');
alert(obj);
alert(murl);
alert(w);
alert(h);
alert(v);
alert(nf);*/

if(version>=v){
var swfcode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">';
swfcode += '<param name="movie" value="'+obj+'" />';
swfcode += '<param name="quality" value="high" />';
swfcode += '<param name="allowScriptAccess" value="always" />';
swfcode += '<param name="FlashVars" value="'+murl+'"/>';
swfcode += '<param name="wmode" value="opaque" />';
swfcode += '<embed FlashVars="'+murl+'" src="'+obj+'" quality="high" allowScriptAccess="always" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque" width="'+w+'" height="'+h+'"></embed>';
swfcode += '</object><br />';
document.write(swfcode);

}
else{
document.write('<img src="images/'+nf+'" width="'+w+'" height="'+h+'" alt="No flash" />');
}
}

//########### check form start
function validEmail(addr) 
{
 var a = false;
 var res = false;
 // is Regexp supported
 if(typeof(RegExp) == 'function')
 {
   var b = new RegExp('abc');
   if (b.test('abc') == true) {a = true;}
 }

 if(a == true)
 {
  reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+
                   '(\\@)([a-zA-Z0-9\\-\\.]+)'+
                   '(\\.)([a-zA-Z]{2,4})$');
  res = (reg.test(addr));
 }
 else
 {
  res = (addr.search('@') >= 1 &&
         addr.lastIndexOf('.') > s.search('@') &&
         addr.lastIndexOf('.') >= s.length-5)
 }
 return res;
}


function validForm(x){
if (validEmail(x.emailto.value) != true){
	alert("Receiver e-mail address is invalid");
    return false;
	}

}

function onChangeEmail(name, errorMsg)
{
  if (!validEmail(document.getElementsByName(name)[0].value))
  {
    alert(errorMsg);
    return false;
  }
  return true;
}
//########### check form end


//########### zoom image start
function zoom(image, zoomwidth, zoomheight) {

    var popup = window.open("", "", "width="+zoomwidth+",height="+zoomheight+",status=no,toolbar=no,menubar=no");
    popup.document.open();
    popup.document.write("<html><body style='margin:0;padding:0;cursor:hand;cursor:pointer;' onclick='window.close();'>");
    popup.document.write("<img SRC='" + image + "' border=0></body></html>");
    popup.document.close();
    return;
  }

//########### zoom image end

//########### Portal Switch start
function openSwitch(){
document.getElementById("portalswitch").style.display="block";
}

function SWrollin(x){
x.style.backgroundColor="#fff";
}

function SWrollout(x){
x.style.backgroundColor="#ebedf0";
}


function closeSwitch(){
if(document.getElementById("portalswitch")){
document.getElementById("portalswitch").style.display="none";
}
}


document.onclick = closeSwitch;

//########### Portal Switch end


function paintflash(f) {

document.write(f);

}
-->