sfHover=function(){var b=document.getElementById("top_menu").getElementsByTagName("TD");for(var a=0;a<b.length;a++){b[a].onmouseover=function(){this.className+=" sfhover"};b[a].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}};if(window.attachEvent){window.attachEvent("onload",sfHover)}function getRequestObject(){var localxmlhttp=null;
/*@cc_on
  @if (@_jscript_version >= 5)
    try {
      localxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        localxmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        localxmlhttp = false;
      }
    }
  @else
  localxmlhttp = false;
  @end @*/
if(!localxmlhttp&&typeof XMLHttpRequest!="undefined"){try{localxmlhttp=new XMLHttpRequest()}catch(e){localxmlhttp=false}}return localxmlhttp}function removeChildrenFromNode(a){if(a!=undefined&&a!=null){while(a.hasChildNodes()){a.removeChild(a.firstChild)}}}function textToUrlPath(c){c=c.toLowerCase();var d=[/ /g,/[äáàâãå]/g,/[ëéèê]/g,/[ïíìî]/g,/[öóòôø]/g,/[üúùû]/g,/æ/g,/ß/g,/ñ/g,/ç/g,/š/g,/ý/g,/[.',]/g,/&/g,/[^\w\d\-\(\)]/g];var b=["_","a","e","i","o","u","ae","ss","n","c","s","y","","&amp;",""];for(var a=0;a<d.length;a++){c=c.replace(d[a],b[a])}return c}function showNoscript(a){document.getElementById(a).innerHTML=document.getElementsByTagName("noscript")[0].innerHTML.replace(/&gt;/g,">").replace(/&lt;/g,"<")}function restrictOptgroup(d,b){var e=document.getElementById(d);var a=e.getElementsByTagName("optgroup");var c;for(c=0;c<a.length;c++){if(a[c].label==b){a[c].style.display="block"}else{a[c].style.display="none"}}}function populateProvinces(b,c){document.getElementById("countryCell").innerHTML=c;document.getElementById("provinceCell").innerHTML="";document.getElementById("townCell").innerHTML="";var a=getRequestObject();if(null==a){alert("Javascript error. Unable to use AJAX.")}else{a.open("GET","/cgi-bin/ajax/getprovinces.pl?country="+c,true);a.onreadystatechange=function(){if(4==a.readyState){var d=document.getElementById(b);removeChildrenFromNode(d);var j=document.createElement("option");j.setAttribute("value","");d.appendChild(j);var e=a.responseText.split("\n");for(var f=0;f<e.length-1;f++){var g=document.createElement("option");g.setAttribute("value",e[f]);var h=document.createTextNode(e[f]);g.appendChild(h);d.appendChild(g)}}};a.send(null)}}function populateTowns(c,a,d){document.getElementById("provinceCell").innerHTML=a;document.getElementById("townCell").innerHTML="";var b=getRequestObject();if(null==b){alert("Javascript error. Unable to use AJAX.")}else{b.open("GET","/cgi-bin/ajax/gettowns.pl?country="+d+"&province="+a,true);b.onreadystatechange=function(){if(4==b.readyState){var g=document.getElementById(c);removeChildrenFromNode(g);var k=document.createElement("option");k.setAttribute("value","");g.appendChild(k);var f=b.responseText.split("\n");for(var h=0;h<f.length-1;h++){var j=document.createElement("option");j.setAttribute("value",f[h]);var e=document.createTextNode(f[h]);j.appendChild(e);g.appendChild(j)}}};b.send(null)}}function setTown(){var b=document.getElementById("town");var d=document.getElementById("townSuggestion");if(""==b.options[b.selectedIndex].value||0==b.options[b.selectedIndex].value||null==b.options[b.selectedIndex].value){document.getElementById("townCell").innerHTML=d.value}else{document.getElementById("townCell").innerHTML=b.options[b.selectedIndex].value}var c=new GClientGeocoder();c.reset();var f=document.getElementById("town");var e=document.getElementById("province");var a=document.getElementById("country");c.getLatLng((f.options[f.selectedIndex].value||d.value)+","+e.options[e.selectedIndex].value+","+a.options[a.selectedIndex].value,function(g){window.globalMapArray[0].clearOverlays();window.globalMapArray[0].setCenter(g,12);var h=new GMarker(window.globalMapArray[0].getCenter(),{draggable:true});GEvent.addListener(h,"dragend",function(i){document.getElementById("googleMapLocator_Latitude").value=i.lat();document.getElementById("googleMapLocator_Longitude").value=i.lng()});window.globalMapArray[0].addOverlay(h)})}function param(){var e=location.search.substring(1).replace(/\+/g," ");var a=e.split("&"),d,b,c;for(e={},d=0;d<a.length;d++){c=a[d].split("=",2);b=unescape(c[0]);if(!e[b]){e[b]=[]}if(c.length>1){e[b][e[b].length]=unescape(c[1])}else{e[b][e[b].length]=true}}return e}function productsMore(a){$("#description_"+a).css("display","table-row");$("#imageCell_"+a).attr("rowspan",2);$("#productImageIcon_"+a).css("display","none");$("#productImage_"+a).css("display","inline");$("#more_"+a).css("display","none");$("#less_"+a).css("display","inline")}function productsLess(a){$("#imageCell_"+a).attr("rowspan",1);$("#description_"+a).css("display","none");$("#productImageIcon_"+a).css("display","inline");$("#productImage_"+a).css("display","none");$("#more_"+a).css("display","inline");$("#less_"+a).css("display","none")}function showProductImages(){$('tr[id^="description_"]').css("display","table-row");$('td[id^="imageCell_"]').attr("rowspan",2);$('img[id^="productImageIcon_"]').css("display","none");$('img[id^="productImage_"]').css("display","inline");$('a[id^="more_"]').css("display","none");$('a[id^="less_"]').css("display","inline");$(".showProductImages").css("display","none");$(".hideProductImages").css("display","inline")}function hideProductImages(){$('td[id^="imageCell_"]').attr("rowspan",1);$('tr[id^="description_"]').css("display","none");$('img[id^="productImageIcon_"]').css("display","inline");$('img[id^="productImage_"]').css("display","none");$('a[id^="more_"]').css("display","inline");$('a[id^="less_"]').css("display","none");$(".showProductImages").css("display","inline");$(".hideProductImages").css("display","none")};$(document).ready(function() {$('.tabs').tabs();});
