//tabbed

$(document).ready(function() {	



	var $tab = jQuery.noConflict();

    $tab('#tabMenu1 > li').click(function(){

    $tab('#tabMenu1 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed1 div').slideUp('1500');

    $tab('.body_tabbed1 div:eq(' + $tab('#tabMenu1 > li').index(this) + ')').slideDown('1500');    

  })

  	$tab('#tabMenu2 > li').click(function(){

    $tab('#tabMenu2 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed2 div').slideUp('1500');

    $tab('.body_tabbed2 div:eq(' + $tab('#tabMenu2 > li').index(this) + ')').slideDown('1500');

	

  })

    $tab('#tabMenu3 > li').click(function(){

    $tab('#tabMenu3 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed3 div').slideUp('1500');

    $tab('.body_tabbed3 div:eq(' + $tab('#tabMenu3 > li').index(this) + ')').slideDown('1500');

	    

  })

    $tab('#tabMenu4 > li').click(function(){

    $tab('#tabMenu4 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed4 div').slideUp('1500');

    $tab('.body_tabbed4 div:eq(' + $tab('#tabMenu4 > li').index(this) + ')').slideDown('1500');

	    

  })

    $tab('#tabMenu5 > li').click(function(){

    $tab('#tabMenu5 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed5 div').slideUp('1500');

    $tab('.body_tabbed5 div:eq(' + $tab('#tabMenu5 > li').index(this) + ')').slideDown('1500');

	    

  })    

    $tab('#tabMenu6 > li').click(function(){

    $tab('#tabMenu6 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed6 div').slideUp('1500');

    $tab('.body_tabbed6 div:eq(' + $tab('#tabMenu6 > li').index(this) + ')').slideDown('1500');

	    

  })

    $tab('#tabMenu7 > li').click(function(){

    $tab('#tabMenu7 > li').removeClass('selected');

    $tab(this).addClass('selected');

    $tab('.body_tabbed7 div').slideUp('1500');

    $tab('.body_tabbed7 div:eq(' + $tab('#tabMenu7 > li').index(this) + ')').slideDown('1500');

	    

  })

	

       

	

});



// shine

jQuery(document).ready(function(){

	var $imghover = jQuery.noConflict();

	$imghover('.container_hover_shine').hover(function(){

		$imghover(this).find(".hover_shine").css("background-position","-262px 0"); 

		$imghover(this).find(".hover_shine").animate({backgroundPosition: '262px 0'},400);

		},function(){

		$imghover(this).find(".popup").stop().animate({marginLeft:0, marginTop:0},200);

	});

})



//tooltip

$(document).ready(function(){

	var m = jQuery.noConflict()

	m(".tool a").mouseover(function(){

		var xwidth = m(this).width();

		m(this).next("em").stop(true, true).animate({opacity: "show", bottom: "20"}, 150).css({

			'left': xwidth / 2 - 84

			});

		

		

	});

	m(".tool a").mouseout(function(){

		m(this).next("em").stop(true, true).animate({opacity: "hide", bottom: "40"}, "fast");

	});

});





//toggled 

$(document).ready(function(){
	var $tg = jQuery.noConflict();
	$tg(".toggle_container").show();
	$tg("div.trigger").stop(true, true).click(function(event){
		event.preventDefault();
		$tg(this).toggleClass("active").next().slideToggle("slow");

	});
});



//Lightbox	

	$(document).ready(function(){

			var $gallery = jQuery.noConflict();

			$gallery("a[rel='lightbox']").colorbox();			

			$gallery("#click").click(function(){ 

				$gallery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");

				return false;

			});

		});


