var nn6up = document.getElementById ? true : false;
var ns = document.layers ? true : false;
var ie = document.all ? true : false;
if (ie) nn6up = false;

var AllBig=false;

function D(o) {
	if (ns) return document.layers[o];
	if (ie) return document.all[o].style;
	if (nn6up) return document.getElementById(o).style;
}
function I(n) {
	if (ns) return document.layers[n].document.images[n+'i'];
	if (ie || nn6up) return document.images[n+'i'];
}


function show(o) {D(o).visibility = 'visible';}
function hide(o) {D(o).visibility = 'hidden';}
function move(o,X,Y) {D(o).top=Y;D(o).left=X;}

function GetScrWidth()
{
	if (ns || nn6up) return(window.innerWidth-18);
	else if (ie) return (document.body.clientWidth);
}


function pos_Xmas2008(o, vis)
{
        D(o).top = '6px';
        if (GetScrWidth() > 1000) {
	  D(o).left = Math.floor(GetScrWidth() / 2) - 274 + 'px';
 	}
	else D(o).left = "227px";

	if (vis==1) show(o);
}