function daylight(){
var jetzt = new Date();
var h = jetzt.getHours();
//alert(h);
var cssFileName = "dark";
if((10<=h)&&(h<=18)) cssFileName = "light";
//alert(cssFileName);*/

var cssTag = "<link rel='stylesheet' href='css/";
cssTag += cssFileName;
cssTag += ".css'>";

//alert(cssTag);
document.write(cssTag);

}
daylight();

function setLogo(){
    var jetzt = new Date();
    var h = jetzt.getHours();
    if((10<=h)&&(h<=18)) document.getElementById('hafen+rand').src="img/logo_hafenrand_projekte.gif";
    if((10<=h)&&(h<=18)) document.getElementById('CenterDiv').style.borderColor="#ffffff";
}

function setTitle(pathfile){
    var jetzt = new Date();
    var h = jetzt.getHours();
    if((16<=h)&&(h<=23)) document.getElementById('title_hafenrand_hamburg').src= pathfile;
}

var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height){
    if(popUpWin){
        if(!popUpWin.closed) popUpWin.close();
    }
    popUpWin = open(URLStr, 'popUpWin', 'toolbars=yes,location=no,directories=no,status=yes,menub ar=no,scrollbars=0,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
    return false;
    stop();
}
