/*	SWFObject v2.0 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return }J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return }if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return }}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return }var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return }var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return }r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();


function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

function checker() {
	if(
	document.unterlagen.u_bellavista_flyer.checked ||
	document.unterlagen.u_bellavista.checked ||
	document.unterlagen.u_bellavista_gub.checked ||

	document.unterlagen.u_bird_flyer.checked ||
	document.unterlagen.u_bird.checked ||
	document.unterlagen.u_bird_gub.checked ||

	document.unterlagen.u_bon_flyer.checked ||
	document.unterlagen.u_bon.checked ||
	document.unterlagen.u_bon_gub.checked ||

	document.unterlagen.u_denison_flyer.checked ||
	document.unterlagen.u_denison.checked ||
	document.unterlagen.u_denison_gub.checked ||

	document.unterlagen.u_don_flyer.checked ||
	document.unterlagen.u_don.checked ||
	document.unterlagen.u_don_gub.checked ||

	document.unterlagen.u_kc_leistungsbilanz2000.checked ||
	document.unterlagen.u_kc_multipurpose_brosch.checked ||
	document.unterlagen.u_kc_on_board.checked ||
	document.unterlagen.u_kc_go_wind.checked ||
	document.unterlagen.u_kc_aktuell.checked ||
	document.unterlagen.u_kc_image_d.checked ||
	document.unterlagen.u_kc_image_e.checked)
		{
	return true;
		}
	else  {
		Check = confirm("Sie haben keine Unterlagen bestellt. Wollen Sie das Formular trotzdem abschicken?");
		if(Check == false) return false;
			else return true;
		}
	}


function openPopup(theURL,winName) { //v2.0
window.open(theURL,winName,'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=581');
}

function centerPopup(theURL,winName,w,h) { //v2.0

	// setzen einer festen groesse
	//w = 313;       // fensterweite
	//h = 525;         // fensterh�e

	//w= screen.width-50
	//h= screen.height-100

	var win= null;
	var winl = (screen.width-w)/2;
	var wint = ((screen.height-h)/2)-20;
	var settings ='height='+h+', ';
	settings +='width='+w+', ';
	settings +='top='+wint+', ';
	settings +='left='+winl+', ';
	settings +='scrollbars=no, ';
	settings +='resizable=no';

	win=window.open(theURL,winName,settings);
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}


function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}

/// Cookie stuff
function cookie(name, value, expires, path, domain, secure)
{
	// Passed Values
	this.name=name;
	this.value=value;
	this.expires=expires;
	this.path=path;
	this.domain=domain;
	this.secure=secure;

	// Read cookie
	this.read=function()
	{
		// To allow for faster parsing
		var ck=document.cookie;

		var arg = this.name + "=";
		var alen = arg.length;
		var clen = ck.length;
		var i = 0;

		while (i < clen)
		{
			var j = i + alen;
			if (ck.substring(i, j) == arg)
			{
				var endstr = ck.indexOf (";", j);
				if (endstr == -1) endstr = ck.length;
				return unescape(ck.substring(j, endstr));
			}
			i = ck.indexOf(" ", i) + 1;
			if (i == 0) break;
		}
		return null;
	}

	// Set cookie
	this.set=function()
	{
		// Store initial value of "this.expires" for re-initialization.
		expStore=this.expires;

		// Set time to absolute zero.
		exp = new Date();
		base = new Date(0);
		skew = base.getTime();
		if (skew > 0)  exp.setTime (exp.getTime() - skew);
		exp.setTime(exp.getTime() + (this.expires*24*60*60*1000));
		this.expires=exp;

		document.cookie = this.name + "=" + escape (this.value) +
				((this.expires) ? "; expires=" + this.expires.toGMTString() : "") +
				((this.path) ? "; path=" + this.path : "") +
				((this.domain) ? "; domain=" + this.domain : "") +
				((this.secure) ? "; secure" : "");

		// Re-initialize
		this.expires=expStore;
	}

	// Kill cookie
	this.kill=function()
	{
		document.cookie = this.name + "=" +
				((this.path) ? "; path=" + this.path : "") +
				((this.domain) ? "; domain=" + this.domain : "") +
				"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}

	// Change cookie settings.
	this.changeName=function(chName) { this.kill(); this.name=chName; this.set(); }
	this.changeVal=function(chVal) { this.kill(); this.value=chVal; this.set(); }
	this.changeExp=function(chExp) { this.kill(); this.expires=chExp; this.set(); }
	this.changePath=function(chPath) { this.kill(); this.path=chPath; this.set(); }
	this.changeDomain=function(chDom) { this.kill(); this.domain=chDom; this.set(); }
	this.changeSecurity=function(chSec) { this.kill(); this.secure=chSec; this.set(); }
}



// cookiestuff von sk ////////////////////////
function initCookie(){
	cookiestring = flashCookie.read();
	if (cookiestring == null){
		flashCookie.set();
	}
}

// purplefinder anfang //////////////////////

function offset() {var now = new Date();
	return(now.getTimezoneOffset());
}

function shipFenster(ship) {
	if (ship != 0) {
		w= screen.width-50
		h= screen.height-100
		var win= null;
		var winl = (screen.width-w)/2;
		var wint = ((screen.height-h)/2)-20;
		var settings ='height='+h+', ';
		settings +='width='+w+', ';
		settings +='top='+wint+', ';
		settings +='left='+winl+', ';
		settings +='scrollbars=no, ';
		settings +='resizable=no';

		win = window.open("", "mapwindow", settings);
		win.document.writeln('<html><head><title>www.emissionshaus.com - schiffsrouten<\/title><\/head><body style=\"margin:0;\" bgcolor=\"330066\">');
		win.document.writeln('<APPLET');
		win.document.writeln('CODEBASE="http://www.purplefinder.com/"');
		win.document.writeln('CODE="com.purplefinder.applet.ThinApplet"');
		win.document.writeln('ARCHIVE="ThinApplet.jar"');
		win.document.writeln('WIDTH=100%');
		win.document.writeln('HEIGHT=100%');
		win.document.writeln('ALT="Your browser is not Java enabled"\>');
		win.document.writeln('<PARAM NAME="protocol" VALUE="http"\>');
		win.document.writeln('<PARAM NAME="host" VALUE="www.purplefinder.com">');
		win.document.writeln('<PARAM NAME="background" VALUE="#ffffff">');
		win.document.writeln('<PARAM NAME="user_name" VALUE="konigweb">');
		win.document.writeln('<PARAM NAME="password" VALUE="hupun3tz">');
		win.document.writeln('<PARAM NAME="history" VALUE="false">');
		win.document.writeln('<PARAM NAME="offset" VALUE="' + offset() + '">');
		win.document.write('<PARAM NAME="track_keys" VALUE="');
		switch(ship) {
			case "suezmax3":
				win.document.write('vessel.KON00046:1,');
				win.document.write('vessel.KON00047:1');
				break;
			case "suezmax2":
				win.document.write('vessel.KON00038:1,');
				win.document.write('vessel.KON00039:1,');
				win.document.write('vessel.KON00040:1,');
				win.document.write('vessel.KON00041:1');
				break;
			case "suezmax":
				win.document.write('vessel.KON00007:1,');
				win.document.write('vessel.KON00006:1');
				break;
			case "aframax":
				win.document.write('vessel.KON00017:1,');
				win.document.write('vessel.KON00018:1,');
				win.document.write('vessel.KON00019:1,');
				win.document.write('vessel.KON00020:1');
				break;
			case "produktentanker5":
				win.document.write('vessel.KON00069:1,');
				win.document.write('vessel.KON00066:1');
				break;
			case "produktentanker4":
				win.document.write('vessel.KON00064:1,');
				win.document.write('vessel.KON00065:1');
				break;
			case "produktentanker3":
				win.document.write('vessel.KON00063:1,');
				win.document.write('vessel.KON00062:1');
				break;
			case "produktentanker2":
				win.document.write('vessel.KON00059:1,');
				win.document.write('vessel.KON00058:1');
				break;
			case "produktentanker1":
				win.document.write('vessel.KON00049:1,');
				win.document.write('vessel.KON00057:1');
				break;
			case "twinfonds1":
				win.document.write('vessel.KON00085:1,');
				win.document.write('vessel.KON00083:1');
				break;
			default:
				win.document.write('vessel.' + ship );
				break;
		}
		win.document.writeln('">');
		win.document.writeln('<\/APPLET>');
		win.document.writeln('<\/body><\/html>');
		win.document.close();
		if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
	} else {
		alert("bitte treffen Sie eine Auswahl.");
	}
}

// ////////////////////// purplefinder ende


// Print Version /////////////////////////////////////

function printfunction(){
//	alert('print me');
	window.print();
	}


/* Reiter Tabs -------------------------------------------------- */
function tabControl(witch) {

	allTabsOff();
	switch(witch) {
	case "tab1":
			document.getElementById('tab1body').style.display = 'block';
			document.getElementById('tab-1').className = 'firsttabselect';
		break;
	case "tab2":
			document.getElementById('tab2body').style.display = 'block';
			document.getElementById('tab-2').className = 'tabselect';
		break;
	case "tab3":
			document.getElementById('tab3body').style.display = 'block';
			document.getElementById('tab-3').className = 'tabselect';
		break;
	case "tab4":
			document.getElementById('tab4body').style.display = 'block';
			document.getElementById('tab-4').className = 'tabselect';
		break;
	case "tab5":
			document.getElementById('tab5body').style.display = 'block';
			document.getElementById('tab-5').className = 'tabselect';
		break;
	case "tab6":
			document.getElementById('tab6body').style.display = 'block';
			document.getElementById('tab-6').className = 'tabselect';
		break;
	case "tabhead-1":
			document.getElementById('tabhead-2').style.display = 'none';
			document.getElementById('tabhead-1').style.display = 'block';

			tabControl('tab1');
		break;
	case "tabhead-2":
			document.getElementById('tabhead-1').style.display = 'none';
			document.getElementById('tabhead-2').style.display = 'block';

			tabControl('tab5');
		break;


	default:
				alert('default');
		break;
	}
	//return ausgabestring;
}

function allTabsOff() {
	document.getElementById('tab-1').className = 'firsttab';
	document.getElementById('tab-2').className = 'tab';
	document.getElementById('tab-3').className = 'tab';
	document.getElementById('tab-4').className = 'tab';
	document.getElementById('tab-5').className = 'tab';
	document.getElementById('tab-6').className = 'tab';

	document.getElementById('tab1body').style.display = 'none';
	document.getElementById('tab2body').style.display = 'none';
	document.getElementById('tab3body').style.display = 'none';
	document.getElementById('tab4body').style.display = 'none';
	document.getElementById('tab5body').style.display = 'none';
	document.getElementById('tab6body').style.display = 'none';
}

// Navigation /////////////////////////////////////
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
// ------------ //////////////////////////////////////

// ----------- // Callmeback
function showCallmebox (status) {
	switch(status) {
	case "status01":
		document.getElementById("neukunde").style.display = 'block';
		document.getElementById("kunde").style.display = 'none';
		document.getElementById("vpartner").style.display = 'none';
		break;
	case "status02":
		document.getElementById("neukunde").style.display = 'none';
		document.getElementById("kunde").style.display = 'block';
		document.getElementById("vpartner").style.display = 'none';
		break;
	case "status03":
		document.getElementById("neukunde").style.display = 'none';
		document.getElementById("kunde").style.display = 'none';
		document.getElementById("vpartner").style.display = 'block';
		break;
	default:
		break;
	}
}

function showCallmeboxEN (status) {
	switch(status) {
	case "status01":
		document.getElementById("schiffe").style.display = 'block';
		document.getElementById("lv").style.display = 'none';
		document.getElementById("pequity").style.display = 'none';
		document.getElementById("mezzanine").style.display = 'none';
		break;
	case "status02":
		document.getElementById("schiffe").style.display = 'none';
		document.getElementById("lv").style.display = 'block';
		document.getElementById("pequity").style.display = 'none';
		document.getElementById("mezzanine").style.display = 'none';
		break;
	case "status03":
		document.getElementById("schiffe").style.display = 'none';
		document.getElementById("lv").style.display = 'none';
		document.getElementById("pequity").style.display = 'block';
		document.getElementById("mezzanine").style.display = 'none';
		break;
	case "status04":
		document.getElementById("schiffe").style.display = 'none';
		document.getElementById("lv").style.display = 'none';
		document.getElementById("pequity").style.display = 'none';
		document.getElementById("mezzanine").style.display = 'block';
		break;
	default:
		break;
	}
}


//  font size changing

// bei body 'onload'
function setSize(whatstyle) {

	if (!getCookie('resize_fontsize')) {
		// kein Cookie vorhanden
		changeSize(whatstyle);
//		createCookie('resize_fontsize',whatstyle,'1');
	} else {
		// wir haben einen Cookie gefunden :-)
		changeSize( getCookie('resize_fontsize') );
	}
}

function changeSize(whatstyle) {
	document.getElementById('myBody').className = whatstyle;
	setCookie('resize_fontsize',whatstyle,'1');
	setSizeButton(whatstyle);
}


function setSizeButton(new_style) {
	if(document.getElementById('button-small') != null) {
		document.getElementById('button-small').className = 'button-small';
		document.getElementById('button-medium').className = 'button-medium';
		document.getElementById('button-large').className = 'button-large';
		document.getElementById('button-'+new_style).className = 'button-'+new_style+'-select';
	}
}


// Cookie handling
function setCookie(name,value,hours) {
	if (hours) {
		var date = new Date();
		date.setTime(date.getTime()+(hours*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	} else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function getCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}


function promoDiv(divId){
	document.getElementById('navigation').style.display = 'block';
	document.getElementById('rightcol').style.display = 'block';
	document.getElementById(divId).style.display = 'none';
	document.getElementById(divId).src = '';
}

function callIframe(divId) {
	document.getElementById('navigation').style.display = 'none';
	document.getElementById('rightcol').style.display = 'none';
	if (document.getElementById(divId).style.display != 'none') {
		document.getElementById(divId).style.display = 'none';
	} else {
		document.getElementById('webTV-Player').style.display = 'none';
		document.getElementById(divId).style.display = 'block';

	}

}

// Link No /////////////////////////////////////

function setFocus() {
	document.getElementById('link-no').blur() == false;
}












