/* IE7/IE8.js - copyright 2004-2008, Dean Edwards */
//IE6 BackgroundImageCache
try {
 document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}


function quicknavi(url) {
	if(url != "") {
		window.open(url);
	}
}



function mainmenu(){
$("#gMenuSports,#gMenuFahion,#gMenuLeisure,#gMenuFood,#gMenuBeauty,#gMenuElectronics,#gMenuInterior,#gMenuPet,#gMenuEntame,#gMenuBaby").hover(function(){
		$(this).find('ol:first').css({visibility: "visible",display: "none"}).show("slow");
		$("#headerListBox").css({display: "none"});
		},function(){
		$(this).find('ol:first').css({visibility: "hidden"}).hide("slow");
		$("#headerListBox").css({display: "block"});
		});
}

 
 
$(document).ready(function(){					
	mainmenu();
	
	$('#gMenu').css({display:"block"});
	
	$('li#gMenuSports')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "0 -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(0 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(0 -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "0 -60px"})
	}})
	})
	
	$('li#gMenuFahion')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-65px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-65px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-65px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-65px -60px"})
	}})
	})
	
	$('li#gMenuLeisure')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-151px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-151px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-151px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-151px -60px"})
	}})
	})
	
	$('li#gMenuFood')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-222px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-222px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-222px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-222px -60px"})
	}})
	})

	$('li#gMenuBeauty')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-323px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-323px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-323px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-323px -60px"})
	}})
	})
	
	$('li#gMenuElectronics')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-399px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-399px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-399px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-399px -60px"})
	}})
	})
	
	$('li#gMenuInterior')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-498px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-498px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-498px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-498px -60px"})
	}})
	})
	
	$('li#gMenuPet')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-605px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-605px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-605px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-605px -60px"})
	}})
	})
	
	$('li#gMenuEntame')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-656px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-656px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-656px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-656px -60px"})
	}})
	})
	
	$('li#gMenuBaby')
	.hover(function(){
	$(this).find('a:first').css({backgroundPosition: "-759px -60px"})
	$(this).find('a:first').stop().animate({backgroundPosition:"(-759px 0)"}, {duration:500})
	},function(){
	$(this).find('a:first').stop().animate({backgroundPosition:"(-759px -60px)"}, {duration:200, complete:function(){
	$(this).find('a:first').css({backgroundPosition: "-759px -60px"})
	}})
	})

});

