var default_apiurl = "http://api.dimestore.com";
var default_projectid = -1;
var default_identifier = "";
//var swfpath = "http://content.dimestore.com/prod/swf";

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>');
