//v1.1, 27.11.07
//

var topOffset;

function crightYear(){
	document.write("2009");
}

function crightLastUpdated(){
	document.write("24. Aug. 2009");
}

function smoothMove() {
    var test = parseInt(document.body.scrollTop);
    if(test<92) {
    	topOffset = 92-test;
    }
    else
    	topOffset=14;
    
	var Dif = parseInt((document.body.scrollTop+topOffset-document.all.navBar.offsetTop)*.1);
        document.all.navBar.style.pixelTop+=Dif;
	}


function doLoad() {
	window.setInterval("smoothMove()",20);
}

var _window = null;

function closeWindow()
{
	if ( _window == null ) return;
	
	_window.close();
}

function openWindow(URL, name, _width, _height)
{
	closeWindow();
	
	var opt = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
	_window = window.open(URL, null, opt + ',width=' + _width + ',height=' + _height);
}



window.onload = doLoad;
