<!--
			
			
	function getBlogEntires(vForumID, vPostID){
		//Get DAILYCIGARDEAL BLOG POSTINGS
		var param 	= "action1=BLOGRSS&rand="+randomString(6)+"&F="+vForumID+"&P="+vPostID;
		var url 	= "/dailydeal/cccigardeals.asp?"+param;
		new Ajax(url, {method:'get',  
		onComplete:function(txt, xml) {
			//document.getElementById('content1').innerHTML = txt;
			//document.getElementById('blogComments').innerHTML = document.getElementById('RSSItemsCount').value+ " COMMENTS";
		}}).request();
	}
	
	/// Returns a very random number so ajax pages don't cache on request.
	function randomString(len) {
		var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
		var string_length = len;
		var randomstring = "";
		for (var i=0; i <= string_length; ++i){
			var rnum = Math.floor(Math.random() * chars.length);
			randomstring += chars.substring(rnum,rnum+1);
		}
		return randomstring;
		//example:http://www.someserver.com/rpc/?cmd=somecmd&rand=’+randomString(3);
	}
	
	
	// Is numeric function
	function IsNumeric(sText){
		var ValidChars = "0123456789.";
		var IsNumber=true;
		var Char;
		for (i = 0; i < sText.length && IsNumber == true; i++) { 
			Char = sText.charAt(i); 
			if (ValidChars.indexOf(Char) == -1){
				IsNumber = false;
			}
		}
		return IsNumber;
	}

	function addToCart(itemID, qty){
		document.getElementById('load' + itemID).style.display = 'inline';
		var indextime = new Date(); 
		var url = '/cart/index.asp?itemID=' + itemID + '&qty=' + qty + '&aj=1&t='+indextime.getTime();
		new Ajax(url, {method:'get',  
		onComplete:function(txt, xml) {						
			var dtime = new Date(); 
			var urlDispCart = "/includes/shoppingCartaj.asp?aj=1&c="+dtime.getTime();
			new Ajax(urlDispCart, {method:'get',  
				onComplete:function(txt, xml) {	
					document.getElementById('shoppingCartPopup').innerHTML = txt;
			
					var url2 = '/includes/cartDisplayButtonOutput.asp?t='+indextime.getTime();
					new Ajax(url2, {method:'get',  
					onComplete:function(txt, xml) {

						document.getElementById('cartRoot').innerHTML = txt;
						
						document.getElementById('load' + itemID).style.display = 'none';
						
						document.getElementById('add' + itemID).innerHTML = '<img src="/graphics/addedItem.gif" width="75" height="15" border="0" style="padding-top: 3px;"> '
						
						document.getElementById('qty' + itemID).value = '';
						
					}}).request();
				}}).request();
		}}).request();
	}


	function fn_tabnav(tabid){
		var tabi = 1;
		var tabnavtemp1 = "";
		var tabcolorArray = new Array(5);
		tabcolorArray[0] = "4B6870";
		tabcolorArray[1] = "1B2224";
		tabcolorArray[2] = "660000";
		tabcolorArray[3] = "574C43";
		tabcolorArray[4] = "705740";
		if (tabid == 6){
			document.getElementById('autoship').className = 'visibleTab';
		}else{
			document.getElementById('autoship').className = 'hiddenTab';
		}
		for (tabi=1;tabi<=5;tabi++){
			tabnavtemp1 = document.getElementById('tabnav'+tabi);
			if (tabi == tabid){
				document.getElementById('tabnav'+tabi).style.height=25;
				document.getElementById('tabnav'+tabi).style.marginTop=0;
				document.getElementById('tabnav'+tabi).style.border="1px solid #D3DCDF";
				tabnavtemp1.onmouseout = function() {} 
				tabnavtemp1.onmouseover = function() {}
				document.getElementById('subtabnav'+tabi).style.paddingTop=5;
				document.getElementById('tab' + tabi).className = 'visibleTab';
			}else{
				document.getElementById('tabnav'+tabi).style.height=19;
				document.getElementById('tabnav'+tabi).style.marginTop=3;
				document.getElementById('tabnav'+tabi).style.borderTop=0;
				document.getElementById('tabnav'+tabi).style.borderBottom=0;
				document.getElementById('tabnav'+tabi).style.borderRight="1px solid #"+tabcolorArray[tabi-1];
				document.getElementById('tabnav'+tabi).style.borderLeft="1px solid #"+tabcolorArray[tabi-1];
				tabnavtemp1.onmouseout = function() {
					this.style.height=19; 
					this.style.marginTop=3; 
					//this.firstChild.style.paddingTop=2;
					this.style.paddingTop=2;
					} 
				tabnavtemp1.onmouseover = function() {
					this.style.height=25; 
					this.style.marginTop=0; 
					//this.firstChild.style.paddingTop=5; 
					this.style.paddingTop=5; 
					this.style.cursor='pointer';
					}
				document.getElementById('subtabnav'+tabi).style.paddingTop=2; 
				document.getElementById('tab' + tabi).className = 'hiddenTab';
			}
		}
	}
	
	/// function to hide or display a div element
	function hideNseek(vId){
		velem = document.getElementById(vId);
		if (velem.style.display == "none" || velem.style.display == "undefined" || velem.style.display == ""){
			velem.style.display = "block";
		}else if(velem.style.display == "block") {
			velem.style.display = "none";
		}
	}
	
	function makeScrollbar(content,scrollbar,handle,horizontal,ignoreMouse){
	var steps = (horizontal?(content.getScrollSize().x - content.getSize().x):(content.getScrollSize().y - content.getSize().y))
	var slider = new Slider(scrollbar, handle, {	
		steps: steps,
		mode: (horizontal?'horizontal':'vertical'),
		onChange: function(step){
			// Scrolls the content element in x or y direction.
			var x = (horizontal?step:0);
			var y = (horizontal?0:step);
			content.scrollTo(x,y);
		}
	}).set(0);
	if( !(ignoreMouse) ){
		// Scroll the content element when the mousewheel is used within the 
		// content or the scrollbar element.
		$document.getElementById(content, scrollbar).addEvent('mousewheel', function(e){	
			e = new Event(e).stop();
			var step = slider.step - e.wheel * 30;	
			slider.set(step);					
		});
	}
	// Stops the handle dragging process when the mouse leaves the document body.
	document.getElementById(document.body).addEvent('mouseleave',function(){slider.drag.stop()});
}
		
			--> 