/* drop-down URL selection functions begin here */

function jumpToURL()
{
	var urlArray = new Array;
	// "introduction" title
	urlArray[1] = new Array();
	urlArray[1][3] = "http://www.mhteched.com/norton/online/introduction/"; 
	urlArray[1][4] = "http://www.mhteched.com/norton/norton4e/introduction/"; 
	urlArray[1][5] = "http://www.mhteched.com/norton/norton5e/introduction/";
	urlArray[1][6] = "/teched/norton/norton6e/introduction/";
	// "fundamentals" title
	urlArray[2] = new Array();
	urlArray[2][3] = "http://www.mhteched.com/norton/online/fundamentals/"; 
	urlArray[2][4] = "http://www.mhteched.com/norton/norton4e/fundamentals/"; 
	urlArray[2][5] = "http://www.mhteched.com/norton/norton5e/fundamentals/";
	urlArray[2][6] = "/teched/norton/norton6e/fundamentals/";
	// "essentials" title
	urlArray[3] = new Array();
	urlArray[3][3] = "http://www.mhteched.com/norton/online/essential/"; 
	urlArray[3][4] = "http://www.mhteched.com/norton/norton4e/essential/"; 
	urlArray[3][5] = "http://www.mhteched.com/norton/norton5e/essentials/";
	urlArray[3][6] = "/teched/norton/norton6e/essential/";
	title = document.forms[0].elements[0].value;
	edition = document.forms[0].elements[1].value;
	document.location.href = urlArray[title][edition];
}


/* drop-down URL selection functions end here */


/* image swap functions begin here */
var numImages = 4;
var flag = 999;
function swapImage(num, state)
{
	if (document.images)
	{
		if (state == 'H')
		{

			for (x=1; x<=numImages; x++)
			{
				if (x == flag) { continue; }
				obj = eval("document.image" + x);
				obj.src = "../../images/1px.gif";		
			}
			obj = eval("document.image" + num);
			obj.src = "../../images/green_dot.gif";		
		}
		else if (state == 'N')
		{
			if (num != flag)
			{
				obj = eval("document.image" + num);
				obj.src = "../../images/1px.gif";		
			}
		}
		else if (state == 'C')
		{
			for (x=1; x<=numImages; x++)
			{
				obj = eval("document.image" + x);
				obj.src = "../../images/1px.gif";		
			}
			obj = eval("document.image" + num);
			obj.src = "../../images/green_dot.gif";		
			flag = num;	
		}
	
					
	}
}
/* image swap functions end here */


/* menu display functions start here */

function renderMenu(id, state)
{
	obj = document.getElementById(id);;
	if (state == 1)
	{
		obj.style.display='block';
	}
	else
	{
		obj.style.display='none';
	}
}

/* menu display functions end here */


/* window pop functions begin here */

function popWindow(url)
{
   var newWin = window.open(url,"","resizable=yes,menubar=yes,toolbar=yes,width=500,height=300,scrollbars=yes");    
}


/* window pop functions end here */
