/*comun.js*/osType=navigator.userAgent;document.write("<link REL='stylesheet' TYPE='text/css' href='/css/common.css'>");if(osType.indexOf("Mac") >= 0) {	myOS="mac";} else if(osType.indexOf("Win") >= 0) {	myOS="win";} else {	myOS="linux";}myApp=navigator.appName;myBrowser=myApp.charAt(0);if(myOS == "mac") {	if (myBrowser == "N") {		document.write("<link REL='stylesheet' TYPE='text/css' href='/css/mac_nn.css'>");	} else {		document.write("<link REL='stylesheet' TYPE='text/css' href='/css/mac_ie.css'>");	}} else {	if(myBrowser == "N") {		document.write("<link REL='stylesheet' TYPE='text/css' href='/css/stock_nn.css'>");	} else {		document.write("<link REL='stylesheet' TYPE='text/css' href='/css/stock_ie.css'>");	}}	function wopen(url,name,w,h,noScroll){	var centradoH = (screen.width/2)-(w/2);	var centradoV = (screen.height/2)-(h/2);	var scroll= (noScroll) ? "no" : "yes";	window.open(url,name,'toolbar=no,location=no,directories=no,status=no,scrollbars='+ scroll +',resizable=yes,copyhistory=no,width=' + w + ',height=' + h + ',top=' + centradoV + ',left=' + centradoH);}function detectarResolucion(){	var res, url;	if ((screen.width == 800) && (screen.height == 600)){		res="800x600";		url="/cabecera/cabecera800.jsp";	}else if ((screen.width == 1024) && (screen.height == 768)){		res="1024x768";		url="/cabecera/cabecera1024.jsp"	}else if ((screen.width == 1152) && (screen.height == 864)){		res="1152x864";		url="/cabecera/cabecera1152.jsp";	} else if ((screen.width == 1280) && (screen.height == 1024)){		res="1280x1024";		url="/cabecera/cabecera1280.jsp";	}else{		url="/cabecera/cabecera800.jsp";	}  	window.location.href=url;}function getColumnsNumber(){	var width = screen.width;	var cols = 3;	if (width != null) {		if (width <= 1024) {			cols = 3;		}		if (width >= 1024) {			cols = 4;		}		if (width >= 1152) {			cols = 5;		}		if (width >= 1280) {			cols = 5;		}		if (width >= 1400) {			cols = 6;		}		if (width >= 1600) {			cols = 7;		}		if (width >= 1680) {			cols = 8;		}	}	return cols;}function getCulumnsNumberCds(){	var width = screen.width;	var cols = 3;	if (width != null) {		if (width <= 1024) {			cols = 3;		}		if (width >= 1024) {			cols = 4;		}		if (width >= 1152) {			cols = 5;		}		if (width >= 1280) {			cols = 5;		}		if (width >= 1440) {			cols = 6;		}		if (width >= 1600) {			cols = 7;		}		if (width >= 1680) {			cols = 8;		}	}	return cols;}