// JavaScript Document


		
		
		//var firstpanel = Math.ceil((4)*Math.random());
		//alert(firstpanel)
		
		$(function () {
			var firstpanel = Math.ceil(Math.random()*4);
			firstpanel = 1;
			//alert(firstpanel);
			$('#slider1').anythingSlider({
				startStopped    : false, // If autoPlay is on, this can force it to start stopped
				width           : 727,  // Override the default CSS width
				height          : 315,
				startPanel      : firstpanel,
//				toggleControls  : true, // if true, then slide in controls on hover and slider change, hide @ other times
				theme           : '',
				onSlideComplete : function(slider){
					// alert('Welcome to Slide #' + slider.currentPage);
				}
			});
					

			// Report Events to console
			$('.anythingSlider').bind('slideshow_start slideshow_stop slideshow_paused slideshow_unpaused slide_init slide_begin slide_complete',function(e, slider){
				// show object ID + event (e.g. "slider1: slide_begin")
				var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.currentPage;
				$('#status').text(txt);
				if (window.console && window.console.firebug){ console.debug(txt); } // added window.console.firebug to make this work in Opera
			});
		});
function PromoV() {
	$('.promoGhost').css('display', 'block')
	}
function Ritarda(){
	setTimeout('PromoV()', 500);
}

