//drawUtils.js

function resetDomain() {
	//first get the right domain (in case you're on netmovein.com)
	domain =  (officer.defaultDomain != domain) ? officer.defaultDomain : domain;
}

function writeStyle() {
	//grab the domain-specific stylesheet
	document.write('<link rel="StyleSheet" href="css/' + domain + '.css" type="text/css" media="screen">');
}

function drawPage() {
	//write the page by appending the appropriate siteTemplate script
	document.write('<script type="text/JavaScript" language="JavaScript" src="siteTemplates/' + domain + '.js"></' + scriptString + '>');
}

function create() {
	//change the domain accordingly
	resetDomain();

	//grab the stylesheet
	writeStyle();

	//write the page based on the template
	drawPage();
}
