$(function() {
	
	$("div.tabs").tabs(".slideContainer > div", {

		// enable "cross-fading" effect
		effect: 'fade',
		fadeOutSpeed: "slow",

		// start from the beginning after the last tab
		rotate: true

	// use the slideshow plugin. It accepts its own configuration
	}).slideshow();
});

//Opacity change for images
$(document).ready(function(){
	$(".opacityChange").hover(function(){
		$(this).stop(false,true).animate({"opacity": 1}, 200)},
		function(){
		$(this).stop(false,true).animate({"opacity": 0.7}, 200);
	})
})


$(document).ready(function(){
$("#signin").click(function(){
    $("#signinForm").slideToggle(300);
  });
});

$(document).ready(function() {
	$("#formUser").attr("value", "Email");

	var text = "Email";

	$("#formUser").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});

	$("#formUser").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
});

$(document).ready(function() {
	$("#formPassword").attr("value", "Password");

	var text = "Password";

	$("#formPassword").focus(function() {
		$(this).addClass("active");
		if($(this).attr("value") == text) $(this).attr("value", "");
	});

	$("#formPassword").blur(function() {
		$(this).removeClass("active");
		if($(this).attr("value") == "") $(this).attr("value", text);
	});
});
