// figures out where we are so we can set our location to the centralized flash navagation movie...
function GetDirLvls(){
	var rtnValue = ""
	sTmp = (location.href.substring(0, location.href.lastIndexOf("/")).toLowerCase())
	sTmp = sTmp.replace("newstoris.com/", "")
	sTmp = sTmp.replace("newstoris.com", "")
	sTmp = sTmp.replace("storis.com/", "")
	sTmp = sTmp.replace("storis.com", "")
	sTmp = sTmp.replace("http://flaserver/", "")
	sTmp = sTmp.replace("http://flaserver", "")
	if (sTmp != ""){
		arrTmp = sTmp.split("/")
		for(var i = 0;i < (arrTmp.length);i++){
		rtnValue = rtnValue + "../"
		}
	}
	return rtnValue
}


var DirLocation = (GetDirLvls());
/* we add a random number to the end of our flash url to force IE to download a fresh copy each time so variables generated
 for the flash movie on the fly are updated each time a page is accessed or refreshed... */

/* // old flash navigation...
var RandomNum = Math.round(Math.random()*50000);
var RandomFlashURL1 = (DirLocation + "inc/swf/headerFullScreen.swf?CacheBuster=" + (RandomNum));
var RandomFlashURL2 = (DirLocation + "inc/swf/headerFullWidth.swf?CacheBuster=" + (RandomNum));
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
	// Movie one. contains navagation...
	var oeTags1 = '<table style="padding:0;margin:0;border:0;border-collapse:collapse;width:100%;background-color:#ffffff;">'
	+ '<tr>'
	+ '<td rowspan="2" style="width:775px;padding:0;margin:0;vertical-align:top;">'
	+ '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" style="width:775px;height:238px;" id="headerFullScreen" align="middle">'
	+ '<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+RandomFlashURL1+'" /><param name="FlashVars" value="aspPath='+DirLocation+'" />'
	+ '<param name="menu" value="false" /><param name="swliveconnect" value="true" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
	+ '<embed src="'+RandomFlashURL1+'" menu="false" quality="high" style="background-color:#ffffff;width:775px;height:238px;" FlashVars="aspPath='+DirLocation+'" name="headerFullScreen" swLiveConnect=true align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
	+ '</object>'
	+ '</td><td style="background-image:url(' + DirLocation + 'images/NonFlashTopBG.gif);text-align:left;height:79px;"></td></tr><tr>'
	+ '<td style="background-image:url(' + DirLocation + 'images/NonFlashNavBG.gif);padding:0;margin:0;border:0;border-collapse:collapse;">'
	+ '<img src="' + DirLocation + 'images/NonFlashNavRight.jpg" style="width:14px;height:162px;float:right;" alt=""/>'
	+ '</td></tr></table>';
}else{  // flash is too old or we can't detect the plugin...
	var oeTags1 = '<map name="NonFlashNav">'
	+ '<area alt="" coords="15,17,230,40" href="' + DirLocation + 'index.asp">'
	+ '<area alt="" coords="15,41,231,67" href="' + DirLocation + 'about.asp">'
	+ '<area alt="" coords="15,69,232,94" href="' + DirLocation + 'products.asp">'
	+ '<area alt="" coords="14,95,233,121" href="' + DirLocation + 'services.asp">'
	+ '<area alt="" coords="14,123,231,148" href="' + DirLocation + 'support/">'
	+ '<area alt="" coords="233,15,370,148" href="#">'
	+ '<area alt="" coords="372,15,510,150" href="#">'
	+ '<area alt="" coords="513,14,653,148" href="#">'
	+ '</map>'
	+ '<table style="padding:0;margin:0;border:0;border-collapse:collapse;width:100%;">'
	+ '<tr><td style="background-image:url(' + DirLocation + 'images/NonFlashTopBG.gif);"><img src="' + DirLocation + 'images/NonFlashLogo.jpg" style="height:80px;border:0;" alt=""></td></tr>'
	+ '<tr><td style="width:100%;background-image:url(' + DirLocation + 'images/NonFlashNavBG.gif);padding:0;margin:0;border:0;border-collapse:collapse;">'
	+ '<img src="' + DirLocation + 'images/NonFlashNavRight.jpg" style="width:14px;height:162px;float:right;" alt=""/>'
	+ '<img src="' + DirLocation + 'images/NonFlashNav.jpg" style="width:773px;height:162px;border:0;" alt="" usemap="#NonFlashNav">'
	+ '</td>'
	+ '</tr>'
	+ '</table>';
	 // var alternateContent = 'Alternate HTML content should be placed here.'
	// + 'This content requires the Macromedia Flash Player.'
	// 	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
  }
  
  document.write(oeTags1);
  
  */