function obj(sName) {
	if(document.all)
		return document.all[sName];
	else if(document.getElementById)
		return document.getElementById(sName);
	else
		return null;
}

function SendSearchParam(){
	 var keyCode = window.event.keyCode ? window.event.keyCode : window.event.which ? window.event.which : window.event.charCode;
	 if (keyCode == 13){
        alert("hello");
        btnSearch_Click();
	 }
}
window.onkeypress = function(){
	 var keyCode = window.event.keyCode ? window.event.keyCode : window.event.which ? window.event.which : window.event.charCode;
	 if (keyCode == 13){
        window.event.keyCode=0;
        event.returnValue=false;
     }
}

BROWSER = navigator.userAgent.toLowerCase();

if(BROWSER.indexOf("opera") > -1 && BROWSER.indexOf("mac") > -1) {
	document.write("<style>");
	document.write("div.nav1 ul#searchList li.searchButton {padding:0 0 0 0;  }");
	document.write("</style>");
}

if(BROWSER.indexOf("netscape") > -1 && BROWSER.indexOf("mac") > -1) {
	document.write("<style>");
	document.write("#nav1Bar {height:40px;}");
	document.write("</style>");
}

if(BROWSER.indexOf("mac") > -1 ) {
	document.write("<style>");
	document.write("h1.page {font-weight:normal!important;}");
	document.write("h1.page-applications {font-weight:normal!important;}");
	document.write(".accordionMain div.header span.subH {font-weight:500!important;}");
	document.write("</style>");
}

function tabToggle(tabNumber) {
    if (tabNumber == 1) {
        obj('offerings').style.backgroundPosition = "left top";
        obj('benefitsList').style.display = "none";
        obj('platformList').style.display = "none";
        obj('productsList').style.display = "block";
        obj('products').style.zIndex = 998;
        obj('benefits').style.zIndex = 999;
        obj('platform').style.zIndex = 999;
    }
    else if (tabNumber == 2) {
        obj('offerings').style.backgroundPosition = "0 50%";
        obj('productsList').style.display = "none";
        obj('platformList').style.display = "none";
        obj('benefitsList').style.display = "block";
        obj('benefits').style.zIndex = 998;
        obj('products').style.zIndex = 999;
        obj('platform').style.zIndex = 999;
    }
    else {
        obj('offerings').style.backgroundPosition = "left bottom";
        obj('productsList').style.display = "none";
        obj('benefitsList').style.display = "none";
        obj('platformList').style.display = "block";
        obj('platform').style.zIndex = 998;
        obj('products').style.zIndex = 999;
        obj('benefits').style.zIndex = 999;
    }
}


<!--//--><![CDATA[//><!--
startList = function() 
{
	
 if (document.all&&document.getElementById) 
 {
	 
	 if ($("nav1BarUL")) {
	 cssdropdownRoot =$("nav1BarUL");
	 
			 for (x=0; x<cssdropdownRoot.childNodes.length; x++) 
			 {
				 node = cssdropdownRoot.childNodes[x];
				 if (node.nodeName=="LI") 
				 {
					node.onmouseover=function() 
					{
						this.className = this.className + " over";					
					}
					node.onmouseout=function() 
					{
					 this.className = this.className.replace(" over", "");
					}
				 }
			 }
	 }
	}
}

function fixIE6flicker() {
	//if(BROWSER.indexOf("ie") > -1 && BROWSER.indexOf("mac") > -1) {
	
	if(BROWSER.indexOf("msie 6") > -1) {
		try {
			document.execCommand("BackgroundImageCache", false, fix);
		} catch(err) { }
	}
}

if (window.attachEvent) 
{
	//alert(2)
	window.attachEvent("onload", startList);
	window.attachEvent("onload", fixIE6flicker);
	window.attachEvent("onload", checkVerticalTab);
}
else
{
	 window.onload= function() {  
	 startList();
	 fixIE6flicker();
	 checkVerticalTab()
	 }
}

var buttonList = null;
var tabList = null;
var buttonTotal = null;

function checkVerticalTab() {
	if (document.getElementById('verticalTabButtonsId')) {
		buttonTableObj = document.getElementById('verticalTabButtonsId');
		buttonTdObj = buttonTableObj.getElementsByTagName("td");	
		for (i=0;i<buttonTdObj.length;i++) {
			if(buttonTdObj[i].id) {
			
				buttonTdObj[i].onmouseover = (function(){ 
				this.orderNumber = i;
				swapVerticalTabs(this); 
			         }) 		
		         }
		}
buttonTotal = i;
	}
}

function swapVerticalTabs(thisButton)
{
	if(document.getElementById('verticalTabRegions')) {
		thisButtonArray = thisButton.id.split("-");
		thisButtonNumber = thisButtonArray[1];
		
		verticalTabRegionsObj = document.getElementById('verticalTabRegions');
		verticalTabDivObj = verticalTabRegionsObj.getElementsByTagName("div");
		
                buttonTableObj = document.getElementById('verticalTabButtonsId');
		buttonTdObj = buttonTableObj.getElementsByTagName("td");

                for (i=0;i<buttonTdObj.length;i++) {

if(buttonTdObj[i].id) {
buttonTdObj[i].className = 'off';

if(thisButtonNumber == i) {
buttonTdObj[i].className = 'active';
}


}
                }

		for (i=0;i<verticalTabDivObj.length;i++) {
                   verticalTabDivObjArr = verticalTabDivObj[i].id.split("-");
                   verticalTabDivNumber = verticalTabDivObjArr[1];
			if(verticalTabDivObj[i].className && verticalTabDivObj[i].className == 'active' || verticalTabDivObj[i].className == 'off') 
			{
				if(verticalTabDivObj[i].className == 'active') {
					verticalTabDivObj[i].className = 'off'
				}
				if(verticalTabDivNumber  == thisButtonNumber) {
					verticalTabDivObj[i].className = 'active'
				}
			}	
		}
	}	
}


function RefreshButtonList(buttonTotal, thisButtonNumber)
{
	
	if (buttonList == null || tabList == null)
		SetButtonAndTabList(buttonTotal);
	
	for(var i = 0; i < buttonTotal; i++)
	{
		buttonList[i].className = "off";
		tabList[i].className = "off";
	}
	
	buttonList[thisButtonNumber-1].className = "active";
	tabList[thisButtonNumber-1].className = "active";
}


function SetButtonAndTabList(buttonTotal)
{
	
	buttonList = new Array(buttonTotal);
	tabList = new Array(buttonTotal);
	
	for(var i = 0; i < buttonTotal; i++)
	{
		buttonList[i] = document.getElementById("button" + (i+1));
		tabList[i] = document.getElementById("tab" + (i+1));
	}
}

function goToUrl(URL) {
 document.location = URL;
}

//----------------------------------------------------------------------------------------------------
//-- Check for enter key and set focus and click object provided
//----------------------------------------------------------------------------------------------------
function CheckFormEnter(e, sButtonName)
{
	var characterCode

	if(e && e.which)
	{ 
		e = e;
		characterCode = e.which; // (for NN4 support)
	}
	else
	{
		e = event;
		characterCode = e.keyCode; // (for IE)
	}

	if(characterCode == 13) //(ascii 13 - enter key)
	{
		//alert(sButtonName);
		var button = document.getElementById(sButtonName);
		
		button.focus();
		button.click();
	}
}


function showSwfBanner(swfId, jpgId, curVersion, minVersion ) {
 if(curVersion < minVersion ) {
   document.getElementById(jpgId).style.display = "block";
 } else {
   document.getElementById(swfId).style.display = "block";
 } 
}


window.addEvent('load', function () {
	var Tips1 = new Tips($$('.Tips1'));
});


function doPopup(URL, iWidth, iHeight) {
	if ((iWidth == null) || (iHeight == null))
	{
		w = 578;
		h = 300;
	}
	else {
		w = iWidth;
		h = iHeight;
	}
	window.open(URL,'Title','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,top='+Math.floor(screen.height/2-h/2)+',left='+Math.floor(screen.width/2-w/2)+',resizable=1,width='+w+',height='+h);
}

function doPopupNoscroll(URL, iWidth, iHeight) {
	if ((iWidth == null) || (iHeight == null))
	{
		w = 578;
		h = 300;
	}
	else {
		w = iWidth;
		h = iHeight;
	}
	window.open(URL,'Title','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,top='+Math.floor(screen.height/2-h/2)+',left='+Math.floor(screen.width/2-w/2)+',resizable=1,width='+w+',height='+h);
}

