$(document).ready(function(){
	
	
	
	
	
	$(".newprodlistbox a").each(function(){
		$(this).attr("title",$(this).attr("href"));
		$(this).attr("href","Javascript:;");
	});
	
	
	
	
	$(".newprodlistbox a").mouseover(function(){
		
		$(".newprodlistbox a").css("background-image","url(images_11/clrbox.gif)");
		$(this).css("background-image","url(images_11/brwnarrow.png)");
		
		myreport=$(this).attr("title");
		myreportar=myreport.split("=");
		myreportf=myreportar[1];
	
	grabAndDoStart(myreportf);
	
		
	});
	
	startreport=$(".newprodlistbox a").eq(0).attr("title");
		startreportar=startreport.split("=");
		startreportf=startreportar[1];
	
	grabAndDoStart(startreportf);
	
	
	
	
	
	
	
	function grabAndDoStart(lesgo){
		passgo=lesgo;
		 $("#myloaderdiv").css("top","75px");
		 if($("#feederin #wholereturn #minidesc").length>0){
		 
		 $("#feederin  #wholereturn #miniimage").stop().animate({"opacity":"0"},{ queue:false, duration:250});
		$("#feederin  #wholereturn #minidesc").stop().animate({"opacity":"0"},{ queue:false, duration:250,complete:
		
		function(){
			grabAndDo(passgo);
		}
		});
		 } else {
			 grabAndDo(passgo);
		 }
		
		
		
		
	}
	
	
	
	
	function grabAndDo(dowhat){
	myproddy=dowhat;
//alert("troy"+$("#ctyid").val());

	// alert("started");
	 $.ajax({
   type: "GET",
   url: "/prodgrabber_rl.asp",
   data:"T1="+myproddy,
   dataType: "html",
   success: function(data) {
	
	  $("#feederin").html(data);
	  
	  $("#myloaderdiv").css("top","-1400px");
	  $("#moreinfopng a").attr("href",$("#moreinfopng a").attr("title")+"?T1="+myproddy);
	
   
   
   $("#feederin").stop().animate({opacity:1},{ queue:false, duration:1500});
   
   
   
  }
 });
	 
	 
	 
	
} // end of grab and do
						
				
				
						   });





