	function getQuerystring(key, default_)
	{
		if (default_==null) default_="";
		key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
		var qs = regex.exec(window.location.href);
		if(qs == null)
			return default_;
		else
			return qs[1];
	}
	
jQuery(document).ready(function() {

	$('.qm_title_banner').each(function () {
		 if (this.src.indexOf('Quiz_Posters') > -1) {$("#head_orange").hide();}
	});	

	if (getQuerystring('paymentstatus','') == 'promptsuccess') {
		//alert('Congrats. Your payment has been accepted.');
		displaySiteMessageBox('Payment Successful', 'Your payment has completed successfully.', '<input type="button" value="OK" onclick="javascript:document.onclick = null;cancelMessage(false);" class="floatLeft loginbutton"/><p></p>', true, null, null, null, null);
	}
	
	if (getQuerystring('paymentstatus','') == 'promptsuccesscredits') {
		//alert('Congrats. Your payment has been accepted.');
		displaySiteMessageBox('Payment Successful', 'Your payment has completed successfully.', '<input type="button" value="OK" onclick="javascript:document.onclick = null;cancelMessage(false);" class="floatLeft loginbutton"/><p></p>', true, null, null, null, null);
	}

	if (getQuerystring('paymentstatus','') == 'promptsuccessupdatecard') {
		//alert('Congrats. Your payment has been accepted.');
		displaySiteMessageBox('Payment Successful', 'Your payment has completed successfully.', '<input type="button" value="OK" onclick="javascript:document.onclick = null;cancelMessage(false);" class="floatLeft loginbutton"/><p></p>', true, null, null, null, null);
	}	

	if (getQuerystring('paymentstatus','') == 'promptsuccessmonth') {
		//alert('Congrats. Your payment has been accepted.');
		displaySiteMessageBox('Payment Successful', 'Your payment has completed successfully.', '<input type="button" value="OK" onclick="javascript:document.onclick = null;cancelMessage(false);" class="floatLeft loginbutton"/><p></p>', true, null, null, null, null);
	}		

	if (getQuerystring('paymentstatus','') == 'promptfailure') {
		//alert('Congrats. Your payment has been accepted.');
		displaySiteMessageBox('Payment Failed', 'Your payment has failed please try and enter your payment details again.', '<input type="button" value="OK" onclick="javascript:document.onclick = null;cancelMessage(false);" class="floatLeft loginbutton"/><p></p>', true, null, null, null, null);
	}

	
})
