
$(document).ready(function(){
	mainmenu();
});

//////////////////////////////////// Fix IE6 Flickering

function fixIE6flicker(fix) {
	try {
		document.execCommand("BackgroundImageCache", false, fix);
	} catch(err) { }
}
fixIE6flicker(true);

//////////////////////////////////// Menu

function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(200);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}

function re(cels) {
	document.location.href=cels;	
}

function windowOpener(windowHeight, windowWidth, windowName, windowUri){
    var centerWidth = (window.screen.width - windowWidth) / 2;
    var centerHeight = (window.screen.height - windowHeight) / 2;

    newWindow = window.open(windowUri, windowName, 'resizable=0,scrollbars=yes,width=' + windowWidth + 
        ',height=' + windowHeight + 
        ',left=' + centerWidth + 
        ',top=' + centerHeight);

    newWindow.focus();
    return newWindow.name;
}

//////////////////////////////////// Newsticker Start/Stop

function stoptick(){
	myFlashMovie = document.getElementById("newsscroll");
	myFlashMovie.stopTick();
}

function starttick(){
	myFlashMovie = document.getElementById("newsscroll");
	myFlashMovie.startTick();
}
