window.defaultStatus = "VORSICHT! frische brillen";

var loaded = false;
var scroller = false;

function start()
{
    loaded = true;    
    setTimeout("MyJSScrollerHandler.initByClassName('herstellerticker')",150);
}



// Popup 
var popupWin = false;
function PopUp (url, breite, hoehe, x, y, noBorder, scrollbars_off)
{

	var fenstereigenschaften = "";
	var win_width  = window.screen.width;
	var win_height = window.screen.height;
	
	//Pruefung, ob zwei Monitore angeschlossen sind
	var secondMon = 0;
	if (win_width >= 1600) {win_width = win_width/2; secondMon=win_width;}

	if (x<0) {x = secondMon+(win_width-breite)/2;} else if (!x){x=0;}
	if (y<0) {y = (win_height-hoehe)/2;} else if (!y){y=0;}
	
	x -= 20;
	
	if (!scrollbars_off) {scrollbars_off = 0;}
	
	
	if (noBorder <= 0) {
	    fenstereigenschaften = "resizable=0,toolbar=0,scrollbars="+scrollbars_off+",fullscreen=0,status=0,directories=0,menubar=0,location=0,width="+breite+",height="+hoehe+",screenX="+x+",left="+x+",screenY="+y+",top="+y;
	} else {
	    fenstereigenschaften = "resizable=1,toolbar=0,scrollbars="+scrollbars_off+",fullscreen=0,status=0,directories=0,menubar=0,location=0,width="+breite+",height="+hoehe+",screenX="+x+",left="+x+",screenY="+y+",top="+y;
    }

    popupWin = window.open(url,"WAIT",fenstereigenschaften);
    
    
    /*
    if (popupWin && noBorder > -1) {
        popupWin.focus();
        popupWin.resizeTo(breite,hoehe);
	    popupWin.moveTo(x,y);
	    
	}
	*/
}


// MailCrypt-Send-Function 
function UnCryptMailto (value, destination)	
{
    value = Base64.decode(value);
    
    if (!destination)
        location.href = "mailto:" + value.replace(/\[wildsurf\]/,"@");
    else
        location.href = destination;
}
