function disableselect(e){
  return false;
}
function reEnable(){
  return true;
}
document.ondragstart=disableselect;
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect;
document.onclick=reEnable;
 }

 
    $(document).ready(function() {
	
    	$("#movies").hover(
      		function () {
				$("#movies_up").stop();
        		$("#movies_up").animate({height: "125px"},500);
      		}, 
      		function () {
				$("#movies_up").stop();
        		$("#movies_up").animate({height: "18px"},500);
      		}
    	);
    	$("#ontv").hover(
      		function () {
				$("#ontv_up").stop();
        		$("#ontv_up").animate({height: "66px"},350);
      		}, 
      		function () {
				$("#ontv_up").stop();
        		$("#ontv_up").animate({height: "18px"},350);
      		}
    	);
    	$("#nue").hover(
      		function () {
				$("#nue_up").stop();
        		$("#nue_up").animate({height: "66px"},350);
      		}, 
      		function () {
				$("#nue_up").stop();
        		$("#nue_up").animate({height: "18px"},350);
      		}
    	);

	$(".list").click(function() {
			ajax_nav({url:"list.php",post:'func='+ this.id});
	
	});
	$(".menu").click(function() {
	  var url=$(this).attr("href");
	  ajax_nav({url: url});
	  return false;
	});
	$(".list").hover(
      		function () {$(this).css("background-position","0px -24px");}, 
      		function () {$(this).css("background-position","0px 0px");}
    	);

 });
 
 
 function ScrollToElement(theElement){

  var selectedPosX = 0;
  var selectedPosY = 0;
    selectedPosY+=  theElement.offsetHeight;           
  while(theElement != null){
    selectedPosX += theElement.offsetLeft;
    selectedPosY += theElement.offsetTop;
    theElement = theElement.offsetParent;
  }
                   		      
 window.scrollTo(0,selectedPosY);

}

