function otherLaunch(){
	width = $(".slider div.img img").width();
	height = $(".slider div.img img").height();
	$(".slider").css({width:width+'px',height:height+'px'});
	$(".lider div.img img").css({width:width+'px',height:height+'px'});
}

function sliderLaunch(){
		
	width = $("#slider div.img img").width();
			height = $("#slider div.img img").height();
			$("#slider").css({width:width+'px',height:height+'px'});
			$("#slider div.img img").css({width:width+'px',height:height+'px'});
	
	
		
}

function eventSliderRepair(){
	
	$(".slider").each(function(){
			
			height = $("img",this).height();
			width = $("img",this).width();
			$(this).css({height:height+'px',width:width+'px'});
		}	
	);
	
	
}

function showDetails(id){
	$(".slider div.img ").cycle("pause");
	if($("#ahref"+id).hasClass("show")){
	
	$("a.register2").removeClass("register2").addClass("register");
	$("a.hide").removeClass("hide").addClass("show").html("More info ...");
	$("#register"+id).removeClass("register").addClass("register2");
	$("#ahref"+id).html("Hide info").removeClass("show").addClass("hide");
	
	$(".eventdescription").slideUp(500);
			
				$("#"+id).slideDown(500,function(){
						eventSliderRepair();
						
						$("#"+id+" .slider div.img ").cycle({ 
						    fx:      'fade', 
						    speed:500,
							timeout:4000
						});
						
				});
			

	}
	else{
		$("#register"+id).removeClass("register2").addClass("register");
		$("#ahref"+id).html("More Info ...").removeClass("hide").addClass("show");
		
					$("#"+id).slideUp(500);
				
		
	}
	
}