var strCurrentCommand = "default"
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.


function swooshPress(args) {
	switch(args) {
		case 'tc':
			window.location = '/es_mx/products/teamcenter/index.shtml';
			break;
		
		case 'tcno':
			window.location = '/es_mx/products/tecnomatix/index.shtml';
			break;
			
		case 'nx':
			window.location = '/es_mx/products/nx/index.shtml';
			break;
	}
	
}

function swooshRollover(args) {
	if (args != strCurrentCommand) {
		switch(args) {
			case 'tc':
				changeTopic('/es_mx/products/by_lifecycle/teamcenter.html');
				strCurrentCommand = args;
				break;
			
			case 'tcno':
				changeTopic('/es_mx/products/by_lifecycle/tecnomatix.html');
				strCurrentCommand = args;
				break;
				
			case 'nx':
				changeTopic('/es_mx/products/by_lifecycle/nx.html');
				strCurrentCommand = args;
				break;
		
			case 'default':
				changeTopic('/es_mx/products/by_lifecycle/welcome.html');
				strCurrentCommand = args;
				break;
				}
		}
}




function handleHttpResponse() {
  if (http.readyState == 4) {
		document.getElementById('snapshot').innerHTML = http.responseText;
		processingOff();
  }
}

function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

function changeTopic(strFile) {
	// Populate the areas of the page based on the combo selection
	//first Put Up Processing Symbol
	
	if (strFile != "") {
		processingOn();
  		http.open("GET", strFile, true); // + escape(zipValue)
  		http.onreadystatechange = handleHttpResponse;
  		http.send(null);
	}
	
}

function processingOn() {
	window.status = "loading...";
}

function processingOff() {
	window.status = "";
}

var http = getHTTPObject();