$(document).ready(function(){
						   
						   
	//$('#Artistslider').css("opacity",0).css("margin-top","600px");
	
	//This keeps track of the slideshow's current location
	var current_panel = 1;
	//Controlling the duration of animation by variable will simplify changes
	var animation_duration = 2500;
	
	var numb_o_artists = $("#numb_o_Artists").attr("href");
	
	var slidewidth = 724;
	
	var lastdefinedcase = 8;
	
	$("#slider_show li:nth-child(1)").css("left","0px");
	
	if(numb_o_artists>1){
	
	$.timer(8000, function (timer) {
				
				$("#slider_show li:nth-child("+current_panel+")").animate({left: "-724px", top: "0px"}, {easing: 'easeInOutExpo', duration: animation_duration, complete:function(){$(this).css("left","724px");}});
				
				
				if(numb_o_artists>=(current_panel+1)){
				var next_panel =current_panel+1;}else{
					var next_panel = 1;
					}
				
				$("#slider_show li:nth-child("+next_panel+")").animate({left: "0px", top: "0px"}, {easing: 'easeInOutExpo', duration: animation_duration});		
						
				if(numb_o_artists>=(current_panel+1)){
				current_panel++;
				}else{
					current_panel=1;
			  		
				//	alert("setback");

					}
		
	});
	}
	
	
	$('#mainCont').fadeIn('1500', function() {
   						//	alert("pressed");
  							});
	
	
	$('#clickme').click(function() {
								  
						    $('#mainCont').fadeOut('500', function() {
   						//	alert("pressed");
  							});
							
					});
	
	/* slider Text  */
					
								  
				
});


var newPage= "empty";

function waitahalf(newPage1){
	window.setTimeout(goToWindow, 500);	
	newPage=newPage1;
	}
	
function goToWindow(){
	
	window.open(newPage,'_self');
	
	}

