$(function(){
	$('ul#top.sf-menu > li').not('> ul').append('<ul></ul>');

	$('ul#top.sf-menu > li:not(.currentstor) > a').mouseover(function() {
	    $("ul#top.sf-menu > li.currentstor > ul#sub-nav > li").css("right", "-999em");
	}).mouseleave(function() {
	    $("ul#top.sf-menu > li.currentstor > ul#sub-nav > li").css("right", "30%");
	  });

	$('ul#top.sf-menu > li:not(.currentstor) > ul#sub-nav > li > a').mouseover(function() {
	    $("ul#top.sf-menu > li.currentstor > ul#sub-nav > li").css("right", "-999em");
	}).mouseleave(function() {
	    $("ul#top.sf-menu > li.currentstor > ul#sub-nav > li").css("right", "30%");
	  });
});



$(function(){
	$('#image_swap a.one').click(function() {
		//event.preventDefault(); //stop default browser behaviour
		 $(".sprite img").css("top", "0px");
	});

	$('#image_swap a.two').click(function() {
		//event.preventDefault(); //stop default browser behaviour
		 $(".sprite img").css("top", "-270px");
	});

	$('#image_swap a.three').click(function() {
		//event.preventDefault(); //stop default browser behaviour
		 $(".sprite img").css("top", "-540px");
	});

	$('#image_swap a.four').click(function() {
		//event.preventDefault(); //stop default browser behaviour
		 $(".sprite img").css("top", "-810px");
	});

});
