
// stylewechsel 
function ovN(theOb,obC) {
	if (document.getElementById(theOb)) {
	document.getElementById(theOb).className = (obC);
	}	
}
		
function ouN(theOb,obC) {
	if (document.getElementById(theOb)) {
	document.getElementById(theOb).className = (obC);
	}	
}

		
// layersteuerung
		
var strOverItem='';
var lngDelayMS= 100;
				
function sNL(theL) {
	if (document.getElementById(theL)) {
		document.getElementById(theL).style.display = '';
		strOverItem = theL;
	}
}
		
function hNL(theL) {
	if (document.getElementById(theL)) {
		window.setTimeout('actualHide(\''+theL+'\');', lngDelayMS);
		strOverItem = '';
	}
}
		
function actualHide(strDivName) {
	if (document.getElementById(strDivName)) {
		if (strDivName != strOverItem) {
			document.getElementById(strDivName).style.display = 'none';
		}
	}
}
	
function newslink (Ziel) {
    window.location.href = Ziel;
}

function cm_printWin(){
    NS4 = (document.layers) ? true:false;				// netscape 4
    IE4 = (document.all) ? true:false;				// ie4+
    NS6 = ((document.getElementById)&&(!IE4))?true:false;		// ns6 etc.
    if(IE4 || NS6){
	    F1 = window.open('/print/tpl_print.asp?org=<%=org%>','printWin','width=720,height=500,left=0,top=0,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes');
    }
    else{
	    self.print();
    }
} 
	
function openMess(p1,p2) {
    //document.location.href = 'mailto:'+p2+'@'+p1;
    document.location.href = 'mailto:' + escape(p2) + '@' + escape(p1);
    return (void (0));
}

//jQuery
$(document).ready(function () {

    //ipad and iphone (iOS) fix für hover auf TopNavigation
    if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
        $("#navRegio a").click(function () {
            //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event
        });

    }

});

