function boxchange(temp, width){
       	  var num=''; 
	   if(temp){
			
			num = parseInt(temp.text());
			$("#rollicon .activebox").removeClass("activebox").addClass("inactivebox");
			temp.addClass("activebox");
			$("#banner").animate({"left":"-"+(width*(num-1))+"px"},"slow");
		} else{		  
			if($("#rollicon .activebox").next().length==0){
				num = parseInt($("#rollicon .activebox").text());
				$("#rollicon .activebox").removeClass("activebox").addClass("inactivebox");
				$("#rollicon a:first-child").removeClass("inactivebox").addClass("activebox");
				$("#banner").animate({"left":"-"+(width*(num))+"px"},{duration:"slow", complete:function(){$("#banner").css({"left":"0px"});}});
			}else{
			num = parseInt($("#rollicon .activebox").text());
			$("#rollicon .activebox").next().removeClass("inactivebox").addClass("activebox");
			$("#rollicon .activebox").prev().removeClass("activebox").addClass("inactivebox");
			$("#banner").animate({"left":"-"+(width*num)+"px"},"slow");
			}
		}
		
	}
   function showhide(){
    var whichImage = Math.floor(Math.random()*10);

    
	$(".quotebox img").hide();
	$(".quotebox img").attr("src", "/global/newimages/quotes/quote" + whichImage + ".png");
	$(".quotebox img").fadeIn(3000);
   }
  function searchmips(){
 var temp = "http://search.mips.com/search?q="+ document.getElementById('gSearch').value;
 window.open (temp);
}

