     NS4 = (document.layers);
     IE4 = (document.all);
    ver4 = (NS4 || IE4);
	 IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
   isMac = (navigator.appVersion.indexOf("Mac") != -1);
  isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
function popUp(){return};
function popDown(){return};
if (!ver4) event=null;

if( NS4 ) 
{
	document.write("<link rel=stylesheet href=../styles/99CCCCnetscape.css>");
}
else {
	document.write("<link rel=stylesheet href=../styles/99CCCC.css>");
}

function doSearchBox() {
	
	if( NS4 ) {
			document.write("<input type=text name=NS-query size=7 class=fieldbackground>");
	}

	else {
			document.write("<input type=text name=NS-query size=13 class=fieldbackground>");
	}
}

if (isMenu) {
menuVersion = 3;
menuWidth = 150;
childOverlap = -1;
childOffset = 0;
perCentOver = null;
secondsVisible = .5;
fntCol = "#E5F8F7";
fntSiz = "9";
fntBold = true;
fntItal = false;
fntFam = "Arial,Helvetica,Verdana,sans-serif";
backCol = "#003366";
overCol = "#99CCCC";
overFnt = "#003366";
borWid = 0;
borCol = "#E5F8F7";
borSty = "solid";
itemPad = 2;
imgSrc = "images/graphics/dropdown_arrow.gif";
imgSiz = 9;
separator = 1;
separatorCol = "#E5F8F7";
isFrames = false;
keepHilite = true; 
clickStart = false;
clickKill = false;
}

if (isMenu) {
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='scripts/hierArrays.js' TYPE='text/javascript'></SCRIPT>");
}

if (isMenu) {
document.write("<SCRIPT LANGUAGE='JavaScript1.2' SRC='scripts/hierMenus.js' TYPE='text/javascript'></SCRIPT>");
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function ShowHidefunc() 
{
   if (document.all) 
   {
      if (ShowHide.style.visibility=="hidden") 
		ShowHide.style.visibility="inherit";
      else
        ShowHide.style.visibility="hidden";
   }
}


function GotoAnalyst(AnalystName) 
{
	var usrSelection;
	var nLength;
	var i;
	var j;
	var nLoop;
	
	usrSelection= AnalystName;

	nLoop = window.document.frmAnalyst.JapAnalyst.options.length; //Get the number of items in this drop down

	for(j=0;j < nLoop; j++)
	{
		if(window.document.frmAnalyst.JapAnalyst.options[j].value == usrSelection)
		{
			window.document.frmAnalyst.JapAnalyst.options[j].selected = true;
		}
	}
	//window.document.form1.q2.options[3].selected = true;
	frmAnalyst.submit();
}

function GotoProducts(ProductName) 
{
	var usrSelection;
	var nLength;
	var i;
	var j;
	var nLoop;
	
	usrSelection= ProductName;
	
	nLoop = window.document.form1.Products.options.length; //Get the number of items in this drop down
		
	for(j=0;j < nLoop; j++)
	{
		if(window.document.form1.Products.options[j].value == usrSelection)
		{
			window.document.form1.Products.options[j].selected = true;
		}
	}
	window.document.form1.q2.options[3].selected = true;
	form1.submit();
}

function frmSector_ondblclick() 
{
	frmSector.submit();
}

function frmAnalyst_ondblclick() 
{

	frmAnalyst.submit();
}

function OpenNewWindow(frmName) 
{
	frmName.submit();
}

function OpenNewWindow2(strLocation, strFileName) 
{
	var sLocation;
	sLocation = "../../../../../AccessControl.asp?Location=" & strLocation & "&FileName=" & strFileName
	window.open(sLocation,'_blank','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
}

function OpenNewWindow3(strLocation, strFileName) 
{
	var sLocation;

	sLocation = "../../../../../../AccessControl.asp?Location=" + strLocation + "&FileName=" + strFileName
	window.open(sLocation,'_blank','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
}

function OpenNewWindow4(strLocation, strFileName) 
{
	var sLocation;
	sLocation = "../../../../AccessControl.asp?Location=" & strLocation & "&FileName=" & strFileName
	window.open(sLocation,'_blank','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
}



function OpenNewWindow(strLocation, strFileName) 
{
	var sLocation;
		
	sLocation = "../../../AccessControl.asp?Location=" & strLocation & "&FileName=" & strFileName
	window.open(sLocation,'_blank','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=600');
	
}

function OpenGeneralWindow() 
{
	alert("Sorry you will need to obtain a username and password to access this research");	
}

function OpenQuickCodeWindow() 
{
		window.open("QuickCodeLookup.asp",'search','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=400,height=100');
}

function OpenNewFTSEWindow(strLocation) 
{
		window.open(strLocation,'_blank','status=yes,menubar=no,scrollbars=yes,resizable=yes,width=800,height=600,top=100,left=200');
}
