function detect_os(){
	var v_sis="";
	if (navigator.platform.toUpperCase().indexOf("WIN")==-1){
		v_sis="mac";
	}else{
		v_sis="win";
	}
	return v_sis;					
}
var ns4=(document.layers)?true:false;
var ie4=(document.all)?true:false;
var dom=(!document.all && document.getElementById) ? true : false;
var v_plat=detect_os();
document.write("<style>\n");
if ((ns4) && (v_plat=="win")){
	/* Defineix l'estil de menu nomes per NS de Windows*/
	//
	document.write(".titular  {font-family : verdana;font-size : 15px;color : #000000;font-weight : bold;}\n");
	document.write(".textcomu  {font-size : 11px;font-family : verdana;line-height : 15px;color : #000000;text-align : justify;text-decoration : none;; border-bottom-width: 3px}\n");
	document.write(".textcomudreta  {font-size : 11px;font-family : verdana;line-height : normal;color : #000000;text-decoration : none; border-bottom-width: 3px}\n");
	document.write(".textserveis  {font-size : 8pt;font-family : Arial, Helvetica, sans-serif;line-height : normal;color : #858383;text-decoration : none;border-bottom-width: 3px; font-weight: normal; font-style: normal}\n");
	document.write("A:Hover  {font-size : 11px;font-family : verdana;color : #E20A16;text-decoration : none;}\n");
	document.write("A:Active  {font-size : 11px;font-family : verdana;color : #000000;text-decoration : none;}\n");
	document.write("A  {font-size : 11px;font-family : verdana;color : #000000;text-decoration : none;}\n");
	document.write("A.B  {font-size : 11px;font-family : verdana;color : #000000;text-decoration : underline;}\n");
	document.write("A.B:Visited  {font-size : 11px;font-family : verdana;text-decoration : underline;color : #000000;}\n");
	document.write("A.B:Hover  {font-size : 11px;font-family : verdana;color : #E20A16;text-decoration : underline;}\n");
	document.write("A.B:Active  {font-size : 11px;font-family : verdana;color : #000000;text-decoration : underline;}\n");
	document.write(".dades  {color : #000000;font-size : 10px;font-family : verdana;text-align : right;line-height : 15px;}\n");
	document.write(".subtitular  {font-size : 12px;font-family : verdana;font-weight : bold;color : #E20A16;}\n");
	
}else{
	//
	document.write(".titular  {font-family : verdana;font-size : 14px;color : #000000;font-weight : bold;}\n");
	document.write(".textcomu  {font-size : 10px;font-family : verdana;line-height : 15px;color : #000000;text-align : justify;text-decoration : none;; border-bottom-width: 3px}\n");
	document.write(".textcomudreta  {font-size : 10px;font-family : verdana;line-height : normal;color : #000000;text-decoration : none; border-bottom-width: 3px}\n");
	document.write(".textserveis  {font-size : 7pt;font-family : Arial, Helvetica, sans-serif;line-height : normal;color : #858383;text-decoration : none;border-bottom-width: 3px; font-weight: normal; font-style: normal}\n");
	document.write("A:Hover  {font-size : 10px;font-family : verdana;color : #E20A16;text-decoration : none;}\n");
	document.write("A:Active  {font-size : 10px;font-family : verdana;color : #000000;text-decoration : none;}\n");
	document.write("A  {font-size : 10px;font-family : verdana;color : #000000;text-decoration : none;}\n");
	document.write("A.B  {font-size : 10px;font-family : verdana;color : #000000;text-decoration : underline;}\n");
	document.write("A.B:Visited  {font-size : 10px;font-family : verdana;text-decoration : underline;color : #000000;}\n");
	document.write("A.B:Hover  {font-size : 10px;font-family : verdana;color : #E20A16;text-decoration : underline;}\n");
	document.write("A.B:Active  {font-size : 10px;font-family : verdana;color : #000000;text-decoration : underline;}\n");
	document.write(".dades  {color : #000000;font-size : 9px;font-family : verdana;text-align : right;line-height : 15px;}\n");
	document.write(".subtitular  {font-size : 11px;font-family : verdana;font-weight : bold;color : #E20A16;}\n");
	document.write(".img  {border-width: 1,1  ; border-color: #000000 }\n");
}


document.write("</style>");

//obri popup
function obrir_popup(url,f_amp,f_alt,nom_finestra){
	ancho=screen.width;				//ample pantalla
	alto=screen.height;				//alt pantalla
	//f_amp=392;						//ample finestra
	//f_alt=525;						//alt finestra
	v_top=(alto-f_alt)/2;	
	v_left=(ancho-f_amp)/2;
	window.open(url,nom_finestra,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+f_amp+",height="+f_alt+",top="+v_top+",left="+v_left);
}






