﻿
var changeImages = function(id, src){
		$("#"+id).attr("src", src);
	},
	getpage = function(href){
		
		window.open(href, "_self");
		return false;
		
		/** 
		$.ajax({
			url: href,
			success: function(html){
				animateout(function(){
					$("#content").html( $("#content", html).html() );
					loadpage();
				});
			}
		})
		return false;
		/**/
	},
	loadpage = function(){

		//animatein();
		
		$(".audio").click(function(){
			var mp3 = $(this).attr("href");
			$(".audio-player").empty();
			$(this).siblings(".audio-player").html(
				'\
					<object width="15" height="15">\
						<param name="movie" value="includes/player.swf?mp3='+mp3+'"></param>\
						<param name="wmode" value="transparent"></param>\
						<embed src="includes/player.swf?mp3='+mp3+'" wmode="transparent" type="application/x-shockwave-flash" width="15" height="15"></embed>\
					</object>\
				'
			);
			return false;
		});
	
	
	
		$("a").focus(function(){ this.blur(); });
	
		$("a[onmouseover][onmouseout]").mouseover().mouseout();
	
		$("a:not([target])").unbind("click").click(function(){
			var href = $(this).attr("href");
			if(href.indexOf("http://") != -1 || $(this).attr("target") != "") return true;
			getpage(href);
			return false;
		});
	
	},
	animatein = function(){
		$("#content .col-2").hide().show("blind", { direction: "horizontal"}, 400);
		$("#content .col-1, #content .col").hide().slideDown(800)

	},
	animateout = function(end){
		$("#content .col-2").hide("blind", { direction: "horizontal"}, 400);
		$("#content .col-1, #content .col").slideUp(800, end);
	};


(function($){


$(loadpage);






})(jQuery);

