function news(id) {
    $("#n"+id).fadeOut();
    $("#n"+id).FadeIn();
}

function layer(width, height, zindex, bgcolor, img_width, img_height) {
	var windowheight = getWindowHeight();
	var windowwidth = getWindowWidth();

    var top	= (windowheight / 2) - (height / 2);
    var left = (windowwidth / 2) - (width / 2) ;
	document.getElementById('lhpopup').style.display		= 'block';
	document.getElementById('lhpopup').style.position		= 'absolute';
	document.getElementById('lhpopup').style.top			= top+'px';
	document.getElementById('lhpopup').style.left			= left+'px';
	document.getElementById('lhpopup').style.zindex			= zindex;
	document.getElementById('lhpopup').style.width			= width+'px';
	document.getElementById('lhpopup').style.height			= height+'px'; 
	document.getElementById('lhpopup').style.background		= bgcolor; 
}
function hideLayer() {
	document.getElementById('lhpopup').style.display = 'none';
}

function layerNone() {
	document.getElementById('lhpopup').style.display = 'none';
}

function getWindowHeight () {
	return window.innerHeight ? window.innerHeight :(document.getBoxObjectFor ? Math.min(document.documentElement.clientHeight, document.body.clientHeight) : ((document.documentElement.clientHeight != 0) ? document.documentElement.clientHeight : (document.body ? document.body.clientHeight : 0)));
}

function getWindowWidth() {
	    return (document.layers||(document.getElementById&&!document.all)) ? window.outerWidth : (document.all ? document.body.clientWidth : 0);
}

