// JavaScript Document


function showPres2()
{
	var newWin,str;
	var opts = "menubar=no,toolbar=no,statusbar=no,width=812,height=612,resize=no";
	str="Video/stpres2.html";
	newWin = window.open(str,"PresentationProgress",opts);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}


var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		mainbackgroundimage = newImage("images/nuBackSliver2.jpg");
		preloadFlag = true;
	}
}



// Example:
// simplePreload( '01.gif', '02.gif' ); 

/*
function simplePreload()
{ 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

simplePreload('menu_images/submenu-off.gif','menu_images/submenu-on.gif','menu_images/x.gif');

*/
		
		
			function init() {
			//==========================================================================================
			// if supported, initialize TransMenus
			//==========================================================================================
			// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
			// This is better than server-side checking because it will also catch browsers which would
			// normally support the menus but have javascript disabled.
			//
			// If supported, call initialize() and then hook whatever image rollover code you need to do
			// to the .onactivate and .ondeactivate events for each menu.
			//==========================================================================================
			if (TransMenu.isSupported()) {
				TransMenu.initialize();

				// hook all the highlight swapping of the main toolbar to menu activation/deactivation
				// instead of simple rollover to get the effect where the button stays hightlit until
				// the menu is closed.
				
				
				
				// menu1.onactivate = function() { document.getElementById("mhome").className = "hover";} 
				// menu1.ondeactivate = function() { document.getElementById("mhome").className = "";}
				
				
				
				menu2.onactivate = function() { document.getElementById("msolutions").className = "hover";};
				menu2.ondeactivate = function() { document.getElementById("msolutions").className = "";};


				menu3.onactivate = function() { document.getElementById("mproducts").className = "hover";};				
				menu3.ondeactivate = function() { document.getElementById("mproducts").className = "";};
								
				
				// menu4.onactivate = function() { document.getElementById("mclients").className = "hover";};
				// menu4.ondeactivate = function() { document.getElementById("mclients").className = "";};
				
				
				// menu5.onactivate = function() { document.getElementById("mnews").className = "hover";};
				// menu5.ondeactivate = function() { document.getElementById("mnews").className = "";};
							

				menu6.onactivate = function() { document.getElementById("mcompany").className = "hover";};
				menu6.ondeactivate = function() { document.getElementById("mcompany").className = "";};

				/*
				menu5.onactivate = function() { document.getElementById("faq").className = "hover"; 
				changeImages('faq', 'images/faq-over.gif'); return true;};
				menu5.ondeactivate = function() { document.getElementById("faq").className = ""; 
				changeImages('faq', 'images/faq.gif'); return true;};
				*/
				
				document.getElementById("mcontact").onmouseover = function() {
					ms.hideCurrent();
					this.className = "mcontact";
				};

				document.getElementById("mcontact").onmouseout = function() { 
				this.className = "";
				};
			}
		}
		
		
