function jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location=\'"+selObj.options[selObj.selectedIndex].value+"\'");
if (restore) selObj.selectedIndex=0;
}

function drop_down()
{
	  var parent = $("#navContainer").attr('id');
	  $("#navContainer li").hover(
	    function(){
			var ob = this;
			//if(window.console){console.log($(ob).attr('id'))}
			/*$(".subContainer ul").each(function(ob){
	  	      var el = $(this);
			  if(el.attr('id')==parent)el.css('display','none');
			  else el.css('display','block');
			})*/
			$(this).find('ul').css('display','block');
			//if(window.console){console.log(id)}
			//$("#"+id).css('display','block')
		},
		function(){
		  //var id = $(this).attr('rel');
		  //$("#"+id).css('display','none')
		  drop_down.timer($(this).find('ul'));
		}
	  )
}

function sub_total(p,el)
{
	var e = (el.value * p).toFixed(2);
	if(window.console){
	  console.log( e +"\n");
	  
	}	
	$(".sub_total").html("&pound;" + e );
	
}

$(document).ready(function(){
  //drop_down();
  $("#sort").change(
          function(){
            var s = $(this).val();
            $(".sort a").each(function(){
              var href =$(this).attr('href')
              var n = href.replace(/sort(.+)&/,"sort="+s+"&")
              
              $(this).attr('href',n);
              window.location = n;
            })
          }
  )

})