//For Top Menu
var menutexttag = "#FF0000";
var menutexttaghigh = "#00FF00";
var menucolortag = "#CCCCCC";
var menucolortaghigh  = "#000066";

function openSeta(){
	ItIs = window.open("http://196.4.89.14/seta/BankSeta.asp", "", "_blank,menubar=no,resizable=no,height=600,width=800");
}
function openads(){
	ItIs = window.open("images/2xads.jpg", "", "_blank,menubar=no,resizable=no,height=460,width=580");
}
function DoPopup(){
	ItIs=window.open("/popup.asp","Bankseta_Notice","width=600,height=743,resizable=no,scrollbars=no,dependent=no,toolbar=no,menubar=no,status=no");
}

function userArray(){
	this.length=userArray.arguments.length;
	for (var a=0; a<this.length; a+=1){
		this[a]=userArray.arguments[a];
	}
}
var MySuperWidth;

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  MySuperWidth =myWidth;
 // window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
}
function createAPopUp(theArray,theName){
	var theStr="";
		
	var thewidth ;
	var theLeft;
	var theTop;
	
	//theTop= 71;
	theTop= 72;
	thewidth = 180;
	//alert(document.documentelement);
	//theLeft = 325;
	theLeft = 189;
	//theLeft = 800;
	



	theStr='<div id="Pop_'+theName+'" style="position:absolute;top:'+theTop+';left:'+theLeft+';width:'+thewidth+';visibility:hidden;z-index:1000" onmouseover="MouseOn(\''+theName+'\')" onMouseOut="MouseOff(\''+theName+'\')">';
			
	theStr+='<table border=0 cellspacing=0 cellpadding=0 bgColor=#000000 width=180><tr><td><table cellspacing=1 cellpadding=2 width=100%>';
	var totalRows=theArray.length;
	var k = 0 ;
	for (var i=0; i<totalRows-1; i+=2){
		extraSpace="";
		if (theArray[i].length<15){
			extraSpace=""; 
		}
		k += 1;
		//theStr+="<tr><td colspan='3' height='1' class='MenuLine'><img  src=../images/bg_blank.gif height='1'></td></tr>";
		//theStr+="<tr><td colspan='5' height='1' class='Line'><img  src=../images/bg_blank.gif height='1'></td></tr>";
		theStr+='<tr><td bgcolor=#CCCCCC height=18 valign="middle" align="left" target="_parent" style="cursor:hand;font-size:10px" onclick=document.location="'  + theArray[i+1] +  '" onmouseover="changeMenuOn(this);" onmouseout="changeMenuOff(this);" >' + theArray[i] + '</td></tr>';
		//theStr+="<tr><td colspan='5' height='1' class='Line'><img  src=../images/bg_blank.gif height='1'></td></tr>";
	}
	theStr+='</table></td></tr></table>';
	
	theStr+='</div>';
	var re = /[~]/;
	for ( var j = 0  ; j < (k * 8) ; j++){
		theStr = theStr.replace(re,"'")
	}
	document.write(theStr);
}

function changeMenuOn(obj){
	obj.style.color="#FFFFFF";
	obj.style.background=menucolortaghigh;
}
function changeMenuOff(obj){
	obj.style.color="#000000";
	obj.style.background=menucolortag;
}



function doReload() {
 	if (NETDom){
		history.go(0);
	 }
}

function MouseOn(imgName) {

	//if (document.images) {
	//	if (imgName.indexOf("a")!=0){
	//		document[imgName].src = eval(imgName + "on.src");
	//		showPop(imgName);
	//	}
	//}+
	Pop_menu.style.visibility = 'visible';
	//document.all.row2.bgColor = '#CCCCCC';
	
}

function MouseOff(imgName) {
	//if (document.images) {
	//	if (imgName.indexOf("a")!=0){
	//		document[imgName].src = eval(imgName + "off.src");
	//		hidePop(imgName);
	//	}
	//}
	Pop_menu.style.visibility = 'hidden';
	//document.all.row2.bgColor = '#000066';
	
}
function showPop(theName) {
	MouseOnA(theName);
	if (theName.indexOf("img")==0){
		if(NETDom&&document.layers["Pop_"+theName]){
			document.layers["Pop_"+theName].visibility="show";
		}
		if(D0MWerner){
			var elem = document.getElementById("Pop_"+theName);
			if (elem){
				ClientWidth=getInsideWindowWidth();
						
				elem.style.visibility="visible";
				
			}
		}
	}
}


function hidePop(theName) {
	MouseOffA(theName);
	if (theName.indexOf("img")==0){
		if(NETDom&&document.layers["Pop_"+theName]){
			document.layers["Pop_"+theName].visibility="hide";
		}
		if(D0MWerner){
			var elem = document.getElementById("Pop_"+theName);
			if (elem){
				elem.style.visibility="hidden";
			}
		}
	}
}


alertSize() ;

	
	if (services==true)
	{
		var new01Array= new userArray(
			"Our Services","default.asp?theSection=services",
			"Growth","default.asp?theSection=q1",
			"Innovation Process","default.asp?theSection=q2",
			"Idea Management","default.asp?theSection=q3",
			"Product Innovation","default.asp?theSection=q4",
			"Disruptive Innovation","default.asp?theSection=q5")
			createAPopUp(new01Array,"menu");
	}
	else
	{		
		var new01Array= new userArray(
			"Our Services","/services/default.asp?theSection=services",
			"Growth","/services/default.asp?theSection=q1",
			"Innovation Process","/services/default.asp?theSection=q2",
			"Idea Management","/services/default.asp?theSection=q3",
			"Product Innovation","/services/default.asp?theSection=q4",
			"Disruptive Innovation","/services/default.asp?theSection=q5")
			createAPopUp(new01Array,"menu");
	}		



