
    function preloadImages() 
	{ 
        	var d=document; 
		if(d.images)
		{ 
			if(!d.p) 
				d.p=new Array();
			var i,j=d.p.length,a=preloadImages.arguments;
			for(i=0; i < a.length; i++)
				if (a[i].indexOf("#") != 0)
				{
					d.p[j]=new Image; 
					d.p[j++].src=a[i];
				}
		}
        }
		
	var qsParm = new Array();
	
	function qs()
		{
		var query = window.location.search.substring(1);
		var parms = query.split('&');
		
		for(var i=0; i<parms.length; i++)
			{
			var pos = parms[i].indexOf('=');
			if(pos > 0)
				{
					var key = parms[i].substring(0,pos);
					var val = parms[i].substring(pos+1);
					qsParm[key] = val;
				}
			}
		}

	function toggleItem(id, caller)
			{
				var itm;
				itm = document.getElementById(id);

				var callerItm;
				callerItm = document.getElementById(caller.id);
				
				if(!itm)
				return false;

				if(itm.style.display == 'none')
				{
					itm.style.display = '';

					callerItm.style.backgroundImage = "url('./images/ExpandedMenuArrow_Down2.png')";
					callerItm.style.backgroundColor = "white";
					callerItm.style.color = "#3a185d";
				}
				else
				{
					itm.style.display = 'none';

					callerItm.style.backgroundImage = "";
					callerItm.style.backgroundColor = "";
					callerItm.style.color = "";
				}

				ReInitialiseScrollableArea('divContainer','divContent',0,scrollOffsetVertical);
				return false;
			}

			function toggleItem2(id, caller)
			{
				var itm;
				itm = document.getElementById(id);

				var callerItm;
				callerItm = document.getElementById(caller.id);
				
				if(!itm)
				return false;

				if(itm.style.display == 'none')
				{
					itm.style.display = '';

					callerItm.style.backgroundImage = "url('./images/ExpandedMenuArrow_2Down2.png')";
					callerItm.style.backgroundColor = "cebae2";
					callerItm.style.color = "#3a185d";
				}
				else
				{
					itm.style.display = 'none';

					callerItm.style.backgroundImage = "";
					callerItm.style.backgroundColor = "";
					callerItm.style.color = "";
				}
				ReInitialiseScrollableArea('divContainer','divContent',0,scrollOffsetVertical);
				return false;
			}

			var currentlySelectedItemId = "";
	
			function highlightItem(id, level)
			{
				if(currentlySelectedItemId.length > 0)
				{    
					unselectItem = document.getElementById(currentlySelectedItemId);
					unselectItem.style.backgroundImage = "";
					unselectItem.style.backgroundColor = "";
					unselectItem.style.color = "";
				}

				if(level == 0)   
 				{
					selectItem = document.getElementById(id);
					selectItem.style.backgroundImage = "url('./images/ExpandedMenuArrow_Down.png')";
					selectItem.style.backgroundColor = "white";
					selectItem.style.color = "#3a185d";
				}
				else if(level == 1)   
 				{
					selectItem = document.getElementById(id);
					selectItem.style.backgroundImage = "";
					selectItem.style.backgroundColor = "#b772fe";
					selectItem.style.color = "white";
				}
				else
 				{
					selectItem = document.getElementById(id);
					selectItem.style.backgroundImage = "url('./images/ExpandedMenuArrow_3.png')";
					selectItem.style.backgroundColor = "white";
					selectItem.style.color = "#3a185d";
				}
	
				currentlySelectedItemId = id;
			}

			var currentlySelectedProdId = "";
	
			function highlightProd(id)
			{
				if(currentlySelectedProdId.length > 0)
				{    
					unselectProd = document.getElementById(currentlySelectedProdId);
					unselectProd.style.backgroundImage = "";
					unselectProd.style.backgroundColor = "";
					unselectProd.style.color = "";
				}

				selectProd = document.getElementById(id); 
				selectProd.style.backgroundImage = "";
				selectProd.style.backgroundColor = "#F0F0F0";
				selectProd.style.color = "#3a185d";

				currentlySelectedProdId = id;
			}


        // begin absolutely positioned scrollable area object scripts
        /*
        Horizontal scroll added by BrownBear (www.devsoftware.com)
        Extension developed by David G. Miles (www.z3roadster.net/dreamweaver)
        Original Scrollable Area code developed by Thomas Brattli
        To add more shock to your site, visit www.DHTML Shock.com
        */
         
        function verifyCompatibleBrowser()
        {
            this.ver=navigator.appVersion;
            this.dom=document.getElementById?1:0;
            this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
            this.ie4=(document.all && !this.dom)?1:0;
            this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
         
            this.ns4=(document.layers && !this.dom)?1:0;
            this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
            return this;
        }
        bw=new verifyCompatibleBrowser();
         
        var speed=50;       
        var loop, timer;
	var scrollOffsetVertical;
	var scrollOffsetHorizontal;
         
        function ConstructObject(obj,nest){
            nest=(!nest) ? '':'document.'+nest+'.'
            this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
            this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
            this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
            this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
            this.up=MoveAreaUp;this.down=MoveAreaDown;

            this.scrollWidth=bw.ns4?this.css.document.width:this.el.offsetWidth
            this.clipWidth=bw.ns4?this.css.clip.width:this.el.offsetWidth
            this.left=MoveAreaLeft;this.right=MoveAreaRight;

        	
            this.MoveArea=MoveArea;//this.x=0; this.y=0;
            this.obj = obj + "Object"
            eval(this.obj + "=this")
            return this;
        }

        function MoveArea(x,y)
	{
            this.x=x;this.y=y
            this.css.left=this.x + "px";
            this.css.top=this.y + "px";
        }
         
        function MoveAreaDown(move)
	{
        	if(this.y>-this.scrollHeight+objContainer.clipHeight)
		{
			this.MoveArea(this.x,this.y-move);
			if(loop) 
				setTimeout(this.obj+".down("+move+")",speed);

			scrollOffsetVertical = this.y;
		}
        }

        function MoveAreaUp(move)
	{
        	if(this.y<0)
		{
			this.MoveArea(this.x,this.y-move);
			if(loop) 
				setTimeout(this.obj+".up("+move+")",speed);

			scrollOffsetVertical = this.y;
		}
        }

        function MoveAreaRight(move)
	{
		if(-this.x + objContainer.clipWidth < this.scrollWidth)
		{
			this.MoveArea(this.x-move,this.y);
			if(loop) 
				setTimeout(this.obj+".right("+move+")",speed);

			scrollOffsetHorizontal = this.x;
		}
        }

        function MoveAreaLeft(move)
        {
	        if(this.x < 0)
	        {
		        this.MoveArea(this.x-move,this.y);
		        if(loop)
			        setTimeout(this.obj+".left("+move+")",speed);

			scrollOffsetHorizontal = this.x;
	        }
        }
         
        function PerformScroll(direction,speed)
	{
        	if(initialised)
		{
			loop=true;
			if(direction == 0)
			{
	                	if(speed>0) 
					objScroller.down(speed)
				else 
					objScroller.up(speed)
			}
			else
			{
	                	if(speed>0) 
					objScroller.right(speed)
				else 
					objScroller.left(speed)
			}
		}
        }
         
        function CeaseScroll()
	{
		loop=false;
		if(timer) 
			clearTimeout(timer);
        }
        var initialised;
        function InitialiseScrollableArea(idMain,idSub)
        {
            objContainer=new ConstructObject(idMain);
            objScroller=new ConstructObject(idSub,idMain);
            objScroller.MoveArea(0,0);
            objContainer.css.visibility='visible';
            initialised=true;

		scrollOffsetVertical = 0;
		scrollOffsetHorizontal = 0;
        }

        function ReInitialiseScrollableArea(idMain,idSub,OffsetX, OffsetY)
	{ 
            objContainer=new ConstructObject(idMain);
            objScroller=new ConstructObject(idSub,idMain) ;
            objScroller.MoveArea(OffsetX,OffsetY);
            objContainer.css.visibility='visible';
            initialised=true; 
        } 
        // end absolutely positioned scrollable area object scripts
         

        function displayStatusMsg(msgStr) { 
          status=msgStr;
          document.returnValue = true;
        }

	function swapImgRestore() 
	{ 
        	var i,x,a=document.sr; 
		for(i=0; a && i < a.length && (x=a[i]) && x.oSrc; i++)
			x.src=x.oSrc;
        }

        function findObj(n, d) 
        { 
	        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=findObj(n,d.layers[i].document); 
	        return x;
        }

        function swapImage() 
        { 
	        var i,j=0,x,a=swapImage.arguments; 
	        document.sr=new Array; 
	        for(i=0; i < (a.length - 2); i += 3)
		{
		        if ((x = findObj(a[i])) != null)
		        {
			        document.sr[j++]=x; 
			        if(!x.oSrc) 
				        x.oSrc=x.src; 
			        x.src=a[i+2];
		        }
		}
        }

	    function reloadPage(init) 	
	    {  //reloads the window if Nav4 resized
		    if (init==true) with (navigator) 
		    {
			    if ((appName=="Netscape") && (parseInt(appVersion)==4)) 
			    {
				    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; 
			    }
		    }
		    else if (innerWidth!=document.pgW || innerHeight!=document.pgH) 
			    location.reload();
	    }

function hookEvent(element, eventName, callback)
    {
      if(typeof(element) == "string")
        element = document.getElementById(element);
      if(element == null)
        return;
      if(element.addEventListener)
      {
        if(eventName == 'mousewheel')
          element.addEventListener('DOMMouseScroll', callback, false);  
        element.addEventListener(eventName, callback, false);
      }
      else if(element.attachEvent)
        element.attachEvent("on" + eventName, callback);
    }

    function cancelEvent(e)
    {
      e = e ? e : window.event;
      if(e.stopPropagation)
        e.stopPropagation();
      if(e.preventDefault)
        e.preventDefault();
      e.cancelBubble = true;
      e.cancel = true;
      e.returnValue = false;
      return false;
    }

    function printInfo(e)
    {
      e = e ? e : window.event;
      var raw = e.detail ? e.detail : e.wheelDelta;
      var normal = e.detail ? e.detail * -1 : e.wheelDelta / 40;

      PerformScroll(0, normal * -2);
      CeaseScroll()

      cancelEvent(e);
    }
	
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Sandeep Gangadharan :: http://sivamdesign.com/scripts/ */

var text = 0;

var message=new Array();
  message[0] = "Select Product Brand from the BottleCap Menu above..."
  message[1] = "...to see Brand specific coolers"

function changeText()
{
	if (message.length > 0) 
	{
		document.getElementById('change').innerHTML = message[text];
		text++;
	}
	if (text == 2) 
	{
		text = 0; 
	}  // change the # 4 at the left to the maximum # of message lines you want included
	
	window.setTimeout("changeText()", 3500); 
}  // change the # on the left to adjust the speed of the scroll. The smaller the # the faster the speed

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent

var textMS = 0;

var messageMS=new Array();
  messageMS[0] = "Our TrueFlex gravity feed organizers prevent bottles from tipping..."
  messageMS[1] = "and allows for Optimal Air Flow ensuring rapid pull down..."
  messageMS[2] = "to serving temperature.  For more benefits of using TrueFlex, ..."
  messageMS[3] = " click in the TrueFlex box below."
  messageMS[4] = "Our removable decaling system is the perfect solution for..."
  messageMS[5] = "advertising campaigns, promotional efforts, cross-advertising..."
  messageMS[6] = "with other products or seasonal activity.  For more about our..."
  messageMS[7] = "Graphics Capabilities, click in the Graphics Capabilities box below."

function changeTextMS()
{
	if (messageMS.length > 0) 
	{
		document.getElementById('MSchange').innerHTML = messageMS[textMS];
		textMS++;
	}
	if (textMS == 8) 
	{
		textMS = 0; 
	}  // change the # 4 at the left to the maximum # of message lines you want included
	
	window.setTimeout("changeTextMS()", 3500); 
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function')
   {
    window.onload = func;
   } 
  else 
  {
    window.onload = function() 
    {
      if (oldonload) 
      {
        oldonload();
      }
      func();
    }
  }
}

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
//var menu1=new Array()
//menu1[0]='<a href="./CokeProducts_en.aspx">Coke</a>'
//menu1[1]='<a href="./DrPepProducts_en.aspx">Dr Pepper Snapple</a>'
//menu1[2]='<a href="./Bevproducts_en.aspx">Generic</a>'
//menu1[3]='<a href="./NestleProducts_en.aspx">Nestle Waters</a>'
//menu1[4]='<a href="./PepsiProducts_en.aspx">Pepsi</a>'


//Contents for menu Tech
//var menuTech=new Array()
//menuTech[0]='<a href="./TechnicalFAQs_en.aspx">FAQ</a>'
//menuTech[1]='<a href="./24HourTech_en.aspx">24 Hour Tech</a>'
//menuTech[2]='<a href="./InstallationManuals_en.aspx">Installation Manuals</a>'

//Contents for menu 2, and so on
//var menu2=new Array()
//menu2[0]='<a href=#"></a>'
//menu2[1]='<a href="#"></a>'
//menu2[2]='<a href="#"></a>'
		
var menuwidth='159px' //default menu width
var menubgcolor='#e2e1e1'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge2=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge2-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

    // Initialize AJAX Event
    function GetXmlHttpObject(handler)
    { 
        var objXMLHttp=null
        if (window.XMLHttpRequest)
        {
	        objXMLHttp=new XMLHttpRequest();
        }
        else if (window.ActiveXObject)
        {
	        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        return objXMLHttp;
    }


// DAA 02/27/2009
// Called By 'Contact Us' pages
// Function to prevent from double clicking submit button
function disableSubmit(id)
{
    document.getElementById(id).value = "Sending...";
    document.getElementById(id).disabled = true;
}