//Fix Safari Back Button Bug
function P7_fixSafariBB(){ //v1.1 by PVII
if(navigator.userAgent.indexOf("Safari")>-1){
var jj=onload;if(jj){if(onunload==null){
document.body.setAttribute('onunload',jj);}}}
}
//Netscape 4 Resize Fix
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//write NN4 stylesheet if not version5 browser
if(!document.getElementById){
document.write('<link rel="stylesheet" type="text/css" href="/04includes/04n4styles.css">');
document.close();}

//handle table row highligthing
function P7_rowLite(tb,cl){ //v1.0 by PVII -table row highlighter
 var g,i,x,gr;if(document.getElementById){g=document.getElementsByTagName("TABLE");
 for(x=0;x<g.length;x++){if(g[x].className&&g[x].className==tb){
 gr=g[x].getElementsByTagName("TR");if(gr){for(i=0;i<gr.length;i++){
 if(i>0){gr[i].onmouseover=function(){this.className=cl;};
 gr[i].onmouseout=function(){this.className='';};}}}}}}
}

// P7 Multi-Menu - Copyright 2004 Project Seven Development (PVII)
// Developed by: Gerry Jacobsen-PVII
// beta version 0.85_6a
function P7_setNM2(){var i,d='',h="<sty"+"le type=\"text/css\">";var tA=navigator.userAgent.toLowerCase();if(window.opera){if(tA.indexOf("opera 5")>-1||tA.indexOf("opera 6")>-1){return;}}if(document.getElementById){for(i=1;i<10;i++){d+='ul ';h+="\n.p7sub ul "+d+"{display:none;}";}document.write(h+"\n<"+"/sty"+"le>");}}P7_setNM2();function P7_buildNM(){var i,x,g,theDiv,bb,theS,tA,theU,pp,lvl,tS,opn;tA=navigator.userAgent.toLowerCase();if(window.opera){if(tA.indexOf("opera 5")>-1||tA.indexOf("opera 6")>-1){return;}}document.p7tControl=new Array;opn='';if(document.p7NMopener&&document.p7NMopener.length>5){opn=document.p7NMopener.split(",");}if(document.getElementById){for(x=1;x<10;x++){theDiv=document.getElementById('p7NMnav'+x);if(theDiv){if(theDiv.className&&theDiv.className.indexOf("p7snm")>-1){theS=theDiv.className.split('_');if(theS.length&&theS.length>2){theDiv.p7NMprop=theS.slice(1);}else{alert('Missing NM2 Menu Props:'+theDiv.id);continue;}}else{alert('Missing NM2 Menu Props:'+theDiv.id);continue;}theU=theDiv.getElementsByTagName("UL");for(i=0;i<theU.length;i++){theU[i].p7nmdiv=theDiv.id;theU[i].p7tctrl=document.p7tControl.length;document.p7tControl[document.p7tControl.length]=theU[i];if(i==0){}pp=theU[i].parentNode;lvl=0;while(pp){if(pp.tagName&&pp.tagName=="UL"){lvl++;}if(pp.tagName&&pp.tagName=="DIV"){break;}pp=pp.parentNode;}theU[i].p7nmlvl=lvl;}theA=theDiv.getElementsByTagName("A");for(i=0;i<theA.length;i++){theA[i].p7nmdiv=theDiv.id;bb=P7_getSub(theA[i]);theA[i].p7ulref=(bb!=null)?bb.p7tctrl:-1;theA[i].p7aref=document.p7tControl.length;document.p7tControl[document.p7tControl.length]=theA[i];if(theDiv.p7NMprop[2]==2){theA[i].onmouseover=function(){P7_timeNM2(this);};theA[i].onfocus=function(){P7_timeNM2(this);};}else{if(theA[i].p7ulref<0){theA[i].onclick=function(){P7_toggleNM2(this);};}else{theA[i].onclick=function(){P7_clickNM2(this);};}}}if(theDiv.p7NMprop[1]==1){tS="'"+theDiv.id+"'";for(i=0;i<opn.length;i+=3){if(opn[i]==theDiv.id){tS=tS+","+opn[i+1]+",'"+opn[i+2]+"'";}break;}eval("P7_openNM2("+tS+")");}}}document.body.onmouseover=P7_mainClose;}}function P7_getSub(a){var i,theU=null;var g=a.parentNode.getElementsByTagName("UL");if(g&&g.length){theU=g[0];}return theU;}function P7_showNM2(ob,bp){var i,s,hh,thePc,mk;var g=document.getElementById(ob.p7nmdiv);if(!bp&&g.p7NMprop[3]==1){P7_toggleNM2(ob);}if(ob&&ob.parentNode){thePc=ob.parentNode.childNodes;for(i=0;i<thePc.length;i++){if(thePc[i].tagName=="UL"){if(thePc[i].style.display!="block"){thePc[i].style.display="block";ob.parentNode.style.position="relative";if(g.p7NMprop[0]==0||thePc[i].p7nmlvl<(g.p7NMprop[7])){thePc[i].style.position="absolute";thePc[i].style.left=g.p7NMprop[4];thePc[i].style.top=g.p7NMprop[5];}thePc[i].style.visibility="visible";mk=(ob.className.indexOf("curr")>-1)?"p7minusmarkcurr":"p7minusmark";ob.className=mk;if(g.p7NMprop[6]==1){P7_animSub(thePc[i].p7tctrl,40);}}}}}}function P7_toggleNM2(a,b){var i,g,pp,theU,theA;if(a&&a.parentNode){pp=a.parentNode;while(pp){if(pp.tagName&&pp.tagName=="UL"){break;}pp=pp.parentNode;}if(pp){theU=pp.getElementsByTagName("UL");g=document.getElementById(pp.p7nmdiv);if(g.p7NMprop[0]==1&&b==1){return;}for(i=0;i<theU.length;i++){theA=theU[i].parentNode.firstChild;if(b!=1&&theA==a){continue;}else{if(theU[i].style.display=="block"){P7_hideNM2(theA);}}}}}}function P7_hideNM2(ob){var i,s,hh,thePc,theIm,tt;var g=document.getElementById(ob.p7nmdiv);if(ob&&ob.parentNode){thePc=ob.parentNode.childNodes;for(i=0;i<thePc.length;i++){if(thePc[i].tagName=="UL"){thePc[i].style.display="none";if(g.p7NMprop[0]==0||thePc[i].p7nmlvl<(g.p7NMprop[7])){thePc[i].style.position="static";thePc[i].style.left=0;thePc[i].style.top=0;}thePc[i].style.visibility="hidden";mk=(ob.className.indexOf("curr")>-1)?"p7plusmarkcurr":"p7plusmark";ob.className=mk;tt='setTimeout("P7_dodo('+thePc[i].p7tctrl+')",1)';eval(tt);}}}}function P7_dodo(ct){var g=document.p7tControl[ct];g.parentNode.style.position="static";}function P7_animSub(ct,st){var g=document.p7tControl[ct];var sp=30;var inc=20;st=(st>=100)?100:st;g.style.fontSize=st+"%";if(st<100){st+=inc;setTimeout("P7_animSub("+ct+","+st+")",sp);}}function P7_clickNM2(a){document.p7nmactive=1;document.p7nmadiv=a.p7nmdiv;var i,s,thePc;if(a&&a.parentNode){thePc=a.parentNode.childNodes;for(i=0;i<thePc.length;i++){if(thePc[i].tagName=="UL"){s=thePc[i].style.display;if(s=="block"){P7_hideNM2(a);}else{P7_showNM2(a);}}}}}function P7_timeNM2(a){if(document.p7nmcc){clearTimeout(document.p7nmcc);}document.p7nmactive=1;document.p7nmadiv=a.p7nmdiv;var tg='document.p7nmcc=setTimeout("P7_mouseNM2('+a.p7aref+')",220)';eval(tg);}function P7_mouseNM2(ct){var g=document.p7tControl[ct];if(ct>=0){P7_showNM2(g);}else{P7_toggleNM2(g);}}function P7_mainClose(evt){evt=(evt)?evt:((event)?event:null);var nn,pp,m=true;var st=document.p7nmactive;if(st!=-999){if(evt){var theSrc=(evt.target)?evt.target:evt.srcElement;pp=theSrc.parentNode;while(pp){nn=pp.nodeName;if(nn=="DIV"&&pp.p7NMprop){m=false;document.p7nmactive=1;document.p7nmadiv=pp.id;pp.nmstate=1;break;}pp=pp.parentNode;}if(m){document.p7nmactive=0;document.p7nmadiv='none';}if(document.p7nmc){clearTimeout(document.p7nmc);}document.p7nmc=setTimeout("P7_closeNM2()",300);}}}function P7_closeNM2(){var theA,i,divName,theDiv;if(document.p7nmadiv=='none'){document.p7nmactive=-1;}for(i=1;i<11;i++){divName='p7NMnav'+i;theDiv=document.getElementById(divName);if(theDiv){if(document.p7nmadiv!=theDiv.id){theDiv.nmstate==0;theA=theDiv.getElementsByTagName("A");if(theA){P7_toggleNM2(theA[0],1);}}}}}

//menu auto opener
function P7_openNM2(navDiv,tp,vu){var i,d,ha,pp,m=false;if(document.getElementById){d=document.getElementById(navDiv);if(d){ha=d.getElementsByTagName("A");if(tp==null||tp==0){vu=window.location.href;tp=0;}for(i=0;i<ha.length;i++){if(ha[i].href){if(tp<=0){if(ha[i].href.indexOf(vu)>-1){m=true;break;}}if(tp==1){if(ha[i].href.indexOf(vu)>-1){m=true;break;}}if(tp==2){if(ha[i].firstChild){if(ha[i].firstChild.nodeValue==vu){m=true;break;}}}}}if(m){pp=ha[i].parentNode;if(ha[i].p7ulref<0){ha[i].className="p7currentmark";pp=pp.parentNode;}while(pp){if(pp.nodeName=="LI"){if(pp.firstChild.nodeName=="A"){pp.firstChild.className="p7plusmarkcurr";if(d.p7NMprop[0]==1){P7_showNM2(pp.firstChild,9);}}}pp=pp.parentNode;}}}}}



/**********************************************************************************   
PopupDescriptions 
*   Copyright (C) 2001 Thomas Brattli
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by Thomas Brattli
*
*   Script date: 09/04/2001 (keep this date to check versions) 
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=lib_bwcheck()

/***************************************************************************************
Variables to set:
***************************************************************************************/
messages=new Array()
//Write your descriptions in here.
messages[0] = '<div class="clCaption">&raquo; Favoriten</div><br>Diese Webseite zu den Favoriten hinzufügen</div>'
messages[1] = '<div class="clCaption">&raquo; Startseite</div><br>Diese Webseite als Startseite festlegen</div>'
messages[2] = '<div class="clCaption">&raquo; eCards</div><br>Senden Sie eine eCard an Ihre Freunde und Bekannte</div>'
//To have more descriptions just add to the array.

fromX = 20 //How much from the actual mouse X should the description box appear?
fromY = 0 //How much from the actual mouse Y should the description box appear?

//To set the font size, font type, border color or remove the border or whatever,
//change the clDescription class in the stylesheet.

//Makes crossbrowser object.
function makeObj(obj){								
   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;		
	this.writeIt=b_writeIt;																
	return this
}

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

function b_writeIt(text){
	if (bw.ns4){this.wref.write(text);this.wref.close()}
	else this.wref.innerHTML = text
}

//Capturing mousemove
var descx = 0
var descy = 0
function popmousemove(e){descx=bw.ns4||bw.ns6?e.pageX:event.x; descy=bw.ns4||bw.ns6?e.pageY:event.y}

var oDesc;
//Shows the messages
function popup(num){
    if(oDesc){
		oDesc.writeIt('<div class="clDescription">'+messages[num]+'</div>')
		if(bw.ie5||bw.ie6) descy = descy+document.body.scrollTop
		oDesc.css.left = (descx+fromX)+px
		oDesc.css.top = (descy+fromY)+px
		oDesc.css.visibility = "visible"
    }
}
//Hides it
function popout(){
	if(oDesc) oDesc.css.visibility = "hidden"
}
function setPopup(){
   	if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove = popmousemove;
	oDesc = new makeObj('divDescription')
}
		
