hs.graphicsDir = '/include/graphics/';
hs.showCredits = false;
hs.outlineType = 'rounded-white';
hs.outlineWhileAnimating = true;
//enableKeyListener = false;

$(document).ready(function(){
	
	$("#liveHelp").hover(function() {
		$('#livehelpPopup').animate({opacity: "show", top: "34"}, "slow");
	}, function() {
		$('#livehelpPopup').animate({opacity: "hide", top: "20"}, "fast");
	});
	
	$("#orderSteps").hover(function() {
		$('#orderStepsPopup').animate({opacity: "show", top: "38"}, "slow");
	}, function() {
		$('#orderStepsPopup').animate({opacity: "hide", top: "20"}, "fast");
	});
	
	if(window.autoHeightLeft)
	{
		contentHeight = document.getElementById('contentDiv').offsetHeight + 30;
			if(contentHeight > document.getElementById('leftCol').offsetHeight)
				document.getElementById('leftCol').style.height = contentHeight + 'px';
	}
	
	/*$("#worldwide").hover(function() {
		$('#worldwidePopup').animate({opacity: "show", top: "38"}, "slow");
		selectElt.value = '';
		selectCountry();
		
	}, function() {
		$('#worldwidePopup').animate({opacity: "hide", top: "20"}, "fast");
	})*/;
})

var imagesToPreload = Array('/images/popup-menu-bgr-t.gif', 
							'/images/popup-menu-bgr.gif', 
							'/images/popup-menu-bgr-b.gif', 
							'/images/livehelp-active.gif', 
							'/images/livehelp-active.png', 
							'/images/popup-3easysteps.gif', 
							'/images/popup-3easysteps.png',
							'/images/popup-3easysteps-tr.gif', 
							'/images/popup-3easysteps-tr.png',
							'/images/popup-3easysteps-es.gif', 
							'/images/popup-3easysteps-es.png',
							'/images/worldwide-popup.gif',
							'/images/worldwide-popup.png',
							'/images/worldwide-popup-es.gif',
							'/images/worldwide-popup-es.png'
							);
var preloadedImages = Array();							
for(i = 0; i < imagesToPreload.length; i++)							
{
	preloadedImages[i] = new Image();
	preloadedImages[i].src = imagesToPreload[i];
}