function ctf(theText)
{
	if(theText.value == theText.defaultValue) 
	{
		theText.value = "";
	}
}
function rtf(theText) 
{
	if(theText.value == "") 
	{
		theText.value = theText.defaultValue;
	}
}
function l2s(theForm) 
{
	if(theForm.q.value == theForm.q.defaultValue) 
	{
		theForm.q.focus();
		return false;
	}
	return true;
}
function initpage(page)
{	
	if(page=='product-page');
	{
		$('#prdinfo a').click(function() {
			var copyblockid = $(this).attr('href');
			$(copyblockid).show();
			$('#copyblocks div').not(copyblockid).not('#cost').hide();
			if($('html,body').scrollTop()>160)
			{
				$('html,body').animate({scrollTop:100},100);
			}
			return false;
		});		
	}
}
function fudlink(elem)
{
	//pageTracker._trackEvent('Downloads', 'PDF Attempt', elem.href.substr(elem.href.indexOf("doc=")+4)+".pdf");
	if(getCookie('fud')=='1')
	{
		//pageTracker._trackEvent('Downloads', 'PDF', elem.href.substr(elem.href.indexOf("doc=")+4)+".pdf");
		window.open(elem.href,"fudwindow");
	}
	else
	{
		tb_show(elem.title,elem.href,false);
	}
	return false;
}
function getCookie(c_name)
{
	if (document.cookie.length>0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1)
		{
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}
	return "";
}
