Shadowbox.init({players:['img', 'swf']});

// Animate DIV
//
//
$(document).ready(function() {
	// Toggle Bar 01
	//
	//
	$('#button_bar').click(function(event) {
		$('#expand').animate({"height": "toggle"}, 500, "easeOutQuart");
	});
	
	$('#button_bar2').click(function(event) {
		$('#expand').animate({"height": "toggle"}, 500, "easeOutQuart");
	});
	
	$('#button_bar').click(function() {
		$('#button_bar').css("display","none");
		$('#button_bar2').css("display","block");		
	});
	// Toggle Bar 02
	//
	//
	$('#button_bar3').click(function(event) {
		$('#expand2').animate({"height": "toggle"}, 500, "easeOutQuart");
	});
	
	$('#button_bar4').click(function(event) {
		$('#expand2').animate({"height": "toggle"}, 500, "easeOutQuart");
	});
	
	$('#button_bar3').click(function() {
		$('#button_bar3').css("display","none");
		$('#button_bar4').css("display","block");		
	});	
	// Hide Bar 01
	//
	//
	$('#button_bar2').click(function() {
		$('#button_bar2').css("display","none");
		$('#button_bar').css("display","block");
	});
	// Hide Bar 02
	//
	//
	$('#button_bar4').click(function() {
		$('#button_bar4').css("display","none");
		$('#button_bar3').css("display","block");
	});		
	// Rollover Bar 01
	//
	//
	$('#button_bar img').hover(function() {
		$(this).attr("src", $(this).attr("src").split("topBar.").join("topBar-hover."));
	}, function() {
		$(this).attr("src", $(this).attr("src").split("topBar-hover.").join("topBar."));
	});
	// Rollover Bar 02
	//
	//
	$('#button_bar3 img').hover(function() {
		$(this).attr("src", $(this).attr("src").split("topBar2.").join("topBar2-hover."));
	}, function() {
		$(this).attr("src", $(this).attr("src").split("topBar2-hover.").join("topBar2."));
	});
	// Rotator
	//
	//
	$(".slide-container").wtRotator({
		width:750,
		height:299,
		button_width:22,
		button_height:22,
		button_margin:4,
		auto_start:true,
		delay:2500,
		play_once:false,
		transition:"fade.left",
		transition_speed:500,
		auto_center:true,
		easing:"",
		cpanel_position:"inside",
		cpanel_align:"BR",
		timer_align:"top",
		display_thumbs:true,
		display_dbuttons:false,
		display_playbutton:true,
		display_numbers:true,
		display_timer:false,
		mouseover_pause:false,
		cpanel_mouseover:true,
		text_mouseover:false,
		text_effect:"fade",
		text_sync:true,
		tooltip_type:"text",
		lock_tooltip:true,
		shuffle:false,
		block_size:75,
		vert_size:55,
		horz_size:50,
		block_delay:25,
		vstripe_delay:75,
		hstripe_delay:180				
	});			
});


var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1867900-1']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
