function submitForm(formName,navigateValue){if(navigateValue!=null&&navigateValue!=""){document.forms[formName].navigate.value=navigateValue;}
document.forms[formName].submit();}
function showSV(div){document.getElementById(div).style.display='block';}
function hideSV(div){document.getElementById(div).style.display='none';}
function xGetElementsByTagName(t,p)
{var list=null;t=t||'*';p=xGetElementById(p)||document;if(typeof p.getElementsByTagName!='undefined'){list=p.getElementsByTagName(t);if(t=='*'&&(!list||!list.length))list=p.all;}
else{if(t=='*')list=p.all;else if(p.all&&p.all.tags)list=p.all.tags(t);}
return list||[];}
function xGetElementById(e)
{if(typeof(e)=='string'){if(document.getElementById)e=document.getElementById(e);else if(document.all)e=document.all[e];else e=null;}
return e;}
function xPrevSib(e,t)
{e=xGetElementById(e);var s=e?e.previousSibling:null;while(s){if(s.nodeType==1&&(!t||s.nodeName.toLowerCase()==t.toLowerCase())){break;}
s=s.previousSibling;}
return s;}
function xCollapsible(outerEle,bShow)
{var container=xGetElementById(outerEle);if(!container){return null;}
var isUL=container.nodeName.toUpperCase()=='UL';var i,trg,aTgt=xGetElementsByTagName(isUL?'UL':'DIV',container);for(i=0;i<aTgt.length;++i){trg=xPrevSib(aTgt[i]);if(trg&&(isUL||trg.nodeName.charAt(0).toUpperCase()=='H')){aTgt[i].xTrgPtr=trg;aTgt[i].style.display=bShow?'block':'none';trg.style.cursor='pointer';trg.xTgtPtr=aTgt[i];trg.onclick=trg_onClick;}}
function trg_onClick()
{var tgt=this.xTgtPtr.style;tgt.display=(tgt.display=='none')?"block":"none";}
this.displayAll=function(bShow)
{for(var i=0;i<aTgt.length;++i){if(aTgt[i].xTrgPtr){aTgt[i].style.display=bShow?"block":"none";}}};this.onUnload=function()
{if(!container||!aTgt){return;}
for(i=0;i<aTgt.length;++i){trg=aTgt[i].xTrgPtr;if(trg){if(trg.xTgtPtr){trg.xTgtPtr.TrgPtr=null;trg.xTgtPtr=null;}
trg.onclick=null;}}};}
function popup(name,url,width,height){window.open(url,'name','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width='+width+',height='+height);}
function finish(url){if(url=="")
window.opener.location.href=window.opener.location.href;else
window.opener.location.href=url;window.opener.focus();window.close();}
function finishHome(parent,id){if(parent!=""&&id!=""){var parentObjectInput=window.opener.document.getElementById(parent);parentObjectInput.value=id;}
window.opener.focus();window.close();}
var previous;function hideAll()
{document.getElementById(previous).styel.display='none';};function checkAll(obj)
{for(i=0;i<obj.getElementsByTagName("input").length;i++){if(obj.getElementsByTagName("input")[i].type=="checkbox"){obj.getElementsByTagName("input")[i].checked=true;}}}
function uncheckAll(obj)
{for(i=0;i<obj.getElementsByTagName("input").length;i++){if(obj.getElementsByTagName("input")[i].type=="checkbox"){obj.getElementsByTagName("input")[i].checked=false;}}}<!--
function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore)selObj.selectedIndex=0;}
function clearSearch(obj){if(obj.value=='Search'){obj.value="";}}
function clearCheck(obj){obj.value=trim(obj.value)
if(obj.value==''){obj.value="Search";}}
function trim(s)
{return rtrim(ltrim(s));}
function ltrim(s)
{var l=0;while(l<s.length&&s[l]==' ')
{l++;}
return s.substring(l,s.length);}
function rtrim(s)
{var r=s.length-1;while(r>0&&s[r]==' ')
{r-=1;}
return s.substring(0,r+1);};(function(c){var s="colorbox",B="hover",o=true,g=false,e,E=!c.support.opacity,N=E&&!window.XMLHttpRequest,O="click.colorbox",fa="cbox_open",J="cbox_load",P="cbox_complete",Q="cbox_cleanup",aa="cbox_closed",R="resize.cbox_resize",u,j,x,p,S,T,U,V,h,r,n,K,L,ba,W,y,F,G,M,C,D,z,A,m,k,a,H,I,X,Y={transition:"elastic",speed:350,width:g,height:g,innerWidth:g,innerHeight:g,initialWidth:"400",initialHeight:"400",maxWidth:g,maxHeight:g,scalePhotos:o,scrolling:o,inline:g,html:g,iframe:g,photo:g,href:g,title:g,rel:g,opacity:0.9,preloading:o,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:g,overlayClose:o,slideshow:g,slideshowAuto:o,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",preloadIMG:o};function v(b,d){d=d==="x"?document.documentElement.clientWidth:document.documentElement.clientHeight;return typeof b==="string"?Math.round(b.match(/%/)?d/100*parseInt(b,10):parseInt(b,10)):b}function Z(b){return a.photo||b.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function ca(){for(var b in a)if(typeof a[b]==="function")a[b]=a[b].call(m)}e=c.fn.colorbox=function(b,d){this.length?this.each(function(){var i=c(this).data(s)?c.extend({},c(this).data(s),b):c.extend({},Y,b);c(this).data(s,i).addClass("cboxelement")}):c(this).data(s,c.extend({},Y,b));c(this).unbind(O).bind(O,function(i){m=this;a=c(m).data(s);ca();X=d||g;var l=a.rel||m.rel;if(l&&l!=="nofollow"){h=c(".cboxelement").filter(function(){var f=c(this).data(s).rel||this.rel;return f===l});k=h.index(m);if(k<0){h=h.add(m);k=h.length-1}}else{h=c(m);k=0}if(!H){I=H=o;c().bind("keydown.cbox_close",function(f){if(f.keyCode===27){f.preventDefault();e.close()}}).bind("keydown.cbox_arrows",function(f){if(f.keyCode===37){f.preventDefault();G.click()}else if(f.keyCode===39){f.preventDefault();F.click()}});a.overlayClose&&u.css({cursor:"pointer"}).one("click",e.close);m.blur();c.event.trigger(fa);M.html(a.close);u.css({opacity:a.opacity}).show();a.w=v(a.initialWidth,"x");a.h=v(a.initialHeight,"y");e.position(0);N&&r.bind("resize.cboxie6 scroll.cboxie6",function(){u.css({width:r.width(),height:r.height(),top:r.scrollTop(),left:r.scrollLeft()})}).trigger("scroll.cboxie6")}e.slideshow();e.load();i.preventDefault()});b&&b.open&&c(this).triggerHandler(O);return this};e.init=function(){function b(d){return c('<div id="cbox'+d+'"/>')}r=c(window);j=c('<div id="colorbox"/>');u=b("Overlay").hide();x=b("Wrapper");p=b("Content").append(n=b("LoadedContent").css({width:0,height:0}),K=b("LoadingOverlay"),L=b("LoadingGraphic"),ba=b("Title"),W=b("Current"),y=b("Slideshow"),F=b("Next"),G=b("Previous"),M=b("Close"));x.append(c("<div/>").append(b("TopLeft"),S=b("TopCenter"),b("TopRight")),c("<div/>").append(T=b("MiddleLeft"),p,U=b("MiddleRight")),c("<div/>").append(b("BottomLeft"),V=b("BottomCenter"),b("BottomRight"))).children().children().css({"float":"left"});c("body").prepend(u,j.append(x));if(E){j.addClass("cboxIE");N&&u.css("position","absolute")}p.children().addClass(B).mouseover(function(){c(this).addClass(B)}).mouseout(function(){c(this).removeClass(B)}).hide();C=S.height()+V.height()+p.outerHeight(o)-p.height();D=T.width()+U.width()+p.outerWidth(o)-p.width();z=n.outerHeight(o);A=n.outerWidth(o);j.css({"padding-bottom":C,"padding-right":D}).hide();F.click(e.next);G.click(e.prev);M.click(e.close);p.children().removeClass(B)};e.position=function(b,d){var i=document.documentElement.clientHeight;i=Math.max(i-a.h-z-C,0)/2+r.scrollTop();var l=Math.max(document.documentElement.clientWidth-a.w-A-D,0)/2+r.scrollLeft();b=j.width()===a.w+A&&j.height()===a.h+z?0:b;x[0].style.width=x[0].style.height="9999px";function f(q){S[0].style.width=V[0].style.width=p[0].style.width=q.style.width;L[0].style.height=K[0].style.height=p[0].style.height=T[0].style.height=U[0].style.height=q.style.height}j.dequeue().animate({width:a.w+A,height:a.h+z,top:i,left:l},{duration:b,complete:function(){f(this);I=g;x[0].style.width=a.w+A+D+"px";x[0].style.height=a.h+z+C+"px";d&&d()},step:function(){f(this)}})};e.resize=function(b){if(H){function d(w){e.position(w,function(){if(H){if(E){q&&n.fadeIn(100);j[0].style.removeAttribute("filter")}p.children().show();if(a.iframe)n.append("<iframe id='cboxIframe'"+(a.scrolling?" ":"scrolling='no'")+" name='iframe_"+(new Date).getTime()+"' frameborder=0 src='"+(a.href||m.href)+"' />");K.hide();L.hide();y.hide();if(h.length>1){W.html(a.current.replace(/\{current\}/,k+1).replace(/\{total\}/,h.length));F.html(a.next);G.html(a.previous);a.slideshow&&y.show()}else{W.hide();F.hide();G.hide()}ba.html(a.title||m.title);c.event.trigger(P);X&&X.call(m);a.transition==="fade"&&j.fadeTo(t,1,function(){E&&j[0].style.removeAttribute("filter")});r.bind(R,function(){e.position(0)})}})}function i(){a.h=a.h||n.height();return a.h}function l(){a.w=a.w||n.width();return a.w}var f,q,t=a.transition==="none"?0:a.speed;r.unbind(R);if(b){n.remove();n=c('<div id="cboxLoadedContent"/>').html(b);n.hide().appendTo(u).css({width:l(),overflow:a.scrolling?"auto":"hidden"}).css({height:i()}).prependTo(p);c("#cboxPhoto").css({cssFloat:"none"});N&&c("select:not(#colorbox select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(Q,function(){this.style.visibility="inherit"});a.transition==="fade"&&j.fadeTo(t,0,function(){d(0)})||d(t);if(a.preloading&&h.length>1){b=k>0?h[k-1]:h[h.length-1];f=k<h.length-1?h[k+1]:h[0];f=c(f).data(s).href||f.href;b=c(b).data(s).href||b.href;Z(f)&&c("<img />").attr("src",f);Z(b)&&c("<img />").attr("src",b)}}else b=setTimeout(function(){var w=n.wrapInner("<div style='overflow:auto'></div>").children();a.h=w.height();n.css({height:a.h});w.replaceWith(w.children());e.position(t)},1)}};e.load=function(){var b,d,i,l=e.resize;I=o;function f(q){var t=c(q),w=t.find("img"),$=w.length;function da(){var ea=new Image;$-=1;if($>=0&&a.preloadIMG){ea.onload=da;ea.src=w[$].src}else l(t)}da()}m=h[k];a=c(m).data(s);ca();c.event.trigger(J);a.h=a.height?v(a.height,"y")-z-C:a.innerHeight?v(a.innerHeight,"y"):g;a.w=a.width?v(a.width,"x")-A-D:a.innerWidth?v(a.innerWidth,"x"):g;a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=v(a.maxWidth,"x")-A-D;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=v(a.maxHeight,"y")-z-C;a.mh=a.h&&a.h<a.mh?a.h:a.mh}b=a.href||c(m).attr("href");K.show();L.show();M.show();if(a.inline){c('<div id="cboxInlineTemp" />').hide().insertBefore(c(b)[0]).bind(J+" "+Q,function(){c(this).replaceWith(n.children())});l(c(b))}else if(a.iframe)l(" ");else if(a.html)f(a.html);else if(Z(b)){d=new Image;d.onload=function(){var q;d.onload=null;d.id="cboxPhoto";c(d).css({margin:"auto",border:"none",display:"block",cssFloat:"left"});if(a.scalePhotos){i=function(){d.height-=d.height*q;d.width-=d.width*q};if(a.mw&&d.width>a.mw){q=(d.width-a.mw)/d.width;i()}if(a.mh&&d.height>a.mh){q=(d.height-a.mh)/d.height;i()}}if(a.h)d.style.marginTop=Math.max(a.h-d.height,0)/2+"px";l(d);h.length>1&&c(d).css({cursor:"pointer"}).click(e.next);if(E)d.style.msInterpolationMode="bicubic"};d.src=b}else c("<div />").load(b,function(q,t){t==="success"?f(this):l(c("<p>Request unsuccessful.</p>"))})};e.next=function(){if(!I){k=k<h.length-1?k+1:0;e.load()}};e.prev=function(){if(!I){k=k>0?k-1:h.length-1;e.load()}};e.slideshow=function(){var b,d,i="cboxSlideshow_";y.bind(aa,function(){y.unbind();clearTimeout(d);j.removeClass(i+"off "+i+"on")});function l(){y.text(a.slideshowStop).bind(P,function(){d=setTimeout(e.next,a.slideshowSpeed)}).bind(J,function(){clearTimeout(d)}).one("click",function(){b();c(this).removeClass(B)});j.removeClass(i+"off").addClass(i+"on")}b=function(){clearTimeout(d);y.text(a.slideshowStart).unbind(P+" "+J).one("click",function(){l();d=setTimeout(e.next,a.slideshowSpeed);c(this).removeClass(B)});j.removeClass(i+"on").addClass(i+"off")};if(a.slideshow&&h.length>1)a.slideshowAuto?l():b()};e.close=function(){c.event.trigger(Q);H=g;c().unbind("keydown.cbox_close keydown.cbox_arrows");r.unbind(R+" resize.cboxie6 scroll.cboxie6");u.css({cursor:"auto"}).fadeOut("fast");j.stop(o,g).fadeOut("fast",function(){n.remove();j.css({opacity:1});p.children().hide();c.event.trigger(aa)})};e.element=function(){return c(m)};e.settings=Y;c(e.init)})(jQuery);;var http_request=false;function makeRequest(url,parameters){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){alert('Your browser does not support AJAX!');return false;}
http_request.onreadystatechange=alertContents;http_request.open('GET',url+parameters,true);http_request.send(null);}
function alertContents(){if(http_request.readyState==4){if(http_request.status==200){var xmlDoc=http_request.responseXML.documentElement;document.getElementById('Basket_Item').innerHTML=xmlDoc.getElementsByTagName("Quantity")[0].childNodes[0].nodeValue;document.getElementById('Basket_Total').innerHTML=xmlDoc.getElementsByTagName("Total")[0].childNodes[0].nodeValue;showToolTip(xmlDoc.getElementsByTagName("MESSAGE")[0].childNodes[0].nodeValue);setTimeout('hideToolTip()',5000);}else{showToolTip('There was a problem with the request.');setTimeout('hideToolTip()',5000);}}
if(http_request.readyState==1){document.getElementById('Basket_Item').innerHTML='<img src="/img/ajax-round.gif" border="0"  />';document.getElementById('Basket_Total').innerHTML='<img src="/img/ajax-round.gif" border="0"  />';}}
function Ajax_do(obj){var getstr="?";for(i=0;i<obj.getElementsByTagName("input").length;i++){if(obj.getElementsByTagName("input")[i].type=="text"){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}
if(obj.getElementsByTagName("input")[i].type=="checkbox"){if(obj.getElementsByTagName("input")[i].checked){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}else{getstr+=obj.getElementsByTagName("input")[i].name+"=&";}}
if(obj.getElementsByTagName("input")[i].type=="radio"){if(obj.getElementsByTagName("input")[i].checked){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}}
if(obj.getElementsByTagName("input")[i].type=="hidden"){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}}
for(i=0;i<obj.getElementsByTagName("select").length;i++){if(obj.getElementsByTagName("select")[i]){var sel=obj.getElementsByTagName("select")[i];getstr+=sel.name+"="+sel.options[sel.selectedIndex].value
+"&";}}
makeRequest('/shp/_basket.php',getstr);}
function showToolTip(text){var obj=document.getElementById('bubble_tooltip');var obj2=document.getElementById('bubble_tooltip_content');obj2.innerHTML=text;obj.style.display='block';var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)
st=0;}
function hideToolTip(){document.getElementById('bubble_tooltip').style.display='none';}
function makeRequest_basket(url,parameters){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){alert('Your browser does not support AJAX!');return false;}
http_request.onreadystatechange=alertContents_basket;http_request.open('GET',url+parameters,true);http_request.send(null);}
function alertContents_basket(){if(http_request.readyState==4){if(http_request.status==200){var xmlDoc=http_request.responseXML.documentElement;if(xmlDoc.getElementsByTagName("MESSAGE")[0]==undefined){document.getElementById('MESSAGE').innerHTML='';document.getElementById('MESSAGE').className='';}else{var message=xmlDoc.getElementsByTagName("MESSAGE")[0].childNodes[0].nodeValue;document.getElementById('MESSAGE').innerHTML=message;document.getElementById('MESSAGE').className='error_div';}
document.getElementById('ship_div').innerHTML=xmlDoc.getElementsByTagName("ship_div")[0].childNodes[0].nodeValue;document.getElementById('total_div').innerHTML=xmlDoc.getElementsByTagName("total_div")[0].childNodes[0].nodeValue;if(document.getElementById('ShippingOptions')){document.getElementById('ShippingOptions').innerHTML="";shpOpt=xmlDoc.getElementsByTagName("ShippingOptions");for(i=0;i<shpOpt.length;i++){shpElement=xmlDoc.getElementsByTagName("ShippingOptions")[i];value='<label><input type="radio" name="shipping" onclick="javascript: submit();" ';value+='value="'+shpElement.getElementsByTagName("id")[0].childNodes[0].nodeValue+'"';value+=shpElement.getElementsByTagName("selected")[0].childNodes[0].nodeValue;value+=' /> ';value+=shpElement.getElementsByTagName("label")[0].childNodes[0].nodeValue;value+='</label><br />';document.getElementById('ShippingOptions').innerHTML+=value;}
if(xmlDoc.getElementsByTagName("sundayDel")[0]){value=xmlDoc.getElementsByTagName("sundayDel")[0].childNodes[0].nodeValue;if(value=='0'){document.getElementById('ShippingOptions').innerHTML+='<label><input type="checkbox" value="1" name="saturday" onclick="javascript: submit();" > Add Saturday Delivery</label>';}else{document.getElementById('ShippingOptions').innerHTML+='<label><input value="1" checked type="checkbox" name="saturday" onclick="javascript: submit();" > Add Saturday Delivery</label>';}}
lineOpt=xmlDoc.getElementsByTagName("line");for(i=0;i<lineOpt.length;i++){lineElement=xmlDoc.getElementsByTagName("line")[i];id=lineElement.getElementsByTagName("id")[0].childNodes[0].nodeValue;document.getElementById('dis_'+id).innerHTML=lineElement.getElementsByTagName("dis")[0].childNodes[0].nodeValue;document.getElementById('vat_'+id).innerHTML=lineElement.getElementsByTagName("vat")[0].childNodes[0].nodeValue;document.getElementById('price_'+id).innerHTML=lineElement.getElementsByTagName("total")[0].childNodes[0].nodeValue;document.getElementById('qty'+id).selectedIndex=lineElement.getElementsByTagName("qty")[0].childNodes[0].nodeValue-1;}}
if(xmlDoc.getElementsByTagName("weight")[0]&&document.getElementById('weight')){document.getElementById('weight').innerHTML=xmlDoc.getElementsByTagName("weight")[0].childNodes[0].nodeValue;}
if(xmlDoc.getElementsByTagName("DISCOUNT_DESC")[0]&&document.getElementById('DISCOUNT_DESC')){document.getElementById('DISCOUNT_DESC').innerHTML=xmlDoc.getElementsByTagName("DISCOUNT_DESC")[0].childNodes[0].nodeValue;}
if(xmlDoc.getElementsByTagName("DISCOUNT_SAVE")[0]&&document.getElementById('DISCOUNT_SAVE')){document.getElementById('DISCOUNT_SAVE').innerHTML=xmlDoc.getElementsByTagName("DISCOUNT_SAVE")[0].childNodes[0].nodeValue;}
if(xmlDoc.getElementsByTagName("shipError")[0]){document.getElementById('GO_CHECKOUT').style.display="none";document.getElementById('GO_CHECKOUT_ERROR').style.display="block";}else{document.getElementById('GO_CHECKOUT').style.display="block";document.getElementById('GO_CHECKOUT_ERROR').style.display="none";}}else{document.getElementById('ship_div').innerHTML='system Error!';}}
if(http_request.readyState==1){document.getElementById('ship_div').innerHTML='<img src="/img/ajax-round.gif" border="0" " />';document.getElementById('total_div').innerHTML='<img src="/img/ajax-round.gif" border="0"  />';}}
function Ajax_do_basket(obj){var getstr="?";for(i=0;i<obj.getElementsByTagName("input").length;i++){if(obj.getElementsByTagName("input")[i].type=="text"){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}
if(obj.getElementsByTagName("input")[i].type=="checkbox"){if(obj.getElementsByTagName("input")[i].checked){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}else{getstr+=obj.getElementsByTagName("input")[i].name+"=&";}}
if(obj.getElementsByTagName("input")[i].type=="radio"){if(obj.getElementsByTagName("input")[i].checked){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}}
if(obj.getElementsByTagName("input")[i].type=="hidden"){getstr+=obj.getElementsByTagName("input")[i].name+"="
+obj.getElementsByTagName("input")[i].value+"&";}}
for(i=0;i<obj.getElementsByTagName("select").length;i++){if(obj.getElementsByTagName("select")[i]){var sel=obj.getElementsByTagName("select")[i];getstr+=sel.name+"="+sel.options[sel.selectedIndex].value
+"&";}}
makeRequest_basket('/shp/_basket.php',getstr);}
function makeRequest_remove(url,parameters){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/xml');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){alert('Your browser does not support AJAX!');return false;}
http_request.onreadystatechange=alertContents_remove
http_request.open('GET',url+parameters,true);http_request.send(null);}
function alertContents_remove(){if(http_request.readyState==4){if(http_request.status==200){var xmlDoc=http_request.responseXML.documentElement;document.getElementById('ship_div').innerHTML=xmlDoc.getElementsByTagName("ship_div")[0].childNodes[0].nodeValue;document.getElementById('total_div').innerHTML=xmlDoc.getElementsByTagName("total_div")[0].childNodes[0].nodeValue;}else{document.getElementById('ship_div').innerHTML='system Error!';}}
if(http_request.readyState==1){document.getElementById('ship_div').innerHTML='<img src="/img/ajax-round.gif" border="0" " />';document.getElementById('total_div').innerHTML='<img src="/img/ajax-round.gif" border="0"  />';}}
function Ajax_do_remove(id){var getstr="?id="+id+'&function=remove';var el=document.getElementById('div_'+id);el.parentNode.removeChild(el);makeRequest_remove('/shp/_basket.php',getstr);}
function changePrice(price,price_rr,yousave,instock){if(price){document.getElementById('PRICE_DIV').innerHTML=price;}
if(price_rr){document.getElementById('PRICE_RR_DIV').innerHTML=price_rr;}else{document.getElementById('PRICE_RR_DIV').innerHTML='';}
if(yousave){document.getElementById('YOU_SAVING_DIV').innerHTML=yousave;}else{document.getElementById('YOU_SAVING_DIV').innerHTML='';}
if(instock!="0"){document.getElementById('INSTOCK_DIV').innerHTML='IN STOCK';}else{document.getElementById('INSTOCK_DIV').innerHTML='OUT OF STOCK';}}
function changePrice2(price,price_vat,price_rr,price_rr_vat,stock){if(price){document.getElementById('PRICE_DIV_NA').innerHTML=price;}else{document.getElementById('PRICE_DIV_NA').innerHTML='';}
if(price_vat){document.getElementById('PRICE_DIV_VAT').innerHTML=price_vat;}else{document.getElementById('PRICE_DIV_VAT').innerHTML='';}
if(price_rr){document.getElementById('PRICE_RR_DIV_NA').innerHTML=price_rr;}else{document.getElementById('PRICE_RR_DIV_NA').innerHTML='';}
if(price_rr_vat){document.getElementById('PRICE_RR_DIV_VAT').innerHTML=price_rr_vat;}else{document.getElementById('PRICE_RR_DIV_VAT').innerHTML='';}
if(stock){document.getElementById('DevliveryDiv').innerHTML='<img src="/assets/img/s_tick.jpg"/>';}else{document.getElementById('DevliveryDiv').innerHTML='<img src="/assets/img/s_cross.jpg"/>';}}
function makeRequestBrand(url,parameters){http_request=false;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!http_request){alert('Your browser does not support AJAX!');return false;}
http_request.onreadystatechange=alertContentsBrand;http_request.open('GET',url+parameters,true);http_request.send(null);}
function alertContentsBrand(){if(http_request.readyState==4){if(http_request.status==200){var obj2=document.getElementById('Brand_cat');obj2.innerHTML=http_request.responseText;}else{showToolTip('There was a problem with the request.');}}
if(http_request.readyState==1){document.getElementById('Brand_cat').innerHTML='<img src="/img/ajax-loader2.gif" border="0"  />';}}
function Ajax_do_Brand(obj,page){var getstr="?";getstr+='brand='+obj.options[obj.selectedIndex].value;makeRequestBrand('/scripts/_AdvSrch.php',getstr);}