setInterval ("recolocarMenu()",100);

function recolocarMenu () {
		var y=0;
		if(window.pageYOffset){
			y=window.pageYOffset;
		 }
		 else {
		 	if (document.body != null) {
				y=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
			} else {
				y=document.documentElement.scrollTop;
			}
		 }
		if (document.getElementById("menuGeneralFijo")!= null)
			document.getElementById("menuGeneralFijo").style.top=y+'px';
			
	
}	
	
function resizeFixedMenu () {
	//Keep static always in view on the page
		
	mitamanyo = screen.width;
	if (mitamanyo < 1100) {
		setActiveStyleSheet("screen pequenya");
	} else {
		setActiveStyleSheet("screen grande");
	}


	

	lnW = screen.availWidth-5; 
	lnH = screen.availHeight-5;

	lnTop = 0; 
	lnLeft = 0;

	window.moveTo(lnTop,lnLeft );	
	window.resizeTo(lnW,lnH);
	window.resizeBy(lnW-document.body.clientWidth,lnH-document.body.clientHeight);	
	window.opener
}



function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").indexOf("style") != -1
        && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
}
