// JavaScript Document //main exec on load // Open a give URL function open_url(url){window.location=url;return false;} function open_url_new_window(url){window.open(url);} var width_max = 1269; //window.onload = resize_update; function resize_update() { var x = 0; if (self.innerHeight) { x = self.innerWidth; } else if (document.documentElement && document.documentElement.clientHeight) { x = document.documentElement.clientWidth; } else if (document.body) { x = document.body.clientWidth; } if(x < width_max) { //alert("centro"); //$("#debug").html(x+' centro'); $("#ultimos_vistos").css('display','none'); $("#ultimos_vistos_center").css('display','block'); } else { //alert("lado"); //$("#debug").html(x+' lado'); $("#ultimos_vistos").css('display','block'); $("#ultimos_vistos_center").css('display','none'); } } resize_update(); $(document).ready(function(){ $(window).resize(function() { resize_update(); }); /* top menu overs */ $("img[id^='menu']").mouseover(function(){ this.src="img/menu/"+this.name+"_hover.jpg"; }); $("img[id^='menu']").mouseout(function(){ this.src="img/menu/"+this.name+".jpg"; }); //end main exec on load });