// JavaScript Document - Global Homepage Version

// force CSS screen for old FIrefox versions (force for < 1.9.1.0 (1.9.0.19 requires it))
var v_i = $.browser.version.substr(0,3);	// 1.9
var v_ii = $.browser.version.substr(4,5);	// (1.9.)2.3
if ($.browser.mozilla && v_i < 1.9 || (v_i == "1.9" && v_ii < 1))
{
	var fileref = document.createElement('link');
	fileref.setAttribute ("rel","stylesheet");
	fileref.setAttribute ("type", "text/css");
	fileref.setAttribute ("media", "screen");
	fileref.setAttribute ("href", "/images/mondial_global.css");
	if (typeof fileref != "undefined")
		document.getElementsByTagName("head")[0].appendChild (fileref);
}

$(document).ready(function(){
//Start JQuery Code


	
	//Outside Links
	$("a.target, #footer #locations li a").click(function(){
		window.open($(this).attr("href"));
		return false;
	});	

	
	//IE6 Hacks
	if ($.browser.msie && (parseInt($.browser.version) == 6)) {
		
		//Buttons
		$("#featured span.startquote").hover(function() {			
				$(this).children("span").css("color","#fce703");	
				$(this).css("background-position","100% -30px");
			},function() {		
				$(this).children("span").css("color","#ffffff");	
				$(this).css("background-position","100% 0");				
		});		

		
		//Business Partners
		$("#header dl.partners").hover(function() {			
				$(this).css("border","1px solid #d8d8d8");
				$(this).css("border-top","none");
				$(this).css("padding-bottom","10px");
				$(this).css("overflow","visible");
				$(this).css("height","auto");
				$(this).css("margin-right","9px");
				$(this).css("background-image","url(/images/bkg-partners_dl.gif)");
			},function() {		
				$(this).css("border","none");	
				$(this).css("padding-bottom","0");
				$(this).css("overflow","hidden");
				$(this).css("height","28px");
				$(this).css("margin-right","10px");
				$(this).css("background-image","none");				
		});
		
		$("#header dl.partners dd").hover(function() {			
				$(this).css("background-color","#f7cc23");	
			},function() {		
				$(this).css("background-color","transparent");
		});	
	
	};
	
//End JQuery Code
});

