$(document).ready(function(){
	
	
	$(document).ready(function(){
        $(".tweet").tweet({
            username: $("#twitter_account").text(),
            join_text: "auto",
            avatar_size: 32,
            count: $("#twitter_num").text(),
            auto_join_text_default: "Saber said,",
            auto_join_text_ed: "Saber",
            auto_join_text_ing: "Saber was",
            auto_join_text_reply: "Saber replied to",
            auto_join_text_url: "Saber checked out",
            loading_text: "loading Saber's tweets..."
        });
    });
	$('#toy_cycle').cycle({ 
	    fx:     'fade',
	    delay:  5000
	});
	if($(".image_icon",$('#featured_gallery')).length > 0){
		$('#featured_gallery').cycle({ 
		    fx:     'fade',
		    delay:  6000
		});
	}
	
	var lb_settings = {				// Configuration related to images
			imageLoading:			bpath+'java/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
			imageBtnPrev:			bpath+'java/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
			imageBtnNext:			bpath+'java/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
			imageBtnClose:			bpath+'java/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
			imageBlank:				bpath+'java/images/lightbox-blank.gif'			// (string) Path and the name of a blank image (one pixel)
			};
	$('a[rel*=lightbox]').lightBox(lb_settings);
	
	
});
/*
$(document).ready(function(){

	$("#jquery_jplayer").jPlayer({
		ready: function () {
			$("#jquery_jplayer").changeAndPlay('http://www.miaowmusic.com/mp3/Miaow-07-Bubble.mp3');
		},
		cssPrefix: "different_prefix_example"
	});

	$("#jquery_jplayer").jPlayerId("play", "player_play");
	$("#jquery_jplayer").jPlayerId("pause", "player_pause");
	$("#jquery_jplayer").jPlayerId("stop", "player_stop");
	$("#jquery_jplayer").jPlayerId("loadBar", "player_progress_load_bar");
	$("#jquery_jplayer").jPlayerId("playBar", "player_progress_play_bar");
	$("#jquery_jplayer").jPlayerId("volumeMin", "player_volume_min");
	$("#jquery_jplayer").jPlayerId("volumeMax", "player_volume_max");
	$("#jquery_jplayer").jPlayerId("volumeBar", "player_volume_bar");
	$("#jquery_jplayer").jPlayerId("volumeBarValue", "player_volume_bar_value");

	$("#jquery_jplayer").onProgressChange( function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {
		var myPlayedTime = new Date(playedTime);
		var ptMin = (myPlayedTime.getMinutes() < 10) ? "0" + myPlayedTime.getMinutes() : myPlayedTime.getMinutes();
		var ptSec = (myPlayedTime.getSeconds() < 10) ? "0" + myPlayedTime.getSeconds() : myPlayedTime.getSeconds();
		$("#play_time").text(ptMin+":"+ptSec);

		var myTotalTime = new Date(totalTime);
		var ttMin = (myTotalTime.getMinutes() < 10) ? "0" + myTotalTime.getMinutes() : myTotalTime.getMinutes();
		var ttSec = (myTotalTime.getSeconds() < 10) ? "0" + myTotalTime.getSeconds() : myTotalTime.getSeconds();
		$("#total_time").text(ttMin+":"+ttSec);
	});

	$("#jquery_jplayer").onSoundComplete( function() {
		$("#jquery_jplayer").play();
	});
});*/
