/* ------------------------------------------------------------------------- */
/* FUNCTIONS */
/* ------------------------------------------------------------------------- */
// Save query string paramters
var VQS = new Array();
var aParams = document.location.search.substr(1).split('&');	
for ( i = 0 ; i < aParams.length ; i++ )
{
	var aParam = aParams[i].split('=');
	VQS[aParam[0]] = aParam[1];
}

function resetApplication() { window.location = self.location; }

/* ------------------------------------------------------------------------- */
/* Create flash instance */
/* ------------------------------------------------------------------------- */
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) 
{  
	var uid = new Date().getTime();
	var flashProxy = new FlashProxy(uid, 'jsfg.swf');
	var tag = new FlashTag('http://vemoworkforce.com/hrmetrics/hrmetrics.swf', 100, 100);
	var sid = VQS["SID"] || VQS["sid"];
	if (sid) uid += "&sid=" + sid;
	tag.setFlashvars('lcId=' + uid);
	//tag.write(document);
	document.write(tag);
} 
else 
{ 
	var alternateContent = "<div id='notice' style='position:absolute;z-index:666;left:50%;top:50%;margin-left:-150px;margin-top:-140px;border:2px solid #cc0000;width:300px;background-color:#ffffff;padding:10px;font-size:.8em;filter:alpha(opacity=90);-moz-opacity:.9;'><div style='background-color:#cc0000;color:#ffffff;font-weight:bold;width:100%;text-align:center;'>NOTICE</div><br /><p>This site requires the latest version of Macromedia&#146;s Flash Player. Click here to get <a href='http://www.macromedia.com/go/getflash/'>Flash</a>.</p><br /><p>No part of Vemo Inc. may be reproduced, in whole or in part, without the specific written permission of Vemo Inc. Unless otherwise stated, all material on this web site is Copyright © 2006 Vemo Inc. All rights reserved.</p><br /><p><b>Online Privacy Director<br /><a style='color:#cc6633;text-decoration:none;' href='&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#118;&#101;&#109;&#111;&#105;&#110;&#99;&#46;&#99;&#111;&#109;'>&#115;&#117;&#112;&#112;&#111;&#114;&#116;&#64;&#118;&#101;&#109;&#111;&#105;&#110;&#99;&#46;&#99;&#111;&#109;</a></b></p></div>";
	document.write(alternateContent);  // insert non-flash content
}
