<!--
// Being onerror replace missing image
function noSmallImage(element) {
	(element.src) = "images/nosmallimage.gif";
}

function noLargeImage(element) {
	(element.src) = "images/nolargeimage.gif";
}

function noLogo(element) {
	(element.src) = "images/spacer.gif";
}
// End onerror replace missing image

// Begin Preload Images
image1 = new Image();
image1.src = "images/spacer.gif";

image2 = new Image();
image2.src = "images/callnowdivider.gif";

image3 = new Image();
image3.src = "images/go_button_BlueTheme.gif";

image4 = new Image();
image4.src = "images/go_button_OrangeTheme.gif";

image5 = new Image();
image5.src = "images/leftnavarrow1.gif";

image6 = new Image();
image6.src = "images/leftnavarrow2.gif";

image7 = new Image();
image7.src = "images/leftnavarrow_BlueTheme.gif";

image8 = new Image();
image8.src = "images/privacytag.gif";

image9 = new Image();
image9.src = "images/securitylock.gif";

image10 = new Image();
image10.src = "images/shoppingcart.gif";

image11 = new Image();
image11.src = "images/nolargeimage.gif";

image12 = new Image();
image12.src = "images/nosmallimage.gif";
// End Preload Images

// Begin Tabs Menu
function ReverseDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = ""; }
else { document.getElementById(d).style.display = "none"; }
}

function clearAllTabs(menu) {
var aAnchor=document.getElementById('navcontainer'+menu).getElementsByTagName('a');
var aDiv=document.getElementById('content1').getElementsByTagName('div');
    for(k=0; k<aAnchor.length; k++) {
        aAnchor[k].className='normal';
        aDiv[k].style.display='none';
    }
}
function selectTab(menu, id) {
    clearAllTabs(menu);
    document.getElementById('link'+id).className='current';
    document.getElementById('tab'+id).style.display='inline';
}
// End Tabs Menu

// Begin Popup
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
// End Popup

// Being Textarea Counter
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}
// End Textarea Counter

// Begin Zoom Window
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,scrollnbars'
win = window.open(mypage,myname,settings)
}
                    
var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_drop(e){
if (ie5&&dragapproved&&event.button==1){
document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx+"px"
document.getElementById("dwindow").style.top=tempy+e.clientY-offsety+"px"
}
}

function initializedrag(e){
offsetx=ie5? event.clientX : e.clientX
offsety=ie5? event.clientY : e.clientY
document.getElementById("dwindowcontent").style.display="none" //extra
tempx=parseInt(document.getElementById("dwindow").style.left)
tempy=parseInt(document.getElementById("dwindow").style.top)

dragapproved=true
document.getElementById("dwindow").onmousemove=drag_drop
}

function loadwindow(url,width,height){
if (!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{
document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width+"px"
document.getElementById("dwindow").style.height=initialheight=height+"px"
document.getElementById("dwindow").style.left="165px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+179+"px" : iecompattest().scrollTop*1+179+"px"
document.getElementById("cframe").src=url
}
}

function maximize(){
if (minrestore==0){
minrestore=1 //maximize window
document.getElementById("maxname").setAttribute("src","restore.gif")
document.getElementById("dwindow").style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
document.getElementById("dwindow").style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
}
else{
minrestore=0 //restore window
document.getElementById("maxname").setAttribute("src","max.gif")
document.getElementById("dwindow").style.width=initialwidth
document.getElementById("dwindow").style.height=initialheight
}
document.getElementById("dwindow").style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
document.getElementById("dwindow").style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
}

function closeit(){
document.getElementById("dwindow").style.display="none"
}

function stopdrag(){
dragapproved=false;
document.getElementById("dwindow").onmousemove=null;
document.getElementById("dwindowcontent").style.display="" //extra
}
// End Zoom Window
//-->
