$(document).ready(function(){

	$('img.link').hide();
	
	$('a.soundlink img').hover(
		function(){
			var id = $(this).attr('id');
			$(this).attr('src', './media/'+id+'_over.gif');
			$('#link_'+id).fadeIn(100);
		},
		function(){
			var id = $(this).attr('id');
			$(this).attr('src', './media/'+id+'.gif');
			$('#link_'+id).fadeOut(100);
		}
	);

});

function initSound(){

	var params = { 'swliveconnect':"true", 'quality':"low", 'bgcolor':"#000000", 'menu':"false" };
	var attributes = { 'id':"soundfx", 'name':"soundfx" };
	swfobject.embedSWF("./js/soundfx.swf", "soundfx", "1", "1", "9.0.18", null, null, params, attributes, callbackFn);
	function callbackFn(status) { //10.0.22.87
		if (status.success) {
			var obj = status.ref;
			window.onload = function() {
				if (obj && typeof obj.loadsndfx != "undefined") {
					//LOAD MP3'S
					obj.loadsndfx('./media/sounds/oh.mp3|./media/sounds/re.mp3|./media/sounds/ga.mp3|./media/sounds/no.mp3|');
					//ATTACH SNDFX TO BUTTONS
					$('#oh').soundfx({'mh':'0'});
					$('#re').soundfx({'mh':'1'});
					$('#ga').soundfx({'mh':'2'});
					$('#no').soundfx({'mh':'3'});
				}
			};
		}
	};
}
