//Onclick Remove Username and password
$(document).ready(function() {
  $('.login_input').click(
     function() {
        if (this.value == this.defaultValue) {
        this.value = '';
        }
     }
  );
  $('.login_input').blur(
     function() {
        if (this.value == '') {
        this.value = this.defaultValue;
        }
     }
   );


//Carousel Start
$(function(){
        $(".carousel").carousel();
		$(".carousel-next").click(function(){
		  $(".carousel span").trigger("display:none");
		});
    });


});
//Preloading Images
$(function () {
		$('.carousel ul li img').hide();//hide all the images on the page
	});

	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
		var int = setInterval("doThis(i)",300);//500 is the fade in speed in milliseconds
	});

	function doThis() {
		var images = $('img').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
		}
		$('img:hidden').eq(0).fadeIn(100);//fades in the hidden images one by one
		i++;//add 1 to the count
	}
