


$(document).ready( function() {


	$('li.js_maxlink').each(function() {
		$(this).bind('click', function() {
			window.location = $("a", this).attr("href");
		});

	});
	    
	// $(".btn").wrap('<div class="new" />');
/*
 * bigShadowBot
$(".bigShadowBot").after("<div class='bgShadowBottom'/>");
 */
	$(".bigShadow").before("<div class='bgShadowTop'/>");
	$(".bigShadow").after("<div class='bgShadowBottom'/>");
	$(".bigShadow").css("background", "transparent");

	//alert($(".bgShadowTop"));
	
	if($(".bgShadowTop").length == 0){
		$("#region_1 .inner:first-child").prepend("<div class='cbShadowTop'/>");
	}
	// tabs
	
	function setTabActive(obj){
		$('.tabs .tab_content_box .tab_content').addClass('hideTab');

		$('.tabs .tablist li a').removeClass('active');

		obj.addClass('active');
		id = obj.attr("href");
		
		$('.tabs .tab_content_box .tab_content'+id).removeClass('hideTab');
		return false;
	}
	
	tabs = $('.tabs .tablist li a');
	
	tabs.each(function() {

		$(this).click(function(){
			setTabActive($(this));
			return false;
		});
	});
	
	setTabActive($(tabs[0]));
		

})
