<!--


// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = 'images/fader1.jpg';
Picture[2]  = 'images/fader2.jpg';
Picture[3]  = 'images/fader3.jpg';
Picture[4]  = 'images/fader4.jpg';
Picture[5]  = 'images/fader5.jpg';
Picture[6]  = 'images/fader6.jpg';
Picture[7]  = 'images/fader7.jpg';
Picture[8]  = 'images/fader8.jpg';
Picture[9]  = 'images/fader9.jpg';
Picture[10]  = 'images/fader10.jpg';
Picture[11]  = 'images/fader11.jpg';
Picture[12]  = 'images/fader12.jpg';
Picture[13]  = 'images/fader13.jpg';
Picture[14]  = 'images/fader14.jpg';
Picture[15]  = 'images/fader15.jpg';
Picture[16]  = 'images/fader16.jpg';
Picture[17]  = 'images/fader17.jpg';
Picture[18]  = 'images/fader18.jpg';
Picture[19]  = 'images/fader19.jpg';
Picture[20]  = 'images/fader20.jpg';
Picture[21]  = 'images/fader21.jpg';
Picture[22]  = 'images/fader22.jpg';





// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "This is the first caption.";
Caption[2]  = "This is the first caption.";
Caption[3]  = "This is the first caption.";
Caption[4]  = "This is the first caption.";
Caption[5]  = "This is the first caption.";
Caption[6]  = "This is the first caption.";
Caption[7]  = "This is the first caption.";
Caption[8]  = "This is the first caption.";
Caption[9]  = "This is the first caption.";
Caption[10]  = "This is the first caption.";
Caption[11]  = "This is the first caption.";
Caption[12]  = "This is the first caption.";
Caption[13]  = "This is the first caption.";
Caption[14]  = "This is the first caption.";
Caption[15]  = "This is the first caption.";
Caption[16]  = "This is the first caption.";
Caption[17]  = "This is the first caption.";
Caption[18]  = "This is the first caption.";
Caption[19]  = "This is the first caption.";
Caption[20]  = "This is the first caption.";
Caption[21]  = "This is the first caption.";
Caption[22]  = "This is the first caption.";


// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;

if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}



     




var strShipFirst = "";
var strShipLast = "";
var strShipAddress = "";
var strShipCity = "";
var strShipPostalCode = "";
var strShipState = "";
var shipprovince = "";
var strShipStateIndex = 0;
var strShipCountry = "";
var strShipCountryIndex = 0;

function InitSaveVariables(form) {
strShipFirst = form.strShipFirst.value;
strShipLast = form.strShipLast.value;
strShipAddress = form.strShipAddress.value;
strShipCity = form.strShipCity.value;
strShipPostalCode = form.strShipPostalCode.value;
shipprovince = form.shipprovince.value;
strShipStateIndex = form.strShipState.selectedIndex;
strShipState = form.strShipState[strShipStateIndex].value;
strShipCountry = form.strShipCountry[strShipCountryIndex].value;
}

function ShipToBillPerson(form) {
if (form.copy.checked) {
InitSaveVariables(form);
form.strShipFirst.value = form.strFirst.value;
form.strShipLast.value = form.strLast.value;
form.strShipAddress.value = form.strAddress1.value;
form.strShipCity.value = form.strCity.value;
form.strShipPostalCode.value = form.strPostalCode.value;
form.shipprovince.value = form.province.value;
form.strShipState.selectedIndex = form.strState.selectedIndex;
form.strShipCountry.selectedIndex = form.strCountry.selectedIndex;
}
else {
form.strShipFirst.value = strShipFirst;
form.strShipLast.value = strShipLast;
form.strShipAddress.value = strShipAddress;
form.strShipCity.value = strShipCity;
form.strShipPostalCode.value = strShipPostalCode;
form.shipprovince.value = shipprovince;
form.strShipState.selectedIndex = strShipStateIndex;
form.strShipCountry.selectedIndex = strShipCountryIndex;
   }
}

function checkouts()
{
	if (document.SaleForm.strNameOnCc.value.length == 0)
	{
		alert('You must enter your NAME ON CREDIT CARD to continue.');
		document.SaleForm.strNameOnCc.focus();
		return(false);
	}
	if (document.SaleForm.bzip.value.length == 0)
	{
		alert('You must enter your CREDIT CARD ZIP CODE to continue.');
		document.SaleForm.bzip.focus();
		return(false);
	}
	if (document.SaleForm.cardnumber.value.length == 0)
	{
		alert('You must enter your CREDIT CARD NUMBER to continue.');
		document.SaleForm.cardnumber.focus();
		return(false);
	}
	if (document.SaleForm.expmonth.value.length == 0)
	{
		alert('You must enter your CREDIT CARD EXP MONTH to continue.');
		document.SaleForm.expmonth.focus();
		return(false);
	}
	if (document.SaleForm.expyear.value.length == 0)
	{
		alert('You must enter your CREDIT CARD EXP YEAR to continue.');
		document.SaleForm.expyear.focus();
		return(false);
	}
    if (document.SaleForm.cvv2.value.length == 0)
	{
		alert('You must enter your CREDIT CARD CVV2 CODE from the back to continue.');
		document.SaleForm.cvv2.focus();
		return(false);
	}
	

	return (true);
} 

function displayPopup3(url, height, width) {
properties = "toolbar=0,location=0,scrollbars=1,height=" + height;
properties = properties + ",width=" + width;
properties = properties + ",left=50,top=50";
popupHandle = open(url, "Upload_Image", properties);
}


function Validate_Form()
{
	if (document.form.strContactPerson.value.length == 0)
	{
		alert('You must enter A CONTACT PERSON to continue.');
		document.form.strContactPerson.focus();
		return(false);
	}
	if (document.form.strPhoneNumber.value.length == 0)
	{
		alert('You must enter A PHONE NUMBER to continue.');
		document.form.strPhoneNumber.focus();
		return(false);
	}
	if (document.form.strEmailAddress.value.length == 0 || document.form.strEmailAddress.value.indexOf(".") == -1 || document.form.strEmailAddress.value.indexOf("@") == -1)
	{
		alert('You must enter YOUR E-MAIL ADDRESS containing "@" and "." to continue.');
		document.form.strEmailAddress.focus();
		return(false);
	}
	if (document.form.strTypeofRequest.selectedIndex == 0) {
        alert('You must enter SELECT YOUR REQUEST TYPE to continue.');
		document.form.strTypeofRequest.focus();
		return(false);
    }
	if (document.form.strTypeofMarketing.selectedIndex == 0) {
        alert('You must enter HOW YOU FOUND US to continue.');
		document.form.strTypeofMarketing.focus();
		return(false);
    }
	if (document.form.strRequest.value.length == 0)
	{
		alert('You must enter A REQUEST to continue.');
		document.form.strRequest.focus();
		return(false);
	}
	return (true);
} 

function Validate_NewsForm()
{
if (document.formnews.email.value.length == 0 || document.formnews.email.value.indexOf(".") == -1 || document.formnews.email.value.indexOf("@") == -1)
	{
		alert('You must enter YOUR E-MAIL ADDRESS containing "@" and "." to continue.');
		document.formnews.email.focus();
		return(false);
	}
	return (true);
} 

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){

	if(pos=="random"){
		LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){
		LeftPosition=0;
		TopPosition=20}

	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}}
	
	
//-->









































