var curStore = getStoreID();
var curReseller = getResellerID();

if (curReseller == null || curReseller.length == 0)
{
	curReseller = getPID();
}

var arSL = new Array();

if (curStore == "2") {
arSL["SF2002"]    = "http://esd.element5.com/product.html?cart=1&productid=505219&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["SF2002PRO"] = "http://esd.element5.com/product.html?cart=1&productid=505222&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["PW2002"]    = "http://esd.element5.com/product.html?cart=1&productid=505223&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["PW2002PRO"] = "http://esd.element5.com/product.html?cart=1&productid=505225&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["dcSF2002"]    = "http://esd.element5.com/product.html?cart=1&productid=506794&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["dcPW2002"]    = "http://esd.element5.com/product.html?cart=1&productid=506796&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
}
else {
arSL["SF2002"]    = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=SF2002" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["SF2002PRO"] = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=SFPRO" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["SF2004PRO"]  = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=SF2004" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["SF2004PROCD"]= "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=SF2004CD" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["SF2004UPG"]  = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=upSF2004" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["PW2002"]    = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=PW2002" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["PW2002PRO"] = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=PWPRO" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["PW2004PRO"] = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=PW2004" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["PW2004PROCD"]= "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=PW2004CD" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["PW2004UPG"]  = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=upPW2004" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["dcSF2002"]    = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=dcSF2002&Affiliate=" +
	(curReseller ? "&Affiliate=" + curReseller : "");
arSL["dcPW2002"]    = "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=dcPW2002&Affiliate=" +
	(curReseller ? "&Affiliate=" + curReseller : "");
}

arSL["RSF2002"]    = "http://esd.element5.com/product.html?cart=1&productid=508092&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["RSF2002PRO"] = "http://esd.element5.com/product.html?cart=1&productid=508093&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["RPW2002"]    = "http://esd.element5.com/product.html?cart=1&productid=508090&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");
arSL["RPW2002PRO"] = "http://esd.element5.com/product.html?cart=1&productid=508091&languageid=1&currencies=USD&cookies=1&additional1=YES" +
	(curReseller ? "&reseller=" + curReseller : "");

arSL["BuzMe"]			= "http://www.buzme.com/?pid=RCW10052001&override=no";
arSL["BuzMe_Signup"] = "http://www.buzme.com/?signup=select&pid=RCW10052001&override=no";
arSL["CallWorks"]	= "http://www.ringcentral.net/?pid=RCW08152002&override=no";
arSL["ClFaxReg"]	= "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=CLFAXREG";
arSL["ClFaxPro"]	= "http://www.ringcentral.biz/store/merchant.mv?Screen=PROD&Store_Code=LVAFSFR&Product_Code=CLFAXPRO";

function getURL(patt) {
	return arSL[patt];
}