<!--

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}


function attachEventListener(target,eventType,functionRef,capture){
	if(target==null){return}
	if (typeof(target.attachEvent) != "undefined") {
		//Man, I hate IE
		var functionString=eventType+functionRef;
		target["e"+functionString]=functionRef;
		target[functionString]=function(event){
			if(typeof event=='undefined'){
				event=window.event;
			}
			target["e"+functionString](event);
		};
		target.attachEvent("on"+eventType,target[functionString]);
	} else if (typeof target.addEventListener != "undefined") {
		target.addEventListener(eventType,functionRef,capture);
	}
}


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];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  return window.open(theURL,winName,features);
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function renderStateList() {
        var values = new Array( "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "HI", "IA", "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", "WV", "WY" ) ;
        var captions = new Array( "Alaska", "Alabama", "Arkansas", "Arizona", "California", "Colorado", "Connecticut", "District of Columbia", "Delaware", "Florida", "Georgia", "Hawaii", "Iowa", "Idaho", "Illinois", "Indiana", "Kansas", "Kentucky", "Louisiana", "Massachusetts", "Maryland", "Maine", "Michigan", "Minnesota", "Missouri", "Mississippi", "Montana", "North Carolina", "North Dakota", "Nebraska", "New Hampshire", "New Jersey", "New Mexico", "Nevada", "New York", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Virginia", "Vermont", "Washington", "Wisconsin", "West Virginia", "Wyoming" ) ;
        var buffer = "" ;
        for ( var i = 0 ; i < values.length ; i++ ) {
                buffer += "<option value=\"" + values[ i ] + "\">" + captions[ i ] + "</option>" ;
        }
        return buffer ;
}

function renderFlashTag( Movie, Width, Height, Params ) {
        var buffer = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + Width + '" height="' + Height + '">' ;
        buffer += '<param name="movie" value="' + Movie + '">' ;
        var pairs = Params.split( ';' ) ;
        for ( var i = 0 ; i < pairs.length ; i++ ) {
                var name = pairs[ i ].split( '=' )[ 0 ] ;
                var value = pairs[ i ].split( '=' )[ 1 ] ;
                buffer += '<param name="' + name + '" value="' + value + '">' ;
        }
        buffer += '<embed src="' + Movie + '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + Width + '" height="' + Height + '" ' ;
        for ( var i = 0 ; i < pairs.length ; i++ ) {
                var name = pairs[ i ].split( '=' )[ 0 ] ;
                var value = pairs[ i ].split( '=' )[ 1 ] ;
                buffer += name + '="' + value + '" ' ;
        }
        buffer += '></embed></object>' ;
        return buffer ;
}


function privacy() {
        var newWindow = MM_openBrWindow( 'privacy.php', '_privacy', 'width=650,height=450,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0' );
        newWindow.focus();
}

function legal() {
        var newWindow = MM_openBrWindow( 'legal.php', '_copyright', 'width=650,height=450,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0' );
        newWindow.focus();
}

function contactus() {
        var newWindow = MM_openBrWindow( 'contact.php', '_contactus', 'width=613,height=400,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0' );
        newWindow.focus();
}

function bigpicture( params ) {

        var newWindow = MM_openBrWindow( 'imgpopup.php'+params, '_bigpicture', 'width=600,height=500,toolbar=0,location=0,directories=0,status=0,menuBar=0,resizable=0,left=10,top=10,screenX=10,screenY=10,scrollbars=no, resize=no');
        newWindow.focus();
}
function customer_service() {
        var newWindow = MM_openBrWindow( 'shippolicy.html', '_service', 'width=850,height=650,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0' );
        newWindow.focus();
}
//-->