function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=320');");
}

function popUp2(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=220');");
}

function openWin(imgWidth,imgHeight,imgSrc) {
var winTop = (screen.width / 2) - parseInt(imgWidth);
var winLeft = (screen.height / 2) - parseInt(imgHeight);
var windowFeatures = eval('"width=' + imgWidth + ",height=" + imgHeight + ',"');
windowFeatures+="left=" + winLeft + ",top=" + winTop;
img = "images/" + imgSrc;
var newWindow = window.open(img,"myWindow",windowFeatures);
}

function openWin2(imgWidth,imgHeight,imgSrc) {
	var winTop = (screen.width / 2) - parseInt(imgWidth);
	var winLeft = (screen.height / 2) - parseInt(imgHeight);
	var windowFeatures = eval('"width=' + imgWidth + ",height=" + imgHeight + ',"');
	windowFeatures+="left=" + winLeft + ",top=" + winTop;
	img = "images/lg/" + imgSrc;
	var newWindow = window.open(img,"myWindow",windowFeatures);
}

function increase()
{
var intQty = document.frmAddItemToCart.intQty.value;
intQty++;
document.frmAddItemToCart.intQty.value = intQty;
}
function decrease()
{
var intQty = document.frmAddItemToCart.intQty.value;
intQty = intQty - 1;
if(intQty < 0)
intQty = 0;
document.frmAddItemToCart.intQty.value = intQty;
}
function loadProGallery(intProductID)
{
var strURL = 'ProductImageGallery.asp?ProductID=' + intProductID + '&GalleryItem=1';
window.open(strURL,"","width=400,height=355,resizable=yes,scrollbars=yes,location=no,true")
}
function valAddProd()
{
var objH = document.frmAddItemToCart.intQty;
if(IsNumeric(objH.value)==false)
{
alert('Please Only Enter Numeric Values For The Qty Box!');
objH.value = objH.defaultValue;
objH.focus();
objH.select();
return false;
}
else
{
return true;
}
}
function validateMin(intCalledFrom)
{
if (document.frmAddItemToCart.intQty.value < 1)
{
switch (intCalledFrom)
{
case 1:
alert('You must add at least 1 of this product to your wish list.');
break;
default:
alert('You Must Order At Least 1 of this Product to add it to your cart.');
}
document.frmAddItemToCart.intQty.value = "1";
document.frmAddItemToCart.intQty.focus();
return false;
}
try
{
return validatePersonalizationQuestionsNow();
}
catch(err) {}
}


var imgChange = new Array(3)
	imgChange[0] = new Image;
	imgChange[0] = "images/btnJsInfoDetailsOn.gif";
	imgChange[1] = new Image;
	imgChange[1] ="images/btnJsInfoDetailsOff.gif";
	imgChange[2] = new Image;
	imgChange[2] ="images/btnJsInfoDigitalPumpOn.gif";
	imgChange[3] = new Image;
	imgChange[3] = "images/btnJsInfoDigitalPumpOff.gif";
	imgChange[4] = new Image;
	imgChange[4] = "images/btnJsInfoAirChambersOn.gif";
	imgChange[5] = new Image;
	imgChange[5] = "images/btnJsInfoAirChambersOff.gif";
	imgChange[6] = new Image;
	imgChange[6] = "images/btnJsInfoFoundationOn.gif";
	imgChange[7] = new Image;
	imgChange[7] = "images/btnJsInfoFoundationOff.gif";
	imgChange[8] = new Image;
	imgChange[8] = "images/btnJsInfoSlingRailOn.gif";
	imgChange[9] = new Image;
	imgChange[9] = "images/btnJsInfoSlingRailOff.gif";
	imgChange[10] = new Image;
	imgChange[10] = "images/btnJsInfo30NightRestTestOn.gif";
	imgChange[11] = new Image;
	imgChange[11] = "images/btnJsInfo30NightRestTestOff.gif";
	imgChange[12] = new Image;
	imgChange[12] = "images/btnJsInfoWarrantyOn.gif";
	imgChange[13] = new Image;
	imgChange[13] = "images/btnJsInfoWarrantyOff.gif";
	imgChange[14] = new Image;
	imgChange[14] = "images/btnJsInfoCoolmaxOn.gif";
	imgChange[15] = new Image;
	imgChange[15] = "images/btnJsInfoCoolmaxOff.gif";
	imgChange[16] = new Image;
	imgChange[16] = "images/btnJsInfoOutlastOn.gif";
	imgChange[17] = new Image;
	imgChange[17] = "images/btnJsInfoOutlastOff.gif";
	imgChange[18] = new Image;
	imgChange[18] = "images/btnJsInfoRiskFreeOn.gif";
	imgChange[19] = new Image;
	imgChange[19] = "images/btnJsInfoRiskFreeOff.gif";
	imgChange[20] = new Image;
	imgChange[20] = "images/btnJsInfoAdjustableOn.gif";
	imgChange[21] = new Image;
	imgChange[21] = "images/btnJsInfoAdjustableOff.gif";

var imgHover = new Array(3)
	imgHover[0] = new Image;
	imgHover[0] = "images/btnJsInfoDetailsHover.gif";
	imgHover[1] = new Image;
	imgHover[1] = "images/btnJsInfoDigitalPumpHover.gif";
	imgHover[2] = new Image;
	imgHover[2] = "images/btnJsInfoAirChambersHover.gif";
	imgHover[3] = new Image;
	imgHover[3] = "images/btnJsInfoFoundationHover.gif";
	imgHover[4] = new Image;
	imgHover[4] = "images/btnJsInfoSlingRailHover.gif";
	imgHover[5] = new Image;
	imgHover[5] = "images/btnJsInfo30NightRestTestHover.gif";
	imgHover[6] = new Image;
	imgHover[6] = "images/btnJsInfoWarrantyHover.gif";
	imgHover[7] = new Image;
	imgHover[7] = "images/btnJsInfoCoolmaxHover.gif";
	imgHover[8] = new Image;
	imgHover[8] = "images/btnJsInfoOutlastHover.gif";
	imgHover[9] = new Image;
	imgHover[9] = "images/btnJsInfoRiskFreeHover.gif";
	imgHover[10] = new Image;
	imgHover[10] = "images/btnJsInfoAdjustableHover.gif";

var imgThumb = new Array(3)
	imgThumb[1] = new Image;
	imgThumb[1] = "images/hoverDescPump.gif";
	imgThumb[2] = new Image;
	imgThumb[2] = "images/hoverDescChamber.gif";
	imgThumb[3] = new Image;
	imgThumb[3] = "images/hoverDescFoundation.gif";
	imgThumb[4] = new Image;
	imgThumb[4] = "images/hoverDescSling.gif";
	imgThumb[5] = new Image;
	imgThumb[5] = "images/icon90NightTest.gif";
	imgThumb[6] = new Image;
	imgThumb[6] = "images/icon25YearWarranty.gif";
	imgThumb[7] = new Image;
	imgThumb[7] = "images/sealTrulyRiskFree.gif";
	imgThumb[8] = new Image;
	imgThumb[8] = "images/thumbAdjustableFrame.jpg";

function changeItem(element, arrItem)
{
    //preLoadImages();

	document.getElementById("imgDetails").src = imgChange[1];
	document.getElementById("imgPump").src = imgChange[3];
    document.getElementById("imgChambers").src = imgChange[5];
    document.getElementById("imgFoundation").src = imgChange[7];
    document.getElementById("imgSlingRail").src = imgChange[9];
    document.getElementById("img30NightRestTest").src = imgChange[11];
    document.getElementById("imgWarranty").src = imgChange[13];
    if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
    if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
    if (document.getElementById("imgRiskFree"))document.getElementById("imgRiskFree").src = imgChange[19];
    if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
	
	document.getElementById('divHidden').innerHTML = tabSelected[arrItem];
	document.getElementById('hoverDesc').innerHTML = textChange[arrItem];
	
	switch (element.id){
		case "imgDetails":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgDetails").src = imgChange[0];
				//document.getElementById("divThumb").style.visibility = "hidden"; 
		        //document.write(document.getElementById("imgDetails").src);
		    }
			else
			{
			    document.getElementById("imgDetails").src = imgChange[1];
			    
			}

			break;
		case "imgPump":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgPump").src = imgChange[2];
				document.getElementById("imgThumb").src = imgThumb[1];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[1] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgPump").src = imgChange[3];
			}
			break;
		case "imgChambers":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgChambers").src = imgChange[4];
				document.getElementById("imgThumb").src = imgThumb[2];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[2] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgChambers").src = imgChange[5];
			}
			break;
		case "imgFoundation":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgFoundation").src = imgChange[6];
				document.getElementById("imgThumb").src = imgThumb[3];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[3] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgFoundation").src = imgChange[7];
			}
			break;
        case "imgSlingRail":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgSlingRail").src = imgChange[8];
				document.getElementById("imgThumb").src = imgThumb[4];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[4] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgSlingRail").src = imgChange[9];
			}
			break;
        case "img30NightRestTest":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("img30NightRestTest").src = imgChange[10];
				document.getElementById("imgThumb").src = imgThumb[5];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[5] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("img30NightRestTest").src = imgChange[11];
			}
			break;
        case "imgWarranty":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgWarranty").src = imgChange[12];
				document.getElementById("imgThumb").src = imgThumb[6];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[6] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgWarranty").src = imgChange[13];
			}
			break;
        case "imgCoolmax":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgCoolmax").src = imgChange[14];
				document.getElementById("imgThumb").src = imgThumb[7];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[6] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
			}
			break;
        case "imgOutlast":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgOutlast").src = imgChange[16];
				document.getElementById("imgThumb").src = imgThumb[8];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[6] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
			}
			break;
        case "imgRiskFree":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgRiskFree").src = imgChange[18]; document.getElementById("imgThumb").src = imgThumb[7];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[6] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgRiskFree").src = imgChange[19];
			}
			break;
        case "imgAdjFrame":
		    if (element.id == document.getElementById('divHidden').innerHTML)
		    {
		        document.getElementById("imgAdjFrame").src = imgChange[20]; document.getElementById("imgThumb").src = imgThumb[8];
				//document.getElementById("divThumb").style.background = 'url(' + imgThumb[6] + ')';
				document.getElementById("divThumb").style.visibility = "visible"; 
		    }
			else
			{
			    document.getElementById("imgAdjFrame").src = imgChange[21];
			}
			break;
		}
		        //document.write(document.getElementById("imgDetails").src + "a");
		        //document.write(document.getElementById('divHidden').innerHTML);
}

function changeImage(element, arrItem){
	if (element.id == document.getElementById('divHidden').innerHTML) return false;

	//preLoadImages();
	
	document.getElementById(element.id).src = imgChange[arrItem];
	
	switch (element.id)
	{ 
		case "imgDetails":
			element.src = imgHover[0];
			break;
		case "imgPump":
			element.src = imgHover[1];
			break;
		case "imgChambers":
			element.src = imgHover[2];
			break;
		case "imgFoundation":
			element.src = imgHover[3];
			break;
        case "imgSlingRail":
			element.src = imgHover[4];
			break;
        case "img30NightRestTest":
			element.src = imgHover[5];
			break;
        case "imgWarranty":
			element.src = imgHover[6];
			break;
        case "imgCoolmax":
			element.src = imgHover[7];
			break;
        case "imgOutlast":
			element.src = imgHover[8];
			break;
        case "imgRiskFree":
			element.src = imgHover[9];
			break;
        case "imgAdjFrame":
			element.src = imgHover[10];
			break;
	}
}

function restoreImage(element, arrItem){
    //document.getElementById(document.getElementById('divHidden').innerHTML).src = imgHover[5];
	//if (element.id == document.getElementById('divHidden').innerHTML) return false;
	if (document.getElementById('divHidden').innerHTML == "")
	{
		        document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19];
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
				return 0;	
	}
	
	document.getElementById(document.getElementById('divHidden').innerHTML).src = imgChange[arrItem];
	switch (document.getElementById('divHidden').innerHTML){
		case "imgDetails":
		        document.getElementById("imgDetails").src = imgChange[0];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
		case "imgPump":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src = imgChange[2];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
		case "imgChambers":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgChambers").src = imgChange[4];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
		case "imgFoundation":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[6];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
        case "imgSlingRail":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[8];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
        case "img30NightRestTest":
		        document.getElementById("img30NightRestTest").src = imgChange[10];
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
        case "imgWarranty":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[12];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
        case "imgCoolmax":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        document.getElementById("imgCoolmax").src = imgChange[14];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19];
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
        case "imgRiskFree":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[18]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[21];
			break;
        case "imgAdjFrame":
				document.getElementById("imgDetails").src = imgChange[1];
		        document.getElementById("imgPump").src =    imgChange[3];
		        document.getElementById("imgChambers").src = imgChange[5];
		        document.getElementById("imgFoundation").src = imgChange[7];
		        document.getElementById("imgSlingRail").src = imgChange[9];
		        document.getElementById("img30NightRestTest").src = imgChange[11];
		        document.getElementById("imgWarranty").src = imgChange[13];
		        if (document.getElementById("imgCoolmax")) document.getElementById("imgCoolmax").src = imgChange[15];
		        if (document.getElementById("imgOutlast")) document.getElementById("imgOutlast").src = imgChange[17];
		        if (document.getElementById("imgRiskFree")) document.getElementById("imgRiskFree").src = imgChange[19]; 
				if (document.getElementById("imgAdjFrame"))document.getElementById("imgAdjFrame").src = imgChange[20];
			break;
		}
}



/**
 * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */
if(typeof deconcept == "undefined") var deconcept = new Object();
if(typeof deconcept.util == "undefined") deconcept.util = new Object();
if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();
deconcept.SWFObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){
	if (!document.getElementById) { return; }
	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
	this.params = new Object();
	this.variables = new Object();
	this.attributes = new Array();
	if(swf) { this.setAttribute('swf', swf); }
	if(id) { this.setAttribute('id', id); }
	if(w) { this.setAttribute('width', w); }
	if(h) { this.setAttribute('height', h); }
	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
	if(c) { this.addParam('bgcolor', c); }
	var q = quality ? quality : 'high';
	this.addParam('quality', q);
	this.setAttribute('useExpressInstall', useExpressInstall);
	this.setAttribute('doExpressInstall', false);
	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
	this.setAttribute('xiRedirectUrl', xir);
	this.setAttribute('redirectUrl', '');
	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }
}
deconcept.SWFObject.prototype = {
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name];
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name];
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = new Array();
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs.push(key +"="+ variables[key]);
		}
		return variablePairs;
	},
	getSWFHTML: function() {
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
			if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }
			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
			swfNode += '/>';
		} else { // PC IE
			if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params) {
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");
			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	write: function(elementId){
		if(this.getAttribute('useExpressInstall')) {
			// check to see if we need to do an express install
			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
				this.setAttribute('doExpressInstall', true);
				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
				this.addVariable("MMdoctitle", document.title);
			}
		}
		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
			n.innerHTML = this.getSWFHTML();
			return true;
		}else{
			if(this.getAttribute('redirectUrl') != "") {
				document.location.replace(this.getAttribute('redirectUrl'));
			}
		}
		return false;
	}
}

/* ---- detection functions ---- */
deconcept.SWFObjectUtil.getPlayerVersion = function(){
	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else{
		// do minor version lookup in IE, but avoid fp6 crashing issues
		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // throws if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e) {
				if (PlayerVersion.major == 6) {
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e) {}
		}
		if (axo != null) {
			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
deconcept.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;
}
deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
deconcept.util = {
	getRequestParameter: function(param) {
		var q = document.location.search || document.location.hash;
		if(q) {
			var pairs = q.substring(1).split("&");
			for (var i=0; i < pairs.length; i++) {
				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
					return pairs[i].substring((pairs[i].indexOf("=")+1));
				}
			}
		}
		return "";
	}
}
/* fix for video streaming bug */
deconcept.SWFObjectUtil.cleanupSWFs = function() {
	if (window.opera || !document.all) return;
	var objects = document.getElementsByTagName("OBJECT");
	for (var i=0; i < objects.length; i++) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
}
// fixes bug in fp9 see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
deconcept.SWFObjectUtil.prepUnload = function() {
	__flash_unloadHandler = function(){};
	__flash_savedUnloadHandler = function(){};
	if (typeof window.onunload == 'function') {
		var oldUnload = window.onunload;
		window.onunload = function() {
			deconcept.SWFObjectUtil.cleanupSWFs();
			oldUnload();
		}
	} else {
		window.onunload = deconcept.SWFObjectUtil.cleanupSWFs;
	}
}
if (typeof window.onbeforeunload == 'function') {
	var oldBeforeUnload = window.onbeforeunload;
	window.onbeforeunload = function() {
		deconcept.SWFObjectUtil.prepUnload();
		oldBeforeUnload();
	}
} else {
	window.onbeforeunload = deconcept.SWFObjectUtil.prepUnload;
}
/* add Array.push if needed (ie5) */
if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}

/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for legacy support
var SWFObject = deconcept.SWFObject;


