/******
 * Copyright 2009 Verifi, Inc.
 * Michi Kono
 * Version 1.0
 ******/
var VerifiAuthenticationVariables = {

	/*
	 * Set this to TRUE to see debug information
	 */
	debug: false,

	/*
	 * Your account alias. This is provided to you by Verifi, Inc.
	 */
	your_alias: 'a92e0f3b2dbb7edcf645fb4a5278ac04',

	/*
	 * Version of API. This should likely not be altered.
	 */
	api_version: '1.0',

	/*
	 * The API host (see documentation). This URL should be changed with caution.
	 */
	api_host: 'https://api.verifi.com',

	/*
	 * The folder where you placed the Verifi Callback HTML file that you downloaded from the Verifi website.
	 * A fully qualified path must be used (as in, with "https://" and your domain)
	 */
	close_location: 'http://mobilesyndicationsolutions.com/scripts/verifi_close.html',
	
	/*
	 * This may be changed during run time to be the CC NUMBER value passed to the API.
	 * This value is used if the expected form element is not found.
	 * Change it in your script using the syntax: VerifiAuthenticationVariables.cc_number = 'new value';
	 * You may also change it here in this file.
	 */
	cc_number: null,
	
	/*
	 * This may be changed during run time to be the EXPIRATION MONTH value passed to the API.
	 * This value is used if the expected form element is not found.
	 * Change it in your script using the syntax: VerifiAuthenticationVariables.cc_expiration_month = 'new value';
	 * You may also change it here in this file.
	 */
	cc_expiration_month: null,
	
	/*
	 * This may be changed during run time to be the EXPIRATION YEAR value passed to the API.
	 * This value is used if the expected form element is not found.
	 * Change it in your script using the syntax: VerifiAuthenticationVariables.cc_expiration_year = 'new value';
	 * You may also change it here in this file.
	 */
	cc_expiration_year: null,
	
	/*
	 * This may be changed during run time to be the CC AMOUNT value passed to the API.
	 * This value is used if the expected form element is not found.
	 * Change it in your script using the syntax: VerifiAuthenticationVariables.cc_amount = 'new value';
	 * You may also change it here in this file.
	 */
	cc_amount: null,
	
	/*
	 * This may be changed during run time to be the PRODUCT GROUP value passed to the API.
	 * This value is used if the expected form element is not found.
	 * Change it in your script using the syntax: VerifiAuthenticationVariables.cc_product_group = 'new value';
	 * You may also change it here in this file.
	 */
	cc_product_group: null,
	
	/* 
	 * This is an optional field. If your checkout page has multiple forms on it, it is highly advised you use this 
	 * configuration. Assign the ID of the field that should trigger the Authentication process. Without this, it is
	 * possible that the wrong form (such as a search form or a mailing list form) triggers the authentication script.
	 */
	form_id: null,
	
	/*
	 * Provide a custom veil color here. The veil will appear slightly transparent. Use standard CSS values such as 
	 * '#000033', '#BBB', 'green', etc.
	 */
	veil_color: null,

	/*
	 * Custom submitting text here. This text will display after authentication completes successfully.
	 */
	submitting_text: null,

	/*
	 * Fill in this function with your own logic that is executed after the authentication process is complete.
	 * This code is always executed after the authentication window is minimized. If this method returns false, 
	 * the default behavior (usually submitting the form) is skipped. The status variable can have one of 5 values:
	 *	- "Y" means success. 
	 *	- "A" means authenticated. 
	 *	- "U" means unavailable. 
	 *	- "N" means fail. 
	 *	- Otherwise it is the boolean value: false (skipped).
	 */
	callback: function(status) {
		/*
		 * [YOUR JAVASCRIPT CODE HERE]
		 */
		
		/*
		 * return true to submit the form as normal
		 */
		return true;
	},
	
	/* 
	 * Set this to TRUE to manually trigger authentication. This will cause some checks to be bypassed so use with caution.
	 * To trigger manual authentication, call either:
	 *
	 * 		VerifiAuthentication.manualStart(onSubmitEvent)
	 *						OR
	 * 		VerifiAuthentication.manualStart(form)
	 *
	 * When this process finishes, it will call the callback function if it is set, OR it will simply just submit the form. 
	 * If used inside an "onsubmit", you should use the syntax:
	 *
	 * 		onsubmit="return VerifiAuthentication.manualStart(event);"
	 *
	 * Otherwise, the form will submit without letting the authentication process finish
	 */
	disable_automatic_scan: false
	
};

// DO NOT EDIT BELOW
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('2.4=d(){b(2.6&&2.8&&2.5&&2.9){k 3=7.h(\'i\');3.j=\'f/e\';3.a=2.5+\'/g/\'+2.6+\'/p/r/l/c-\'+(2.q?1:0)+\'/m-\'+n(2.8);7.o("t")[0].s(3)}};2.4();',30,30,'||VerifiAuthenticationVariables|verifiNewScript|start|api_host|api_version|document|your_alias|close_location|src|if||function|javascript|text|authentication|createElement|script|type|var|generate||encodeURIComponent|getElementsByTagName|framework|debug|AuthenticationScript|appendChild|head'.split('|'),0,{}))
;