		function getQuerystring(key, default_)
		{
		  if (default_==null) default_="";
		  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
		  var qs = regex.exec(window.location.href);
		  if(qs == null)
			return default_;
		  else
			return qs[1];
		}
	
	
	
	
	
	
		$(window).load(function() {
			var doc = $('document').height();
			var  itemno= getQuerystring('itemnumb');
			$('.AddToCart').remove();
			if(itemno!=''){
				var item = $('a:has(img[src*=' + itemno + '])').parent().parent().parent().parent().parent().parent().parent().parent();
				var firstItem = $('#ctl00_Main_divItemListArea .Panel:first');
				var temp = firstItem;
				var itemcopy = item.clone();
				//firstItem.remove();
				firstItem.replaceWith(itemcopy);
				item.replaceWith(temp)
				//firstItem=item;
				//item = temp;
/*				
				var itemHeight = item.height();
			
				var position = item.offset();
				if((doc-itemHeight) >= (position.top+itemHeight))
					window.scroll(0,position.top-5);
				else
					window.scroll(0,position.top-itemHeight-50);
*/
				var hightlight=$('a:has(img[src*=' + itemno + '])').parent().parent().parent().parent().parent();
				hightlight.css("border", "outset green 5px");
				hightlight.find(".DataList-Item").css("background","none");
				hightlight.find(".DataList-Item").css("background-color","#356648");
				hightlight.find(".DataList-Item").animate( { backgroundColor: 'white' }, 4000);


				//item.css("background-color", "#ccffcc");

				//window.scroll(0,position.top-5);
	
			}
		});
