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

function confirmbox(elm) {
document.forms['confirmform'].confirmate.value=elm.name;
return document.forms['confirmform'].submit();
}
 $(document).ready(function(){					
	mainmenu();
    $(function() {
		$( ".datepicker" ).datepicker({ dateFormat: 'yy-mm-dd' });
    $("a[rel^='prettyPhoto']").prettyPhoto();
	});
    $("#marquee1").marquee();
    $("pre.php").snippet("php",{style:"typical",showNum:false});
    $("pre.html").snippet("html",{style:"typical",showNum:false});
});

/*
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;

function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
if (tempY < 10)

return true;
}
*/
