<!--
function showText(id) {
//swaps out divs on sub pages
if(id == 'EDTryIt')
{
	var formSpan = document.getElementById('netsformSpan');
	formSpan.style.position = "absolute";
	formSpan.style.top = "70px";
	formSpan.style.display = "block";
	var formTop = document.getElementById('netsform');
	formTop.style.position = "relative";
	formTop.style.top = "100px";
	var formFrame = document.getElementById('netsFrame');
	formFrame.src = "blank.html";
}
if(id == 'SMBTryIt')
{
	var formSpan = document.getElementById('qbsformSpan');
	formSpan.style.position = "absolute";
	formSpan.style.top = "70px";
	formSpan.style.display = "block";
	var formTop = document.getElementById('qbsform');
	formTop.style.position = "relative";
	formTop.style.top = "100px";
	var formFrame = document.getElementById('bizFrame');
	formFrame.src = "blank.html";
	var formTip = document.getElementById('srchTip');
	formTip.innerHTML="";
}
 Element.siblings(id).each( function(element) { //find visible div and hide it

  if(element.visible() &&  element != $('intro') && element != $('print_address')) {
    element.hide();
    navelement = 'n'+ Element.identify(element);
    if ($(navelement) != null ) {$(navelement).removeClassName('selected')};
    headlineelement = Element.identify(element) + 'head';
    extraelement = Element.identify(element) + 'extra';
    if ($(headlineelement) != null && $(headlineelement).visible()) {$(headlineelement).hide()};
    if ($(extraelement) != null && $(extraelement).visible()) {$(extraelement).hide()};
    //Effect.Fade(element);
  }
 }); 
$('text').classNames().each( function(element) {
    $('text').removeClassName(element);
 })
 $('text').addClassName(id.toLowerCase());
 Effect.Appear(id, { duration: 1.0 });
 $('n'+id).addClassName('selected');
if ($(id+ 'img') != null) $(id+ 'img').appear();
if ($(id+ 'extra') != null) $(id+ 'extra').appear();
if ($(id+ 'head') != null) $(id+ 'head').appear();
}

function swapPhoto(id) {
 Element.siblings(id).each( function(element) { //find visible div and hide it
  if(element.visible() &&  element != $('address')) {
    element.hide();
  }
 });  
Effect.Appear(id, { duration: 1.0 });
}

function showSelectedAnchor() {
	
 if (self.document.location.hash != null && $(self.document.location.hash.substring(1))) {
   showText(self.document.location.hash.substring(1));
 }

}
function embedVideo(dir,mov,ply,w,h,ff,id) {
  var video = '<object id="scPlayer" class="embeddedObject" width="'+w+'" height="'+h+'" type="application/x-shockwave-flash" data="http://content.screencast.com/users/EconoVue/folders/Default/media/'+dir+'/'+ply+'.swf" > <param name="movie" value="http://content.screencast.com/users/EconoVue/folders/Default/media/'+dir+'/'+ply+'.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param id="purl" name="flashVars" value="thumb=http://content.screencast.com/users/EconoVue/folders/Default/media/'+dir+'/'+ff+'&containerwidth='+w+'&containerheight='+h+'&content=http://content.screencast.com/users/EconoVue/folders/Default/media/'+dir+'/'+mov+'&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/EconoVue/folders/Default/media/'+dir+'/" /> <video width="'+w+'" height="'+h+'" controls="controls"><br /><source  src="http://content.screencast.com/users/EconoVue/folders/Default/media/'+dir+'/'+mov+'" type="video/mp4;" /><br />  <b>Your browser cannot play this video. <a href="http://www.screencast.com/handlers/redirect.ashx?target=viewingembededhelp">Learn how to fix this</a>.</b> </video> </object>';
	document.getElementById("playwindow").innerHTML = video;
	if(id == 'MapInterface')
	{
		document.getElementById("vidDescription").innerHTML = "<p><b><u>EconoVue's Mapping Interface</u></b></p><p>This video covers:</p><ul class='rolloverBenefits'><li>Mouse movement and the map, including showing map tips when hovering and selecting features when clicking</li><li>3D Mapping</li><li>Navigating to a specific location</li><li>Zooming the map, via the 'Zoom Item' tool and the interactive 'Scale Bar'</li><li>Panning the map, via interactive arrows and dragging the map</li></ul>";
	}
	else if(id == 'MapSelection')
	{
		document.getElementById("vidDescription").innerHTML = "<p><b><u>Ways to Select Regions</u></b></p><p>This video covers four methods of selected an area or region:</p><ul class='rolloverBenefits'><li>Clicking on the map</li><li>Selecting a region from the 'Region Ranking List'</li><li>Typing in a city or zip code</li><li>Selecting a radius around a point</li></ul>";
	}
	else if(id == 'TrendReport')
	{
		document.getElementById("vidDescription").innerHTML = "<p><b><u>Generating Industry Trend Reports</u></b></p><p>This video illustrates time series mapping and generating trend reports for selected regions.  Topics include:</p><ul class='rolloverBenefits'><li>Selecting years from an interactive timeline</li><li>Selecting an area and generating an industry sector table and time graph</li><li>Exporting trend data to a multi-year Excel workbook</li></ul>";
	}
	else if(id == 'ThematicMap')
	{
		document.getElementById("vidDescription").innerHTML = "<p><b><u>Thematic Time Series Mapping</u></b></p><p>This video covers EconoVue's four methods of generating 'Thematic' (or colored) Maps:</p><ul class='rolloverBenefits'><li>Mapping by industry sector</li><li>Mapping by geographic boundary (cities, zip codes, census tracts)</li><li>Mapping by distribution of businesses, employment and sales</li><li>Mapping by year via the interactive timeline to map </li></ul>";
	}
	else if(id == 'BusinessList')
	{
		document.getElementById("vidDescription").innerHTML = "<p><b><u>Generating Business Lists</u></b></p><p>This video illustrates how to run a filtered search for businesses and exporting the list.  Specifically, it covers:</p><ul class='rolloverBenefits'><li>Running a filtered business search</li><li>Generating a list of businesses for a selected region</li><li>Retrieving details about companies</li><li>Exporting the business list to an Excel spreadsheet</li></ul>";
	}

}
function ClearForm(input) {
  input.value = '';
}
function OpenWin(page)
{
	var w = window.open(page,'Popup_Window','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=750,height=560,left=200,top=100');
	return true;
}

