$(document).ready(function(){
/*starter */

	// --------------------------------------------------------------------
	// 		= ========== CSS SWITCHER ========== =
	// --------------------------------------------------------------------
	
	/**
	 * Switch CSS onclick
	 **/

	// Switch to Printer Css
	$(".css-printer").click(function() {
		$("link[rel=stylesheet]").attr({href : base_url + "assets/css/printer.css"});
	});
	
	// Switch to Default Css
	$(".css-style").click(function() {
		$("link[rel=stylesheet]").attr({href : base_url + "assets/css/style.css"});
	});
	
	// --------------------------------------------------------------------
	// 		= ========== EFFECTS ========== =
	// --------------------------------------------------------------------

	/**
	 * Shake Navigation List
	 **/
	 
	//shake text on the right
	$("#navigation ul li a").mouseover(function() {
		$(this).animate({ textIndent:"+65px"}, { duration:500 });
	});
	
	//reset shaker
	$("#navigation ul li a").mouseout(function() {
		$(this).animate({ textIndent:"+30px"}, { duration:300 });
	});
	
	// --------------------------------------------------------------------
	
	/**
	 * Fade Description Color
	 **/

	//set opacity
	$(".description").css({ opacity:"0.3" });

	//remove opacity
	$(".description").animate({ opacity: "1" }, 2000 );
	
		
	/**
	 * Multimedia PLAY button fade
	 **/
	 
	//set opacity
	$(".overlay").css({ opacity:"0.3" });
	
	//remove opacity
	$(".overlay").mouseover(function() {
		$(this).animate({ opacity:"0.7" }, 300 );
	});

	$(".overlay").mouseout(function() {
		$(this).animate({ opacity:"0.3" }, 300 );
	});

	// --------------------------------------------------------------------
	
	/**
	 * Scrolling (plugin jquery-scrolling.js)
	 **/
	 
	//scroll to top smothy
	$('.go_top').click(function(){$('#header').ScrollTo(1000);return false});
	
	// --------------------------------------------------------------------
	// 		= ========== EXT LINK ========== =
	// --------------------------------------------------------------------

	$("a:not([@href*= " + base_url + "])").not("[href^=#]")
	  .addClass("external")
	  .attr({ target: "_blank" });

/*ender */
});