	// Cufon.replace('h1', 'h2', 'h3', 'p');
	Cufon.replace('h1.page-title, h2, h3, h4');

	/* Author: Thomas Fung */
	/* Function: Automatically enable credit card function */
	$(document).ready(function() {

	    var filename = window.location.href.substr(window.location.href.lastIndexOf("/") + 1);
	    filename = filename.toUpperCase();

	    if (filename.indexOf("ACCOUNT.ASPX") > -1) {
	        // Check if Outstanding Invoices is selected;			
	        // $("div#showbalances").after('Hello World');

	        // Also do this on Combo Box Change
	        if ($("select#cf0_LISTenquirytype option[value='3']").attr('selected')) {
	            $("div#Textlabel1").after('<div id="CreditCard"><br><center><a class="AccountCreditCardPayment" href="AccountPayment.aspx">Pay your account with credit card now</a></center><br></div>');
	        }
	        else {
	            $("div#CreditCard").empty();
	        }

	        $("select#cf0_LISTenquirytype").change(function(e) {

	            if ($("select#cf0_LISTenquirytype option[value='3']").attr('selected')) {
	                $("div#Textlabel1").after('<div id="CreditCard"><br><center><a class="AccountCreditCardPayment" href="AccountPayment.aspx">Pay your account with credit card now</a></center><br></div>');
	            }
	            else {
	                $("div#CreditCard").empty();
	            }
	        });

	    }

	    if (filename.indexOf("LOGIN.ASPX") > -1) {
	        
	        // Call 18459: Hide Order and Approval Limit (currently not used by Judius)
	        $("td.text:contains('Order Limit')").parent('tr').hide();
	        $("td.text:contains('Approval Limit')").parent('tr').hide();
	    }
		
		if (filename.indexOf("ORDERCOMPLETE.ASPX") > -1) {
			// Call 18875: Show credit card payment alert
			$("div#btnlbl").after('<div id="CreditCardBackOrderAlert"><strong>IF PAYING WITH CREDIT CARD:</strong> Funtastic is unable to supply Unavailable/Out of Stock items. We recommend removing Unavailable/Out of Stock items from your order before continuing</div>');
		}
						
		if (filename.indexOf("PRODSEARCH.ASPX") > -1)
		{			
			$("div#message").after('<div id="ATOButtonTop" style="text-align:center;"><input type="submit" name="cvgProducts$ctl03$ctl13$ctl01" value="Add to Order" tabindex="11" class="button" /></div>');			
		}		
	});			
