$(document).ready(function(){
		   var uy= $("#cdiv").children();
           var uys= $("#sidediv").children();
		//	$(".list_top_middle a").prettyPhoto({theme:'light_rounded'});
			 $(".list_top_middle a").click(function(e){
			 //alert($(this).css('top'));
			 var pos=($(this).attr('id')).split('_');
			
			 var index = $(e).parent(); 
			 for(t=0;t<($("#mm").children().length-1);t++)
			 {
			   if($("#mm").children()[t]==this.parentNode)
		 
				 break;
			 }
			 var top=(($("#mm").children().length)-(t+1))*41;
			 //alert("-"+top+"px");
			  var topval="-"+top+"px";
			// $("#slide").animate( { left:"-11px"}, 30,callback ); function callback(){
			 $("#slide").animate( { top:topval}, 500 );//} 
			 $(".middle_product_middle").css("display","none");
			 $(".middle_product_right").css("display","none");
			 uy[t].style.display="block"; 
			 uys[t].style.display="block";
			 
			 $('.product_act_hexa').each(function() {
				 if(t == 0)
				 {
					$(this).attr('href','https://www.hexahost.com/billing/cart.php?a=add&pid=2');
				 }
				 if(t == 1)
				 {
					$(this).attr('href','https://www.hexahost.com/billing/cart.php?a=add&pid=1');

				 }
				 if(t == 2)
				 {
					$(this).attr('href','https://www.hexahost.com/billing/cart.php?a=add&pid=4');

				 }
			 });
			 //alert($('slide_product_act'));
  			 
});
			
			 $(".middle_product_middle").css("display","none");
			 $(".middle_product_right").css("display","none");
			
			 uy[0].style.display="block"; 
			 uys[0].style.display="block";
			 $("#slide").animate({ top:'-123px'}, 500 );
		}); 
 