var debug = false;
var loaded = false;
var ie = false;
var ie5 = false;
if (navigator.appVersion.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1){
	ie = true;
}
var running    = false;
var timerID    = null;
var delay      = 150;
var currentID  = null;

var currTiny = '';
var tabmanager = '';
var usertab = null;
var currentMenu = 'none';

function search_submit() {
	if (document.getElementById('search_target').selectedIndex == 0) {
		var qt = document.getElementById('search').value;
		motoWindow = window.open('http://search.motorola.com/query.html?charset=utf-8&qt=' + qt, '_blank');
		motoWindow.focus();
	}
	else {
		document.getElementById('search_form').submit();
	}

	return false;
}

function emailthis() {
	page = document.URL;
	if (usertab) {
		tab = 'tab='+usertab+'&';
	} else {
		tab = '';
	}
	window.open('/email_page/?'+''+'mail_location='+encodeURI(page),'emailwindow','width=495,height=420');
}
function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp('(^|\\s)'+searchClass+'(\\s|$)');
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

function StartTimer(event) {
	running = true;
	timerID = setTimeout(event, delay);
}

function StopTimer() {
	running = false;
	clearTimeout(timerID);
}

function menuOn(id) {
  if (running) {
		StopTimer();
	}
	menu = document.getElementById(id);
	if (menu) {
		if (menu.className == 'topnavmenu' || menu.className == 'menu_on') {
			try  { topnavOn(id);}
			catch(err) {return null; }
		}
		if (menu.className == 'sublink') {
			try  { sublinkOn(id);}
			catch(err) {return null; }
		}
		if (menu.className == 'endpoint') {
			try  {endpointOn(id);}
			catch(err) {return null; }
		}
	}
}

function getAbsTop(obj)
{
	var top = 0;
	while(obj.offsetParent)
	{
		top += obj.offsetTop;
		obj = obj.offsetParent;
	}
	return top;
}

function getAbsLeft(obj)
{
	var left = 0;
	while(obj.offsetParent)
	{
		left += obj.offsetLeft;
		obj = obj.offsetParent;
	}
	return left;
}

function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft;
			obj = obj.offsetParent;
		}
	}
	else {
		if (obj.x) {
			curleft += obj.x;
		}
	}

	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else {
		if (obj.y) {
			curtop += obj.y;
		}
	}

	return curtop;
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
	}
	return [curleft,curtop];
}
function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}

function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}

function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}

function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}

function shadowBox(id) {
	if (element("bg_"+id)) {
		if (element("bg_"+id).style.display != "block") {
			element("bg_"+id).style.display="block";
		}
	}

	else {
		var xleft = 0;
		var xtop = 0;
		var posxy = new Array();
		var left_pos = 0;
		var zi = 0;

		target = element(id);
		if (target) {
			bg = element('bgdhtml');
			xheight = target.offsetHeight;
			position = findPos(target);
			posxy = position.toString().split(',');
			xleft = posxy[0];
			xtop = posxy[1];
			trans = document.createElement("DIV");
			trans.setAttribute("id", "bg_"+id);
			trans.className = 'menutransp';
			trans.style.display = "block";
			trans.style.height = xheight + "px";
			trans.style.top = '4px';
			trans.style.left = '6px';
			trans.style.zIndex = '-10';

			target.appendChild(trans);
		}
	}
}

function topnavOn(id) {
	menu = element(id);
	if (menu) {
		target = id.split("_");
		rel = menu.getAttribute("rel");
		thisMenu = document.getElementById('top_'+target[1]);
		thisMenu.style.display='block';

		/////////
		// BEGIN

		showSelectBoxes();
		hideSelectBox(thisMenu);

		// END
		///////

		topnavmenu = element("main_list");
		listing = topnavmenu.getElementsByTagName("LI");
		backgrounds = element('bgdhtml');
		bck = backgrounds.getElementsByTagName('DIV');
		//for (i=0; i<bck.length; i++) {
		for (i=bck.length-1; i>=0; i--) {
			bck[i].style.display = 'none';
		}
		shadowBox('top_'+target[1]);
		menus = element('main_list').getElementsByTagName('UL');
		//for (i=0; i<menus.length; i++) {
		for (i=menus.length-1; i>=0; i--) {
			if (menus[i].id != thisMenu.id) {
				menus[i].style.display = 'none';
			}
		}
	}
}

function topnavOff(id) {
	menu = element(id);
	if (menu) {
		val = menu.getAttribute("id");
		target = val.split("_");
		rel = menu.getAttribute("rel");
		element('top_'+target[1]).style.display='none';
		if (element('bg_top_' + target[1])) {
			element('bg_top_'+target[1]).style.display='none';
		}
		backgrounds = element('bgdhtml');
		bck = backgrounds.getElementsByTagName('DIV');
		//for (i=0; i<bck.length; i++) {
		for (i=bck.length-1; i>=0; i--) {
			bck[i].style.display = 'none';
		}
	}

	/////////
	// BEGIN

	showSelectBoxes();

	// END
	///////

	topnavmenu = element("main_list");
}

function sublinkOn(id) {
	var menu_depth = 1; // init
	var menu_index = 0; // init
	var width_needed = 0; // init
	var height_needed = 0; // init
	currentID = id;
	running = true;
	menu = element(id);
	if (menu) {
		val = menu.getAttribute("id");
		target = val.split("_");
		rel = menu.getAttribute("rel");
		thisList = menu.parentNode.parentNode;
		listClass = thisList.className;

		if (listClass != "top_menu") {
			nextList = thisList.parentNode.parentNode;
			nextListClass = nextList.className;
			menu_depth++;
		}
		else {
			nextList = thisList;
			nextListClass = thisList.className;
		}

		if (nextListClass != "top_menu") {
			topList = nextList.parentNode.parentNode;
			menu_depth++;
		}
		else {
			topList = nextList;
		}

		var initial_left_offset;
		switch (topList.id) {
			case 'top_industry':
				initial_left_offset = 107;
				menu_index = 0;
				break;
			case 'top_products':
				initial_left_offset = 221;
				menu_index = 1;
				break;
			case 'top_support':
				initial_left_offset = 350;
				menu_index = 2;
				break;
			case 'top_partners':
				initial_left_offset = 492;
				menu_index = 3;
				break;
			case 'top_about':
				initial_left_offset = 597;
				menu_index = 4;
				break;
			default:
				menu_index = 0;
				break;
		}

		parentHeight = menu.offsetHeight;
		// test = menu.nextSibling;
		test = element('sub_' + target[1]);

		width_needed = (152 * (menu_depth + 1)) + initial_left_offset;
		if (width_needed > document.body.clientWidth) {
			//test.style.marginLeft = '-151px';
			test.style.marginLeft = '-150px';
			test.style.borderRight = '1px solid #AEB1B1';
			test.style.zIndex = 100;
			test.parentNode.style.zIndex = 100;
		}
		else {
			//test.style.marginLeft = '151px';
			test.style.marginLeft = '150px';
			test.parentNode.style.zIndex = 50;
		}

		parentHeight = parentHeight+1;
		test.style.marginTop = "-"+parentHeight+"px";
		test.style.display="block";

		/////////
		// BEGIN

		hideSelectBox(test);

		// END
		///////

		menus = element('main_list').getElementsByTagName('UL');

		for (i=menus.length-1; i>=0; i--) {
			if (menus[i].style.display == 'block') {
				if (menus[i].id != thisList.id && menus[i].id != test.id && menus[i].id != nextList.id && menus[i].id != topList.id) {
					menus[i].style.display = 'none';
				}
			}
		}

		test.style.display = "block";
		backgrounds = element('bgdhtml');
		bck = backgrounds.getElementsByTagName('DIV');
		foobar = '';

		for (i=bck.length-1; i>=0; i--) {
			if (bck[i].style.display == 'block') {
				if (bck[i].id != test.id && bck[i].id != thisList.id && bck[i].id != nextList.id &&  bck[i].id != topList.id) {
					bck[i].style.display = 'none';
				}
			}
		}

		shadowBox(thisList.id);
		shadowBox(nextList.id);
		shadowBox(topList.id);
		shadowBox(test.id);
	}
}

function sublinkOff(id) {
	menus = element('main_list').getElementsByTagName('UL');
	for (i=menus.length-1; i>=0; i--) {
		menus[i].style.display = 'none';
	}
	menu = element(id);
	if (menu) {
		rel = menu.getAttribute("rel");
		menuOff('menulink_'+rel);
		menuOff('nav_'+rel);
	}
}

function endpointOn(id) {
	if (menu) {
		menu = element(id);
		thisParent = menu.parentNode.parentNode;
		menus = thisParent.getElementsByTagName('UL');
		//for (i=0; i<menus.length; i++) {
		for (i=menus.length-1; i>=0; i--) {
			menus[i].style.display = 'none';
			test = menus[i].id;
			if (element('bg_'+test)) {
				element('bg_'+test).style.display = 'none';
			}
		}
	}
}

function endpointOff(id) {
	menu = element(id);
	if (menu) {
		rel = menu.getAttribute("rel");
		menuOff('menulink_'+rel);
		menuOff('nav_'+rel);
	}
}

function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel))) {
		n_result = n_docel;
	}
	if (n_body && (!n_result || (n_result > n_body))) {
		return n_body;
	}
	else {
		return n_result;
	}
}

function menuOff(id) {
	menu = document.getElementById(id)
	if (menu) {
		if (menu.className == 'topnavmenu' || menu.className == 'menu_on') {
			StartTimer('topnavOff(\''+id+'\')');
		}
		else if (menu.className == 'sublink') {
			StartTimer('sublinkOff(\''+id+'\')');
		}
		else { // if (menu.className == 'endpoint') {
			StartTimer('endpointOff(\''+id+'\')');
		}
	}
}

var selectitems = null;
function hideSelectBox(menu) {
	if(ie)
	{
		if(!selectitems)
		{
			selectitems = document.getElementsByTagName("SELECT");
		}
		var menu_x = null;
		var menu_y = null;
		var sel_x = null;
		var sel_y = null;
		for (i=0; i<selectitems.length; i++) {
			menu_x = getAbsLeft(menu);
			menu_y = getAbsTop(menu);
			sel_x = getAbsLeft(selectitems[i]);
			sel_y = getAbsTop(selectitems[i]);

			if((menu_x<(sel_x+selectitems[i].offsetWidth) && (menu_x+menu.offsetWidth)>sel_x) &&
				((menu_y+menu.offsetHeight)>sel_y && menu_y<(sel_y+selectitems[i].offsetHeight)))
			{
				selectitems[i].style.visibility = 'hidden';
			}
		}
	}
}

function showSelectBoxes()
{
	if(ie)
	{
		if(!selectitems)
		{
			selectitems = document.getElementsByTagName("SELECT");
		}

		for(var i=0; i<selectitems.length; i++)
		{
			selectitems[i].style.visibility = 'visible';
		}
	}
}

// END
//////


function OffSitePopup(title,filename,w,h,scroll,resizable) {
	title = 'Symbol';
	if (scroll == 'scroll') {
		scroll = 'yes';
	}
	else {
		scroll = 'no';
	}
	if (resizable == 'lock'){
		resizable = 'no';
	}
	else{
	resizable = 'yes';
	}
	leftPos = 0
	topPos = 0
	if (screen) {
		leftPos = (screen.width / 2) - 251
		topPos = (screen.height / 2) - 162
	}
	winOptions = eval("'width="+w+",height="+h+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable="+resizable+",copyhistory=no,left="+leftPos+",top="+topPos+"'");newWin = window.open(filename,title,winOptions); newWin.focus(); return;
}

function toolbox() {
	if (document.getElementById('leftcontent')) {
		main = document.getElementById('leftcontent');
		linklist 	= main.getElementsByTagName("A");
		for (i=0; i<linklist.length; i++) {
			currclass = '';
			currhref = '';
			currclick = '';
			currstyle = '';
			currclass = linklist[i].className;
			currhref = linklist[i].href;
			curronclick = linklist[i].onclick;
			currstyle = linklist[i].style;
			if (currhref.match(/\.pdf/) && currclass != 'pdfitem') {
				currlink = linklist[i];
				currlink.id = 'genrid'+i;
				if (document.getElementById('genrid' + i)) {
					target = document.getElementById('genrid'+i);
					target.className = "pdfitem";
					target.onclick = function() {
						dcsMultiTrack('DCS.dcsuri', this.href, 'WT.ti', 'PDF: ' + this.innerHTML);
					}
				}

			}
			if ((currhref.match(/\.doc/) || currhref.match(/\.DOC/)) && currclass != 'docitem') {
				currlink = linklist[i];
				currlink.id = 'genrid'+i;
				if (document.getElementById('genrid' + i)) {
					target = document.getElementById('genrid'+i);
					target.className = "docitem";
					target.onclick = function() {
						dcsMultiTrack('DCS.dcsuri', this.href, 'WT.ti', 'DOC: ' + this.innerHTML);
					}
				}

			}

		}
	}
}
function dcsMultiTrack() { 
if (debug != true) {
	if (arguments.length%2==0){ 
		for (var i=0;i<arguments.length;i+=2){ 
			if (arguments[i].indexOf('WT.')==0){ 
				WT[arguments[i].substring(3)]= arguments[i+1]; 
			} else if (arguments[i].indexOf('DCS.')==0){ 
				DCS[arguments[i].substring(4)]= 
				arguments[i+1]; 
			} else if (arguments[i].indexOf('DCSext.')==0){ 
				DCSext[arguments[i].substring(7)]= 
				arguments[i+1]; 
			} 
		} 
		var dCurrent=new Date(); 
		DCS.dcsdat=dCurrent.getTime(); 
		dcsTag(); 
	}
} else {
	alert("webtrends enabled - DEBUG");
}
}

function showTiny(id) {
	if (id != currTiny) {
		hideTinyBlock(currTiny);
	}
	target = document.getElementById('mlink_' + id);
	block  = document.getElementById('prod_' + id);
	shadow = document.getElementById('bg_' + id);
	wrapper = document.getElementById('wrapper_' + id);
	left 	= findPosX(target) + target.offsetWidth + 8;
	if ((left+400) > f_clientWidth() && left > 400) {
		left=findPosX(target) - 320;
	}
	block.style.left = left+'px';
	block.style.padding = '0px'; // overriding CSS file :-(

	shadow.style.height = block.offsetHeight + 'px';
	shadow.style.width = block.offsetWidth + 'px';

	currTiny = id;
}

function hideTinyBlock(id) {
	if (id) {
		block  = document.getElementById('prod_'+id);
		block.style.left = '-4000px';
		currTiny = '';
	}
}

function hideTiny(id) {
	hideTinyBlock(id);
}


function init(id, path) {
	//alternate_td_colors();
	toolbox();
	var pathlist=path.split(',');
	test = pathlist[1];
	if (test == 2 || test == 9) {
	 document.getElementById('nav_industry').className = 'menu_on';
	 var currentMenu = 'nav_industry';
	}
	if (test == 14 || test == 23) {
	 document.getElementById('nav_products').className = 'menu_on';
	 var currentMenu = 'nav_products';
	 // check for tabs
	 if (document.getElementById('tabbar')) {
	 	  // see if we have a hash
	 	  if (location.hash) {
	 	  	//use hash to run tab
	 	  	SetOpenTab(location.hash);
			}	 
	 }
	}
	if (test == 28 || test == 33) {
	 document.getElementById('nav_support').className = 'menu_on';
	 var currentMenu = 'nav_support';
	}
	if (test == 41) {
	 document.getElementById('nav_partners').className = 'menu_on';
	 var currentMenu = 'nav_partners';
	}
	if ((test == 47 || test == 5356) && (id != 700 && id != 5081)) {
	 document.getElementById('nav_about').className = 'menu_on';
	 var currentMenu = 'nav_about';
	}
	if (id == 298) {
		document.getElementById('top_htb').style.backgroundPosition = '0px -11px !important';
		document.getElementById('footer_htb').style.backgroundPosition = '0px -11px !important';
	}
	if (id == 51) {
		document.getElementById('top_ir').style.backgroundPosition = '0px -11px !important';
		document.getElementById('footer_ir').style.backgroundPosition = '0px -11px !important';
	}
	if (id == 54) {
		document.getElementById('top_ne').style.backgroundPosition = '0px -11px !important';
		document.getElementById('footer_ne').style.backgroundPosition = '0px -11px !important';
	}
	if (id == 52) {
		document.getElementById('top_ca').style.backgroundPosition = '0px -11px !important';
		document.getElementById('footer_ca').style.backgroundPosition = '0px -11px !important';
	}
	if (id == 49) {
		document.getElementById('top_cs').style.backgroundPosition = '0px -11px !important';
		document.getElementById('footer_cs').style.backgroundPosition = '0px -11px !important';
	}
	if (id == 688) {
		document.getElementById('top_sm').style.backgroundPosition = '0px -11px !important';
		document.getElementById('footer_sm').style.backgroundPosition = '0px -11px !important';
	}
	if (id == 862) {
		office = document.getElementById('officelocatorform');
		locator = document.getElementById('supportlocator_src');
		if (office && locator) {
			test = office.cloneNode(true);
			locator.appendChild(test);
			office.parentNode.removeChild(office); 
		}
	}
	if (id == 5113) {
		function activateCertificate() {
			var m = readCookie('servicecertificate');
			if (m) {	
				cookielist = m.split('%7C');
			}
			x = 1;
			for (i=0; i<cookielist.length; i++) {
				if (cookielist[i]) {
					t = document.getElementById('actcode_'+x);
					t.innerHTML = "Activation Code:&nbsp;&nbsp;"+cookielist[i];
					x++;		
				}
			}
		}
		activateCertificate();
	}
	/* Motorola Nix
	 * buildMenus(); 
	 * drawDHTML('dhtml');
	 */
}
function SetOpenTab(tab) {
	gettab = tab.substr(1);
	if (document.getElementById('pr_overview')) {
		// product
		try	{
		showTab(gettab);
		}
		catch(err)
		{
		return false;
		}	
	}
	if (document.getElementById('sv_overview')) {
		// service
		try	{
		showSvTab(gettab)
		}
		catch(err)
		{
		return false;
		}			
	}
	document.getElementById('pagetop').focus(); 
}
function showTab(tab) {
	// tabdivs
	usertab = tab;
	t1 = document.getElementById('pr_overview');
	t2 = document.getElementById('pr_datasheet');
	t3 = document.getElementById('pr_related');
	t4 = document.getElementById('pr_accessories');

	rh1 = document.getElementById('services_available');
	rh2 = document.getElementById('product_images');
	rh3 = document.getElementById('related_pdf');

	navbar = document.getElementById('tabbar');
	test = navbar.getElementsByTagName('DIV');
	for (i=0; i < test.length; i++) {
		if (test[i].id == tab+'_tab') {
			test[i].className = 'producttab_on';
		} else {
			test[i].className = 'producttab';
		}
	}
	if (t1) {
	if (t1.id == 'pr_'+tab) {
			t1.className = 'pr_show';
			if (rh1) {
				rh1.className = 'pr_show';
			}
			if (rh2) {
				rh2.className = 'pr_show';
			}
	} else {
			t1.className = 'pr_hide';
			if (rh1) {
				rh1.className = 'pr_hide';
			}
			if (rh2) {
				rh2.className = 'pr_hide';
			}
	}
	}
	if (t2) {
	if (t2.id == 'pr_'+tab) {
			t2.className = 'pr_show';
			if (rh3) {
				rh3.className = 'pr_show';
			}
	} else {
			t2.className = 'pr_hide';
			if (rh3) {
				rh3.className = 'pr_hide';
			}
	}
	}
	if (t3) {
	if (t3.id == 'pr_'+tab) {
		t3.className = 'pr_show';
	} else {
		t3.className = 'pr_hide';
	}
	}
	if (t4) {
	if (t4.id == 'pr_'+tab) {
		t4.className = 'pr_show';
	} else {
		t4.className = 'pr_hide';
	}
	}
}

function showServiceTab(tab) {
	// tabdivs
	usertab = tab;
	t1 = document.getElementById('pr_overview');
	t2 = document.getElementById('pr_features');
	t3 = document.getElementById('pr_details');
	t4 = document.getElementById('pr_coverage');
	navbar = document.getElementById('tabbar');
	test = navbar.getElementsByTagName('DIV');
	for (i=0; i < test.length; i++) {
		if (test[i].id == tab+'_tab') {
			test[i].className = 'producttab_on';
		} else {
			test[i].className = 'producttab';
		}
	}
	if (t1) {
	if (t1.id == 'pr_'+tab) {
			t1.className = 'pr_show';
	} else {
			t1.className = 'pr_hide';
	}
	}
	if (t2) {
	if (t2.id == 'pr_'+tab) {
			t2.className = 'pr_show';
	} else {
			t2.className = 'pr_hide';
	}
	}
	if (t3) {
	if (t3.id == 'pr_'+tab) {
		t3.className = 'pr_show';
	} else {
		t3.className = 'pr_hide';
	}
	}
	if (t4) {
	if (t4.id == 'pr_'+tab) {
		t4.className = 'pr_show';
	} else {
		t4.className = 'pr_hide';
	}
	}
}

function showSvTab(tab) {
	// this should be one function, but I didn\'t plan well
	usertab = tab;
	var tabs = new Array(5);
	tabs[1] = document.getElementById('sv_overview');
	tabs[2] = document.getElementById('sv_features');
	tabs[3] = document.getElementById('sv_details');
	tabs[4] = document.getElementById('sv_coverage');
	    rh3 = document.getElementById('related_pdf');
	navbar = document.getElementById('tabbar');
	test = navbar.getElementsByTagName('DIV');
	for (i=0; i < test.length; i++) {
		if (test[i].id == 'sv_'+tab+'_tab') {
			test[i].className = 'producttab_on';
		} else {
			test[i].className = 'producttab';
		}
	}

	for (i=1; i <= 4; i++) {
		if (tabs[i]) {
			if (tabs[i].id == 'sv_' + tab) {
				tabs[i].className = 'sv_show';
			} else {
				tabs[i].className = 'sv_hide';
				if (rh3) {
					rh3.className = 'sv_hide';
				}
			}
		}
	}
	if (rh3) {
		rh3.className = tabs[3].className;
	}
}

function alternate_td_colors() {
	tablelist = document.getElementsByTagName('TABLE');
	for (i=0; i < tablelist.length; i++) {
		if (tablelist[i].className == 'specTable') {
			for (x=0; x < tablelist[i].rows.length; x++) {
				rcount = (x % 2) ? '1' : '2'
				fixrow = tablelist[i].rows[x];
				for (t=0; t < fixrow.cells.length; t++) {
					targetcell = fixrow.cells[t];
					if (!targetcell.className) {
						targetcell.className = "dstablerow"+rcount;
					}
				}
			}
		}
	}
}

function printWindow(url) {
	printing = window.print();
}
function buildMenus() {
/* loadind = document.getElementById("nav_industry");
loadind.onmouseover = function() {
	try  { menuOn(this.id);}
	catch(err) {return null; }
}
loadind.onmouseout = function() {
	try  { menuOff(this.id);}
	catch(err) {return null; }
}
loadprod = document.getElementById("nav_products");
loadprod.onmouseover = function() {
	try  { menuOn(this.id);}
	catch(err) {return null; }
}
loadprod.onmouseout = function() {
	try  { menuOff(this.id);}
	catch(err) {return null; }
}
loadsup = document.getElementById("nav_support");
loadsup.onmouseover = function() {
	try  { menuOn(this.id);}
	catch(err) {return null; }
}
loadsup.onmouseout = function() {
	try  { menuOff(this.id);}
	catch(err) {return null;} 
}
loadpart = document.getElementById("nav_partners");
loadpart.onmouseover = function() {
	try  { menuOn(this.id);}
	catch(err) {return null; }
}
loadpart.onmouseout = function() {
	try  { menuOff(this.id);}
	catch(err) {return null;}
}
loadabou = document.getElementById("nav_about");
loadabou.onmouseover = function() {
	try  { menuOn(this.id);}
	catch(err) {return null; }
}
loadabou.onmouseout = function() {
	try  { menuOff(this.id);}
	catch(err) {return null;}
}*/
} 
function element(id) {
	var value = id;
	if (value) {
		var test = document.getElementById(id);
		if (test) {
			el = document.getElementById(id);
			return el;
		}
		else {
			return false;
		}
	}
	else {
		return false;
	}
}


