$(document).ready(function () {	
	//*****************************************************//
	//*** Internet Explorer 6 image replacement scripts ***//
	if ($.support.opacity == false && $.browser.msie && $.browser.version == "6.0"){
		var bgPNGS = $('div, a').filter(function(){ 
		   return $(this).css('backgroundImage').indexOf('.png')+1;
		}); 
		bgPNGS.each(function(i){
			src = $(this).css("backgroundImage");
			src = src.replace("url(", "");
			src = src.replace(")", "");
			$(this).css({"background-image": "url(/library/images/common/pngfix_transparent.gif)"});
			$(this).css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + src + ", sizingMethod='crop')");
		});
	}
	
	// Sound events
	playSound("signup");
	
	// JQuery hover js call
	$("div#main ul li.gb").hover(
		function(){
			playSound("signup");
		},
		function(){}
	);
	
	// JQuery hover js call
	$("div#main ul li.fr").hover(
		function(){
			playSound("why");
		},
		function(){}
	);
	
	// JQuery hover js call
	$("div#main ul li.de").hover(
		function(){
			playSound("try");
		},
		function(){}
	);
	
	// JQuery hover js call
	$("div#main ul li.us").hover(
		function(){
			playSound("buy");
		},
		function(){}
	);
	
});

/* sound files */
function playSound(soundFileName) {
	var flashvars = {};
	var attributes = {};
	var params = {
		menu: "false",
		allowFullScreen: "true",
		allowScriptAccess: "always",
		scale: "noscale",
		wmode: "transparent"
	};
		swfobject.embedSWF("library/flash/"+soundFileName+".swf", "homeflashsounds", "1", "1", "9.0.0", "/library/flash/expressInstall.swf", flashvars, params, attributes);
}