/* currency component */
	
	function initCurrency()
	{
		//set the currency
		if(document.formCurrency)
		{
			if(document.formCurrency.currency)
			{
				var fCurrency = document.formCurrency;
	
				currSelected = readCookie('CurrSelected');
	
				
				for(i=0; i<fCurrency.currency.length; i++)	
				{
					//alert(fCurrency.currency.options[i].value)
	
					if(fCurrency.currency.options[i].value == currSelected )
					{
						fCurrency.currency.options[i].selected = true;
					}
				}
	
			}
	
			//disable the currency control, when these pages are encountered.
			/*
				i. addressRegister.asp
				ii. addressBilling.asp
				iii. 
			*/
				
			if(
					(document.location.href.indexOf('addressRegister.asp') >= 0) ||
					(document.location.href.indexOf('addressBilling.asp') >= 0) ||
					(document.location.href.indexOf('addressBook.asp') >= 0) ||
					(document.location.href.indexOf('addressShipping.asp') >= 0) ||
					(document.location.href.indexOf('shipping.asp') >= 0) ||
					(document.location.href.indexOf('orderSummary.asp') >= 0) ||
					(document.location.href.indexOf('payment.asp') >= 0) ||
					(document.location.href.indexOf('thankyou.asp') >= 0) ||
					(document.location.href.indexOf('cancelpayment.asp') >= 0) 
				)
			{
				if(document.formCurrency.currency)
				{
		
					var objCurrency = eval('document.formCurrency.currency')
					objCurrency.disabled = true;
				}
			}
		}
	}


	function toggleLoveOn(catID)
	{
		var objImg = document.getElementById('love' + catID);		
		objImg.style.display = 'block';

	}

	function toggleLoveOff(catID)
	{
		var objImg = document.getElementById('love' + catID);		
		objImg.style.display = 'none';

	}

	function setCategoryItem(catID)
	{
		createCookie('catID',catID);
		
		
	}

	function showLove()
	{
		if(readCookie('catID') != '')
		{
			var objImg = document.getElementById('love' + readCookie('catID'));
			
			if(objImg)
			{
				objImg.style.display = 'block';
			}
		}
	}

