// Mouseover für Navigationen
function mOver(cell)
{ if (!cell.contains(event.fromElement)) { cell.style.cursor = 'hand'; cell.bgColor = '#CC0000'; }}
function mOut(cell)
{ if (!cell.contains(event.toElement)) { cell.style.cursor = 'default'; cell.bgColor = ''; } }


function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
ns6marquee(document.getElementById("slider"))
}
else if(document.layers){
document.slider1.visibility="show" 
ns4marquee(document.slider1.document.slider2) 
}
}

function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)  
ns4layer.document.write(wholemessage) 
ns4layer.document.close()  
sizeup=ns4layer.document.height 
ns4layer.top-=sizeup 
ns4slide() 
}

function ns4slide(){ 
if (ns4layer.top>=sizeup*(-1)){ 
ns4layer.top-=1  
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
} 
}

function ns6marquee(whichdiv){
ns6div=eval(whichdiv) 
ns6div.innerHTML=wholemessage 
ns6div.style.top=sheight   
sizeup=sheight  
ns6slide() 
} 

function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){ 
ns6div.style.top=parseInt(ns6div.style.top)-sspeed 
setTimeout("ns6slide()",100)
} 
else{  
ns6div.style.top=sheight 
ns6slide()  
}   
}
if (document.layers) { 
        widthCheck = window.innerWidth  
        heightCheck = window.innerHeight 
        window.onResize = resizeFix  
} 
function resizeFix() { 
        if (widthCheck != window.innerWidth || heightCheck != window.innerHeight) 
        document.location.href = document.location.href
} 
function subscribeNews(){ 
document.sForm.submit(); 
}
function poll(){
    document.pForm.submit();
}

function popupprint(bericht_id) {
  popupWin = window.open("printform.php?bericht_id="+bericht_id,'printform','width=600,height=570,scrollbars=yes,toolbars=no,menubar=no,resizable=no');
}

function popupsendtofriend(bericht_id) {
  popupWin = window.open("sendtofriend.php?bericht_id="+bericht_id,'sendtofriend','width=400,height=340,scrollbars=no,toolbars=no,menubar=no,resizable=no');
}
function ShowPic(pfad, bildid) {
 Fenster = window.open("ecard.php?pfad="+pfad+"&bildid="+bildid, "ShowDoc", "width=700,height=400,scrollbars");
 Fenster.focus();
}
function goselect() {
  document.location.href='events.php?s_evgrid=' + document.Search.s_evgrid.options[document.Search.s_evgrid.selectedIndex].value;
}

function openpopup(myurl) {
  popupWin = window.open(myurl,'Popup','width=700,height=450,scrollbars=no,toolbars=no,menubar=no,resizable=no');
}


