	
	var bLoading = true;
	var sArrow = '';
	
	function loadObjects()
	{
		//Main Nav
		preloadImages('homeOff','images/home_logo.gif');
		preloadImages('homeOn','images/home_logo_h.gif');
		preloadImages('rugsOff','images/home_rugs.gif');
		preloadImages('rugsOn','images/home_rugs_h.gif');
		preloadImages('bindingsOff','images/home_bindings.gif');
		preloadImages('bindingsOn','images/home_bindings_h.gif');
		preloadImages('combinationsOff','images/home_combinations.gif');
		preloadImages('combinationsOn','images/home_combinations_h.gif');
		
		function preloadImages(imgObj,imgSrc)
		{
			if (document.images) { eval(imgObj + ' = new Image()'); eval(imgObj + '.src = "' + imgSrc + '"'); }
		}
		
		bLoading = false;
	}

	function onImage(id,img)
	{
		if (document.images && !bLoading)
		{
			if (document.getElementById)
			{
				document[img].src = eval(img + 'On.src');
			}
			else
			{
				document.layers[id].document[img].src = eval(img + 'On.src');
			}
			if (sArrow != img && (img == 'rugs' || img == 'bindings' || img == 'combinations'))
			{
				document.getElementById(img + "arrow").style.visibility = 'visible';
			}
		}
	}

	function offImage(id,img)
	{
		if (document.images && !bLoading)
		{
			if (document.getElementById)
			{
				document[img].src = eval(img + 'Off.src');
			}
			else
			{
				document.layers[id].document[img].src = eval(img + 'Off.src');
			}
			if (sArrow != img && (img == 'rugs' || img == 'bindings' || img == 'combinations'))
			{
				document.getElementById(img + "arrow").style.visibility = 'hidden';
			}
		}
	}

	function toggleArrow(img)
	{
		document.getElementById(img + "arrow").style.visibility = 'visible';
		sArrow = img;
	}
	
	function launch(url,width,height,toolbars) 
	{
		window.open(url,'popwin','toolbar='+toolbars+',location=no,status=no,menubar=no,top=140,left=325,scrollbars=no,width='+width+',height='+height+',resizable=no');
	}