		var Parameters = {
			CompanyID     : "VJC",
			CompanyName   : "Victoria Jackson Cosmetics, Inc.",
			CompanyURL    : "www.vmakeup.com",
			ProductID     : "VJC",
			isNewSession  : true,
			isInternalIP  : false,
			isTestMode    : false,
			Source        : "VJC08391"
		}
		if (Parameters.isNewSession) {
			//EAC.Remote({fn:'isBlackListed',async:true},null,'notice');
			EAC.Remote({fn:'isBlackListed',async:true});
			Parameters.isNewSession = false;
		}


/* ========================================================================================================== */
//	Compatibility script - functions used by "old" system reworked for "new" system.                July 2007
//	Requires <script type="text/javascript" src="/cart_manager.php"></script>
/* ========================================================================================================== */

var jscripts					= '1.1';
var jscript_default_cartshow	= 'cartshow.php';
var jscript_default_checkout	= 'purchase.php';

//if (typeof Cart == "undefined") document.write('<scr'+'ipt type="text/javascript" src="cart_manager.php"></scr'+'ipt>');


// addtocart - add an item to the shopping cart & open the shopping cart window
function addtocart(item,qty,replace) {
	Cart.Add(item,jscript_default_cartshow);
}

// showcart - open the shopping cart window
function showcart() {
	location.href=jscript_default_cartshow;
}

// updatecart - set the quantity of an item in the shopping cart and return to the calling page
function updatecart(item,qty,was) {
	if (was != qty) Cart.Update(item,qty,true,true);
}

// orderform - add an item to the shopping cart and open the order form (i.e. for single sku shopping)
function orderform(item,qty,replace) {
	Cart.Add(item,jscript_default_checkout);
}

// preorder - add an item to the shopping cart and go to page xxx
function preorder(item,qty,gotopage) {
	Cart.Add(item,gotopage);
}

// checkout - tell the main window to load checkout and close the cart window (from which we're called)
function checkout() {
	if (window.name == 'ShoppingCart') {
		opener.location.replace(jscript_default_checkout);
		window.close();
	} else {
		location.replace(jscript_default_checkout);
	}
}

// cntShopping - continue shopping - close the shopping cart window or go back a page
function cntShopping() {
	if (window.name == 'ShoppingCart') {
		window.close();
	} else {
		history.back();
	}
}

// updateqty - validate and update the quantity
function updateqty(_this,item,was) {
	var qty = _this.value;
	updatecart(item,qty,was);
}

// returnto - return to a page in a previous (or current) folder
function returnto(page,replace) {
	if (replace) {
		location.replace(page);
	} else {
		location.href=page;
	}
}

// hometo - return to a page in the root of the domain
function hometo(page,replace) {
	if (replace) {
		location.replace(page);
	} else {
		location.href=page;
	}
}


// privacy popup window
function show_privacy() {
	priWin=window.open('privacy.php','Privacy','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=400');
}


// security popup window
function show_security() {
	secWin=window.open('security.php','Security','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=500,height=450');
}


// verisign popup window
function verisign() {
	sealWin=window.open('https://digitalid.verisign.com/as2/be2a64569d4991d39b3f4c1800eb4c1b',"win",'toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=700,height=450');
	window.name = "mainWin";
}


// popup window
function inwindow(url,width,height,params,event) {
	if (typeof EAC != 'undefined' && typeof EAC.Version != "undefined") {
		if (width < 501) {
			if (event) 	EAC.onThisPage(url,width,height,event);
			else		EAC.onThisPage(url,width,height);
		} else			EAC.inWindow(url,width,height,params);
	} else {
		if (!params) var params = 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1';
		popup=window.open(url,'popup',params+',width='+width+',height='+height+',top='+10);
		if (window.focus) popup.focus();
	}
}

var eac_homePath	= '/common';
var eac_showEffect 	= 'Grow';
var eac_hideEffect 	= 'Shrink';

if (typeof Parameters != 'undefined') {
	switch (Parameters.ProductID) {
		case 'TGL':
			var eac_onPageStyle	= 'border: .1em solid #06c; background-color: #fff; padding: 0em;';
			//EAC.setExitPop('/exit_pop.php',475,440,'center','center',{id:'exitpop_test',per:'session'});
			break;
		case 'TGC':
			var eac_onPageStyle	= 'border: .1em solid #06c; background-color: #fff; padding: 0em;';
			break;
		default:
			var eac_onPageStyle	= 'border: .1em solid #777; background-color: #fff; padding: 0em;';
	}
} else
	var eac_onPageStyle	= 'border: .1em solid #777; background-color: #fff; padding: 0em;';

if (typeof EAC != 'undefined') {
	EAC.setDefaults();
} else {
	var EAC = {
		onThisPage : function (a1,a2,a3,a4,a5,a6) {inwindow(a1,a2,a3);return false;},
		inWindow : function (a1,a2,a3,a4,a5,a6) {inwindow(a1,a2,a3);return false;}
	}
}

