// <!--
// Popup window for WebExOne.com
var newwindow = '';
function open_popup(url,w,h,tool,loc,stat,menu,scroll,resize,hist)
{ 
if (newwindow.location && !newwindow.closed)
	{
		newwindow.location.href = url;
	}
	else
	{
      newwindow=window.open(url, "_remote_control", "toolbar=" + tool + ",location=" + loc + ",status=" + stat + ",menubar=" + menu + ",scrollbars=" + scroll + ",resizable=" + resize +  ",copyhistory=" + hist + ",width=" + w + ",height=" + h);  
	}
	if (window.focus) {newwindow.focus()}

 
}


// EXAMPLE: JavaScript:onclick=open_popup('http://www.webexone.com/productinfo/demo/default.asp', 600, 400, No, No, No, No, No, No, No)
// -->

// <!--
// Popup window for WebExOne.com


//  SPECIFICALLY FOR THE INTERACTIVE TOUR THAT POPS UP FROM THE /DEMO/Default.asp page
	var PopDemoSwitch='true';

function PopDemoSwitchOff(){
		PopDemoSwitch='false';
		// alert ("Changed = " + PopDemoSwitch);
		}
		
function PopDemo(){
		if (PopDemoSwitch=='true'){
			// alert ("PopupDemoSwitch1 = " + PopDemoSwitch);
			PopDemoSwitch='false';
			// alert ("PopupDemoSwitch2 = " + PopDemoSwitch);
			open_popup('/demo/demo1_2.asp', 640, 600, 0, 0, 0, 0, 0, 0, 0);
			}
		}

// setTimeout('PopDemo()',10000);




		var jcsecs = 11
		function showtime()
		{
			// this doesn't work correctly at midnight...
		
			if (jcsecs==0)
			{
				document.ShowTime.JSTimer.value = jcsecs
				PopDemo()			
			}
			else
			{
				if (PopDemoSwitch=='true'){
				jcsecs = jcsecs - 1
				timerRunning = true
        		document.ShowTime.JSTimer.value = jcsecs
				timerID = self.setTimeout("showtime()", 1000)
				}			
			}
		}
		




