﻿<SCRIPT language=JavaScript>

	function launch_samples(id,stype){window.open('samples/samples_container.html?'+stype+','+id, 'samples_window', "width=760, height=503, left=50, top=50, menubar=0, status=0, location=0, toolbar=0, scrollbars="+scroll+", resizable=0")}

	function handle_sample_select(src_obj)
	{


		(src_obj.value.indexOf("ns") > -1) ? stype = "navstudio" : stype = src_obj.getAttribute("stype"); ;

		effect_index = parseInt(src_obj.value);

		if (effect_index > 0)
		{
			ifr = document.getElementById("sample_iframe");
			ifr.src = "samples/"+stype+"_"+effect_index+".html";


		}

		stags = document.getElementsByTagName("SELECT");
		for (si=0;si<stags.length;si++)
		{
			if ((stags[si]!=src_obj) && (stags[si].getAttribute("stype")))
			{
				stags[si].selectedIndex = 0;

			}


		}


		//fix the location of the page
		window.scroll(0,1000);

	}


	function launch_mouse_trends()
	{

		if (window.showHelp) 
		{
			window.open('http://www.opencube.com/index_mt.asp','slogreport')

		}
		else
		{

			alert('To use the MouseTrends in-page reporting interface, please use IE6.0 & up.');

		}

	}

</SCRIPT>