$(document)
.ready(function() {
	$("#bgsound").jmp3({
		backcolor: "000000",
		width: 25,
		showdownload: "false",
		showfilename: "false",
		autoplay: "true",
		filepath: "../cms/media/mp3/",
		volume: "20",
		repeat: "true"
	});
	$("#sub_title").FontEffect({
	    outline:true,
	    debug:true,
	    outlineColor1:"#fff",
	    outlineColor2:"#fff",
	    outlineWeight: 2,
	});
	$("#sub_title").removeFE(false);
	var sh = $("#show");
	sh.hide();
	sh.removeClass('hidden');

	$("#show a.close").click(
	function() {
		var shw = $("#show");
		var x = $(this);
		x.blur();
		shw.fadeOut();
		$("#sub_title").removeFE(false);
		return false
	});
	$("#navigation a").click(
	function() {
		var ifr = $("#show iframe");
        ifr.hide();
		var shw = $("#show");
		var sti = $("#sub_title");
		var x = $(this);
		var a = x.attr('href');
		var t = x.text();
		x.blur();

		ifr.attr('src', a);
		ifr.load(function() {
			setTimeout(function(){ 
            	ifr.fadeIn();
			}, 100 ); 
        });

		sti.text(t);
		shw.fadeIn();
		sti.redrawFE({});
		return false
	});
});
