var default_apiurl = "http://api.dimestore.com";
var default_projectid = -1;
var default_identifier = "";
var default_dsmSecure = false;
var swfpath = "http://content.dimestore.com/prod/swf";
getVarValue("dsmSecure");
if(dsmSecure == true || projectid==3888 || projectid==3889 || projectid==4003 || projectid==4005 || projectid==4008 || projectid==4325 || projectid==4326) {
	apiurl = "https://track.dimestore.com";
}
getVarValue("apiurl");
getVarValue("projectid");
getVarValue("identifier");


function getVarValue (variableName){
	try{
		eval("if (" + variableName + " == null) " + variableName + " = default_" + variableName + ";");
	}
	catch(e){
		try{
			eval(variableName + " = default_" + variableName + ";");
		}
		catch (e){
			eval(variableName + " = null;");
		}
	}
}
document.write('<script src="' + apiurl + '/viapi?action=project&projectId=' + projectid + '&identifier=' + identifier + '"></scr' + 'ipt>');

