	// functions to manage site
	
	
	nav3=false;
	{   
	nav3=true;  
		rollOver = new Array
		rollOver[0] = new Image(66,28)  
		rollOver[0].src="https://www.tearsofchrist.com/images/btn_over_home.jpg"     
		rollOver[1] = new Image(77,28)  
		rollOver[1].src="https://www.tearsofchrist.com/images/btn_over_ttoc.jpg"    
		rollOver[2] = new Image(114,28)  
		rollOver[2].src="https://www.tearsofchrist.com/images/btn_over_testimonials.jpg"
		rollOver[3] = new Image(90,28)  
		rollOver[3].src="https://www.tearsofchrist.com/images/btn_over_charities.jpg" 
		rollOver[4] = new Image(94,28)  
		rollOver[4].src="https://www.tearsofchrist.com/images/btn_over_contact.jpg" 
		rollOver[5] = new Image(56,28)  
		rollOver[5].src="https://www.tearsofchrist.com/images/btn_over_cart.jpg"		
		rollOver[6] = new Image(87,28)  
		rollOver[6].src="https://www.tearsofchrist.com/images/btn_over_about.jpg"	
}


	function loadcss(){
		var browser = BrowserDetect.browser;
		
		switch(browser){
			
			case "Safari":
				document.write('<link rel="stylesheet" type="text/css" href="css/macfix.css">');
			break;
			
			case "Firefox":
				if(BrowserDetect.OS == "Mac"){
					document.write('<link rel="stylesheet" type="text/css" href="css/macfix.css">');
				}else{
					document.write('<link rel="stylesheet" type="text/css" href="css/subs.css">');
				}
			break;
			
			case "Explorer":
				/*if(BrowserDetect.version == "7"){
					document.write('<link rel="stylesheet" type="text/css" href="css/ie7fix.css">');
				}else{
					document.write('<link rel="stylesheet" type="text/css" href="css/subs.css">');
				}*/
			break;
			
			default:
				document.write('<link rel="stylesheet" type="text/css" href="css/subs.css">');
			break;
			
			
		}
		
	}

	function rollSwitch(name,m){  
		if(nav3) {    
			picSwap(name, rollOver[m])  
		}
	}

	function picSwap(i1,i2){      
		var temp = i1.src    
		i1.src=i2.src    
		i2.src=temp
	}  
	
	
	function pTHover(img){
		document.getElementById('main_img').innerHTML = '<img src="'+img+'" class="product2" border="0" alt="Image">'
	}
	
	function pTOut(img){
		document.getElementById('main_img').innerHTML = '<img src="'+img+'" class="product2" border="0" alt="Image">'
	}
	
	

	function updatecartqty() 	
					{
						//alert ("helloo");
				document.forms[0].action='cart_update.asp';
				document.forms[0].submit();
					}
	
	function couponcodecheck()
	{
		
		
		//if(window.event.keyCode==13)
		//{
			
			document.cart.submit();
			
		//}
		
		
	}
	
	
	function checkout(guid) {
		//location.replace("index.asp");
		//document.location.href='transfercart.asp?guid='+guid;
		//alert('hgjhh');
		document.forms[0].action='transfercart.asp?guid='+guid;
		document.forms[0].submit();
	}
	
	//function checkout2(guid,totalPrice) {
//		document.forms[0].action='transfercart.asp?guid='+guid+'&opt=paypal'+'&totalPrice='+totalPrice;
//		document.forms[0].submit();
//	}
	
	
	function checkout3(guid,totalPrice) {
		document.forms[0].action='transfercart.asp?guid='+guid+'&totalPrice='+totalPrice;
		document.forms[0].submit();
	}
	
	function checkout_review() {
		document.checkoutfrm.submit();
		
		document.location.href='checkout_review.asp';
	}
	function checkout_confirm() {
		document.rsfrm.submit()
		document.location.href='checkout_review_submit.asp';
	}	

	function checkout_confirm2() {
		document.rsfrm.submit()
		document.location.href='landing_checkout_review_submit.asp';
	}	


	function ShowGoldSealGuarantee() 
		{
			
			if (window.showModalDialog) 
			{
				window.showModalDialog("../GoldSealGuarantee.asp","name","dialogWidth:600px;dialogHeight:460px");
			} 
			else 
			{
				window.open('GoldSealGuarantee.asp','name','height=460px,width=600px,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no ,modal=yes');
			}
	
	}
	
	
	
	
	
	
	
	