/*CSS Browser Selector v0.3.4 (Sep 29, 2009)*/
function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',o='opera',h=document.getElementsByTagName('html')[0],b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/****************/
function toggler(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}
/****************/
function ShowHide(LayerName,TotalLayers){//v1.0
	var temp = new Array();
	temp = LayerName.split('_');
	ReLayerName = temp[0];
	
		for (i=1;i<=TotalLayers;i++){
		document.getElementById(ReLayerName+'_'+i).style.display = 'none';
		}
	document.getElementById(LayerName).style.display = 'block';
}
/****************/
function ShowVisibility(LayerName,TotalLayers){//v1.0
	var temp = new Array();
	temp = LayerName.split('_');
	ReLayerName = temp[0];
	
		for (i=1;i<=TotalLayers;i++){
		document.getElementById(ReLayerName+'_'+i).style.visibility = 'hidden';
		}
	document.getElementById(LayerName).style.visibility = 'visible';
}
/****************/
function LinkClasses(IDlink,TotalLinks,OFF,ON){//v1.0
	var temp = new Array();
	temp = IDlink.split('_');
	ReIDlink = temp[0];

		for (i=1;i<=TotalLinks;i++){
		document.getElementById(ReIDlink+'_'+i).className = OFF;
		}
	document.getElementById(IDlink).className = ON;
}
/****************/
/*SIZER*/

function increaseFontSize(obj) {
	var className = getClassName(obj);
	if ('small' == className) {
		d(obj).className = 'normal';
	}else if ('normal' == className) {
		d(obj).className = 'large';
	}else if ('large' == className) {
		d(obj).className = 'large-x';
	}else if ('small-x' == className) {
		d(obj).className = 'small';
	}
}

function decreaseFontSize(obj) {
	var className = getClassName(obj);
	if ('normal' == className) {
		d(obj).className = 'small';
	}else if ('large' == className) {
		d(obj).className = 'normal';
	}else if ('large-x' == className) {
		d(obj).className = 'large';
	}else if ('small' == className) {
		d(obj).className = 'small-x';
	}
}


function getClassName(obj) {
  return d(obj).className;
}

function d(id) {
  return document.getElementById(id);
}
/****************/
/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
/********IE6 BUG***********/
if (document.all && !window.opera && !window.XMLHttpRequest) {
	document.execCommand("BackgroundImageCache",false,true);
}
/*****jQUERY*****/
function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
/****W3C HIDDEN STYLES****/
document.write('<style type="text/css">');
document.write('HTML {overflow:-moz-scrollbars-vertical;}');
document.write('.ie6 .Box_3col DIV, .bg_cotizador, .Cotizador H4 img, .Cotizador h6 img, .ie6 .Header a img, .ie6 .submenu .bg_slide, .ie6 .submenu UL LI IMG, .ie6 .OverFlash h1 IMG, .OverFlash .MenuTipo_Despl ul li.Bottom, .Scroll4 .items a img  {behavior: url("css/iepngfix.htc");}');
document.write('.ie6 .Accidentes .Box03 DIV.notas UL LI A SPAN.titulo02, .Accidentes .Box03 DIV.notas UL LI A SPAN.titulo03 {behavior: url ("css/iepngfix.htc"); }');
document.write('.Accidentes .sidebar SPAN.sombra, .Cotizador_iframe H3 IMG, .ie6 .CotizadorP4 .shadow_box03, .Fundacion .Box01 .Destacados .navi A  {behavior: url ("css/iepngfix.htc"); }');
document.write('.Box_3col .Box_03 #Tab_4 .scrollarriba img, .Box_3col .Box_03 #Tab_4 .scrollabajo img, .Home .Box_04 UL LI A IMG, .ie6 .Home .Box_11 UL LI A IMG, .Home .Box_11 UL LI A IMG, .ie6 .ShadowFoot, .ie6 .Home .Box_04 ul li a img, .Productores .Box01bottom, .ie6 .shadowtop, .ie6 .Contactenos, .ie6 .MainBox .Product .Box01 h3 img, .ie6 .Contactenos h3 IMG, .ie6 .Fundacion .Box01 .Ultimas .Box01_2, .ie6 .Fundacion .Box01 .Ultimas .bottom_box01_2, .ie6 .Fundacion .Box02 .shadow_box02_1, .ie6 .Fundacion .Box02 .Box02_1 .right ul li div.separador_box02_1, .ie6 .Fundacion .Box02 .First .bottom_box02_1, .ie6 .Fundacion .Box02 .shadow_box02_2, .ie6 .Fundacion .Box02 .Box02_2, .ie6 .Fundacion .Box02 .Second .bottom_box02_2, .ie6 .Fundacion .Box01 .Ultimas .Box01_2 .date, .ie6 .shadowbottom01, .ie6 .shadowtop01, .ie6 .Fundacion .Box03 .Box03_3, .ie6 .Fundacion .Box03 .separador_box03, .ie6 .Fundacion .Box03 .Box03_1 a img, .ie6 .Fundacion .Box03 .Box03_2 a img, .ie6 .ShadowFoot640, .ie6 .MainBox .Product h2 img, .ie6 .Fundacion .Box03 .Box03_1, .ie6 .Fundacion .Box03 .Box03_2, .ie6 .MainBg .liderazgo .Box02 IMG, .ie6 .MainBg .liderazgo div.ShadowTopscroll, .ie6 .MainBg .liderazgo .Scroll5 .items a img, .Productores .BoxLeft {behavior: url("css/iepngfix.htc");}');
document.write('.ie6 .Coberturas IMG, .Fundacion .Box03 .Box03_1 P.pie, .Fundacion .Box03 .Box03_2 P.pie {behavior: url ("css/iepngfix.htc"); }');
document.write('.ArtInstitucional .Sidebar .Cotizador span.sombra, .ArtInstitucional .Sidebar .Cotizador .bg_cotizador .caja2 .fcaja2 IMG, .HomeArt .MainBox .Secundario .Box_3 .comunicacionEnMedios A.vermas STRONG, .HomeArt .MainBox .Secundario .Box_4 .temasDeInteres A.vermas STRONG {behavior: url ("css/iepngfix.htc"); }');
document.write('.ie6 .SancorSeguros .Box_0202 .Box_020203 DIV.cleas A.sistema SPAN, .ie6 .SancorSeguros .Box_0202 .Box_020203 DIV.cleas A.sistema:hover SPAN, .ie6 .SancorSeguros .Box_0202 .servicios UL LI A, .ie6 .SancorSeguros .Box_0202 .Box_020203 DIV.fomentando A STRONG, .ie6 .OverFlash H1 A IMG, .ie6 .SancorSeguros .Box_01 .Sidebar .Cotizador .bg_cotizador .caja2 H3 IMG {behavior: url ("css/iepngfix.htc"); }');
document.write('.ie6 .sidebar .Cotizador .caja1 A.fcaja1 {behavior: url ("css/iepngfix.htc"); }');
document.write('.ie6 .ArtEmpresa .contenido .shadowBottom, .ie6 .ArtEmpresa .Sidebar .Cotizador .bg_cotizador .caja2 .fcaja2 IMG, .nuSidebar IMG {behavior: url ("css/iepngfix.htc"); }');
document.write('.ie6 .Eventos .Box_01 .Box_0102 .Box_0102General A .textoEvento .vermasEventos, .ie6 .Eventos .Box_02 .Box_0201 .buscarFecha IMG, ie6 .Eventos .jqTransformSelectWrapper  a.jqTransformSelectOpen,.ie6 .Eventos .solapaGris, .ie6 .Eventos .solapaMagenta, .ie6 .Eventos .Box_01 .ShadowFootBox, .ie6 .Eventos .Box_02 .Box_0202 .sombraSuperior, .ie6 .Eventos .Box_02 .Box_0202 A .textoEvento .vermas {behavior: url ("css/iepngfix.htc"); }');



document.write('</style>');
