/* 
	hack to keep netscape happy (or at least quiet) when it encounters rollovers in divs
*/

var wasteoftime=0;
onError=catcher;

function catcher() {
wasteoftime++;
return true;
}

function rollOver(which) {

var on="http://img.cmpnet.com/infoweek/new/nav_" + which + "_on.gif";
		// DOM0
		if(document.images) {
		document.images[which].src=on;
		}
		// DOM1
		else if (document.GetElementById){
		document.GetElementById(which).src=on;
		}
}

function rollOff(which) {

var off="http://img.cmpnet.com/infoweek/new/nav_" + which + "_off.gif";

		if(document.images) {
		document.images[which].src=off;
		}
		
		else if (document.GetElementById){
		document.GetElementById(which).src=off;
		}
}

/* 
	these two functions may be needed if over/on states are added to the subnav items
*/

function subOver(which) {

var on="http://img.cmpnet.com/infoweek/new/subnav_" + which + "_on.gif";
		// DOM0
		if(document.images) {
		document.images[which].src=on;
		}
		// DOM1
		else if (document.GetElementById){
		document.GetElementById(which).src=on;
		}
}

function subOff(which) {

var off="http://img.cmpnet.com/infoweek/new/subnav_" + which + "_off.gif";

		if(document.images) {
		document.images[which].src=off;
		}
		
		else if (document.GetElementById){
		document.GetElementById(which).src=off;
		}
}

/* 
	these two functions add over states to the child menu arrows
*/

function arrowOn(which) {

		// DOM0
		if(document.images) {
		document.images[which].src="http://img.cmpnet.com/infoweek/new/nav_tri_on.gif";
		}
		// DOM1
		else if (document.GetElementById){
		document.GetElementById(which).src="http://img.cmpnet.com/infoweek/new/nav_tri_on.gif";
		}
}

function arrowOff(which) {

		if(document.images) {
		document.images[which].src="http://img.cmpnet.com/infoweek/new/nav_tri_off.gif";
		}
		
		else if (document.GetElementById){
		document.GetElementById(which).src="http://img.cmpnet.com/infoweek/new/nav_tri_off.gif";
		}
}


// umbrella cleanup for global nav

function allrollsOff () {
        rollOff('hardware');rollOff('software');rollOff('networking');rollOff('it_services');rollOff('business_management');rollOff('career_development');
}

function allparentsOff () {
	switchOff('menu1');switchOff('menu2');switchOff('menu3');switchOff('menu4');switchOff('menu5');switchOff('menu6');
}

function allchildrenOff () {
	switchOff('child1');switchOff('child2');switchOff('child3');switchOff('child4');
}

function switchOn(which) {
{
	if (document.layers) // NS4
	{
		document.layers[which].visibility = 'show';
	}
	else if (document.all) // IE4
	{
		document.all[which].style.visibility = 'visible';
	}
	else if (document.getElementById) // DOM1 - IE5.x, NS6
	{
		document.getElementById(which).style.visibility = 'visible';

	}
  }
}

function switchOff(which) {
{
	if (document.layers)
	{
		document.layers[which].visibility = 'hide';
	}
	else if (document.all)
	{
		document.all[which].style.visibility = 'hidden';
	}
	else if (document.getElementById)
	{
		document.getElementById(which).style.visibility = 'hidden';

	}
  }
}

