function LaunchInventory()
{
	var theNumber 	= LaunchInventory.arguments[0];
	
	var windowlocation 	= "?item=" +theNumber;
	var windowDNA 		= "'/inventory/" + windowlocation + "','inventorycheck','width=300,height=400,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=1'"
	var spawnWindow 	= eval("open("+ windowDNA +")");
	spawnWindow.moveTo(((screen.width/2)-150),100);
	spawnWindow.focus();
}

function AddToCart()
{
	var theNumber 		= AddToCart.arguments[0];
	var theSubDomain 	= AddToCart.arguments[1];
	var theDomainExtension	= AddToCart.arguments[2];

	var windowlocation 	= "/carts/multicart.aspx?item=" + theNumber
	var windowDNA 		= "'http://"+theSubDomain+ ".leedsworld." +theDomainExtension + windowlocation + "','ordersample','width=500,height=500,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=1'"
	var spawnWindow 	= eval("open("+ windowDNA +")");
	spawnWindow.moveTo(((screen.width/2)-200),100);
	spawnWindow.focus();
}

function EmailThisPage()
{
	var theNumber = EmailThisPage.arguments[0];
	var windowlocation 	="/email/friend/?item=" + theNumber;
	var windowDNA 		= "'"+ windowlocation + "','emailthispage','width=400,height=600,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=1'";
	var spawnWindow 	= eval("open("+ windowDNA +")");
	spawnWindow.moveTo(((screen.width/2)-200),100);
	spawnWindow.focus();
}


		
function addPortfolio()
			{
	var theNumber 		= addPortfolio.arguments[0];
	var theCurrency 	= addPortfolio.arguments[1];
	var theSubDomain 	= addPortfolio.arguments[2];
	var theDomainExtension	= addPortfolio.arguments[3]; // var theDomainExtension = (theCurrency=="CDN")?"ca":"com";

	if (theCurrency == 'CDN') {theCurrency = "canada"}
		
	var windowlocation 	= "http://"+theSubDomain+".leedsworld."+theDomainExtension+"/clickandcreate/popup/popup.asp?productnumber=" + theNumber + "&currency=" + theCurrency;
	var windowDNA 		= "'" + windowlocation + "','myPortfolio','width=300,height=400,status=yes,menubar=no,toolbar=no,scrollbars=yes,resizable=1'";
	var spawnWindow 	= eval("open("+ windowDNA +")");
	spawnWindow.moveTo(((screen.width/2)-150),100);
	spawnWindow.focus();
}	
//jv buzzhoney 03/05/2009
//new code to support my.leedsworld click and create 
//to implement: delete current addPortfolio function and uncomment new addPortfolio function
//make sure App_UserControls/Toolbar.ascx.cs code is upadted with changes as well
function addPortfolio()
{	
	var myUrl = addPortfolio.arguments[0];
	var productNumber = addPortfolio.arguments[1];
	var currency = addPortfolio.arguments[2];
	var windowlocation = "http://" + myUrl +"?productnumber=" + productNumber + "&currency=" + currency;
	var windowDNA 		= "'" + windowlocation + "','myPortfolio','width=550,height=400,status=yes,menubar=yes,toolbar=no,scrollbars=yes,resizable=1'";
    var spawnWindow 	= eval("open("+ windowDNA +")");
	spawnWindow.moveTo(((screen.width/2)-150),100);
	spawnWindow.focus();
}	
	
	
