
	$(document).ready(function() {
		$('.otherbutton,.homebutton,.downloadbutton,.donatebutton').append('<span class="hover"></span>').each(function () {
	  		var $span = $('> span.hover', this).css('opacity', 0);
	  		$(this).hover(function () {
	    		$span.stop().fadeTo(800, 1);
	 		}, function () {
	   	$span.stop().fadeTo(800, 0);
	  		});
		});
		
		$('.bt a img').css("opacity",0)
		$('.bt a img').hover(function(){$(this).animate({opacity:1})},function(){$(this).animate({opacity:0})})
		$('#btshare a img').css("opacity",0)
		$('#btshare a img').hover(function(){$(this).animate({opacity:1})},function(){$(this).animate({opacity:0})})
		$('.btrig a img').css("opacity",0)
		$('.btrig a img').hover(function(){$(this).animate({opacity:1})},function(){$(this).animate({opacity:0})})
		$('.btrigbot a img').css("opacity",0)
		$('.btrigbot a img').hover(function(){$(this).animate({opacity:1})},function(){$(this).animate({opacity:0})})
		$('.btrigtop a img').css("opacity",0)
		$('.btrigtop a img').hover(function(){$(this).animate({opacity:1})},function(){$(this).animate({opacity:0})})
		$('.btorderform a img').css("opacity",0)
		$('.btorderform a img').hover(function(){$(this).animate({opacity:2})},function(){$(this).animate({opacity:0})})
		$('.btsandigo a img').css("opacity",0)
		$('.btsandigo a img').hover(function(){$(this).animate({opacity:2})},function(){$(this).animate({opacity:0})})
		//slide
		if($("#animation div img").length>3){
			setInterval (function () { 
				wid=$("#animation img:first").width();
				$("#animation div img:first").animate({marginLeft:-wid},500,'easeOutBounce',function(){
					 newimg = new Image()
					$(newimg).attr('src',$(this).attr('src'));
					$(newimg).css('float','left')
					$("#animation div").append(newimg)
					$(this).remove()
					$("#animation div img").css("float","left")
				//
				  })
			}, 2000);
		}//if end
		
		 var vanover=true;
 		 $('.van').hover(function(){vanover=false;},function(){vanover=true;})
		  $('.van img').stop().animate({marginLeft:0},500,'easeOutQuad',function(){			
			var vanint=  setInterval (function () { 
			if(vanover){
		  	$('.van img').stop().animate({marginLeft:-140},500,'easeInQuad',function(){				 
		  		 $('.van img').css('marginLeft',150);
		    	 $('.van img').animate({marginLeft:0},500,'easeInQuad',function(){ });
					 	
				 });
				 }
		  	},15000)
		  });
		   var vaninnerover=true;
 		 $('.vaninner').hover(function(){vaninnerover=false;},function(){vaninnerover=true;})
		  $('.vaninner img').stop().animate({marginLeft:0},500,'easeOutQuad',function(){			
			var vaninnerint=  setInterval (function () { 
			if(vaninnerover){
		  	$('.vaninner img').stop().animate({marginLeft:-140},500,'easeInQuad',function(){				 
		  		 $('.vaninner img').css('marginLeft',150);
		    	 $('.vaninner img').animate({marginLeft:0},500,'easeInQuad',function(){ });
					 	
				 });
				 }
		  	},15000)
		  });
		  
		  //setInterval (function () { 
   // $('.celebrat img').stop().animate({width:1,height:1,marginTop:45,marginLeft:63},500,'easeInBounce',function(){	  
	   //$('.celebrat img').animate({width:142,height:93,marginTop:0,marginLeft:0},500,'easeOutBounce');	  
	   //});
	//}, 3000);	
	
	
	 // setInterval (function () { 
   // $('.star img').stop().animate({opacity:0},500,'easeOutQuad',function(){	  
	  // $('.star img').animate({opacity:1},500,'easeOutQuad');	  
	//   });
	//}, 1000);	
	  
	 // setInterval (function () { 
   // $('.starinner img').stop().animate({opacity:0},500,'easeOutQuad',function(){	  
	 //  $('.starinner img').animate({opacity:1},500,'easeOutQuad');	  
	//   });
	//}, 1000);	
	  
	    //setInterval (function () { 
   // $('.aboutusstar img').stop().animate({opacity:0},500,'easeOutQuad',function(){	  
	  // $('.aboutusstar img').animate({opacity:1},500,'easeOutQuad');	  
	 //  });
	//}, 1000);	
		
});

