// JavaScript Document

<!-- Keeps page from opening inside another web site's frame -->
if(top.location != self.location) {top.location = self.location
}


<!--Nav4 & CSS bug fix reloads the window if Nav4 resized -->
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


<!-- hide mailto address. Different versions are for differet CSS classes. -->
var user;
var domain;
var suffix;
var cont;
<!-- links in regular text area -->
function hidemail(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + cont +  '</a>' );
}

<!-- page footer except home layout -->
function hidemail1(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="smallprint1"  >' + cont +  '</a>' );
}


<!-- page footer for home layout -->
function hidemail2(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="smallprint"  >' + cont +  '</a>' );
}

<!-- top bar sing white text -->
function hidemailtop(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbar"  >' + cont +  '</a>' );
}

<!-- top bar accessory section-->
function hidemailtopacc(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbaracc"  >' + cont +  '</a>' );
}

<!-- top bar freelander section-->
function hidemailtopfree(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbarfree"  >' + cont +  '</a>' );
}

<!-- top bar range rover section-->
function hidemailtoprr(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbarrr"  >' + cont +  '</a>' );
}

<!-- top bar defender section-->
function hidemailtopdef(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbardef"  >' + cont +  '</a>' );
}

<!-- top bar off road secton -->
function hidemailtopor(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbaror"  >' + cont +  '</a>' );
}

<!-- top bar discovery secton -->
function hidemaildisco(user, domain, suffix, cont){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + ' " class="tbardisco"  >' + cont +  '</a>' );
}

<!-- launch price lookup window -->
function launch() {
open('http://www.britishpacific.com/xcart/customer/home1.php', 'search',  'resizable=yes, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=225, height=375') 
 }
 
<!-- preload image at page launch script -->
 function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
