jQuery(document).ready(function(){
	
	//cargar ie6.css solo para IE6
	if (jQuery.browser.msie && parseInt(jQuery.browser.version)<7) {
		ie6=true;
		jQuery("head").append("<link>");
		css = jQuery("head").children(":last");
		css.attr({ rel: "stylesheet", type: "text/css", href: "css/style_ie6.css" });
	}
	
	//iehover para IE6
	if (jQuery.browser.msie && parseInt(jQuery.browser.version)<7) {
		jQuery('div.maq_menu li').hover(function(){
			jQuery(this).addClass("iehover");
		}, function(){
			jQuery(this).removeClass("iehover");
		}); 
	}
	
	//autoselect
	if(jQuery("input.autoselect").length != 0) {//Comprovem que estigui
		jQuery('input.autoselect').focus(function() {
				jQuery(this).select();
			});
	}
	
	//Igualar columnes
	function equalHeight(group) {
	tallest = 0;
		group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
		tallest = thisHeight;
	}
	});
		group.height(tallest);
	}
	if(jQuery(".equal").length != 0) {//Comprovem que estigui
		equalHeight($(".equal"));
	}
	
	//Fonts: Times
	//Cufon.replace('h2.cufon, h4.cufon span span', {fontFamily:'Times New Roman'});
	//Cufon.replace('h2.cufon, h4.cufon span span', {fontFamily:'Arial Narrow'});
	
	//Fonts: Arial Narrow
	Cufon.replace('div.caixeta_vi h3, div.caixeta_noticies h3, div.maq_menu ul.menu > li > a', {fontFamily:'Arial Narrow', hover:true });//a.btn_descargCataleg span,

});
