$(document).ready(function(){
//How TO Order Content    
   $('#orderOnlineLink').click(function(){
        $('#showOnlineInstructions').load('orderonline.php').toggle();
    });
    
    $('#orderPhoneLink').click(function(){
        $('#showPhoneInstructions').load('orderbyphone.php').toggle();
    });
    
    $('#orderMailLink').click(function(){
        $('#showMailInstructions').load('orderbymail.php').toggle();
    });

// Tip Popups
	$(".tipShipping img").jHelperTip({
		 trigger: "hover",
		 source: "ajax",
		 type: "GET", 
		 url: 'includes/tips.cfm',
		 data: 'tip=shipping',
		 loadingText: 'loading...',
		 autoClose: true
	});
	
	$(".tipPrescription img").jHelperTip({
		 trigger: "hover",
		 source: "ajax",
		 topOff: 10,
		 leftOff: 20,
		 type: "GET", 
		 url: 'includes/tips.cfm',
		 data: 'tip=prescription',
		 loadingText: 'loading...',
		 autoClose: true 
	});
			  
	$(".tipOTC img").jHelperTip({
		 trigger: "hover",
		 source: "ajax",
		 topOff: 10,
		 leftOff: 20,
		 type: "GET", 
		 url: 'includes/tips.cfm',
		 data: 'tip=otc',
		 loadingText: 'loading...',
		 autoClose: true
	});	
	
	
			  
});
// Popup Window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// function to clear a text field onfocus 
function clearField(fieldName, defaultValue){
    if (fieldName.value == defaultValue) {
        fieldName.value = "";
    }
}

// function to restore a text field onblur
function setField(fieldName, defaultValue){
    if (fieldName.value == "") {
        fieldName.value = defaultValue;
    }
}