// JavaScript Document
document.writeln("<link rel='icon' href='/home/favicon.ico' type='image/x-icon' />");
document.writeln("<link rel='shortcut icon' href='/home/favicon.ico' type='image/x-icon' />");	

function maximize()
{
	top.window.moveTo(0,0);
		if (document.all) {
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
		else if (document.layers||document.getElementById) {
		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
	}
	}
}




function openPopUpWindow(sURL,sTarget,sLeft,sTop,sHeight,sWidth)
{
	window.open(sURL,sTarget,'left='+sLeft+',top='+sTop+',height='+sHeight+',width='+sWidth+',scrollbars=0,resizable=no,status=no,toolbar=no,menubar=no,alwaysRaised=yes,location=no');
}

function generateFootLine(domain, db , MDate)
{

	var FootStr = '';
	FootStr = FootStr + " <span STYLE='font-size: .70em;'>&#169; "+MDate+" PricewaterhouseCoopers .&nbsp; All rights reserved.&nbsp;&nbsp;PricewaterhouseCoopers refers to the network of member firms of PricewaterhouseCoopers International Limited,&nbsp;&nbsp;each of which is a separate and independent legal entity. <span STYLE='font-size: 1.5em;'>&nbsp;</span></span>";
	FootStr = FootStr +  "<br><a href='/" + domain + "/"+ db +"/privacy.html'><span STYLE='font-size: .70em;'>Privacy Statement</span></a>";
	FootStr = FootStr + " | <a href='/"+domain+"/"+db+"/legaldisclaimer.html'><span STYLE='font-size: .70em;'>Legal Disclaimer</span></a>";
	FootStr = FootStr + " | <a href='/"+domain+"/"+db+"/siteprovider.html'><span STYLE='font-size: .70em;'>About Site Provider</span></a>";
	FootStr = FootStr + " | <a href='/"+domain+"/"+db+"/contactwebmaster.html'><span STYLE='font-size: .70em;'>Email Webmaster</span></a>";
	


	document.write(FootStr);
}



function generateBestView()
{
	//document.write("<span style='FONT-SIZE: 0.71em'>This site is best viewed with</span> <br><span style='FONT-SIZE: 0.71em'>Internet Explorer v.4 sp2 or higher.</span> <br><span style='FONT-SIZE: 0.71em'>To download, please click <a href='/home/redirect/www.microsoft.com/windows/' target=_blank><span style='FONT-SIZE: 0.8em'>here</span></a></span>");
	document.write("");

}




function go(){
	formOb=document.AG
	selectOb=formOb.sectionPullDown
	destinationURL = selectOb.options[selectOb.selectedIndex].value
	if ((destinationURL!=null) && (destinationURL!='') && (destinationURL!='-')){ 
		document.location.href = destinationURL 
	}
}

function downloadWindow(url)
{
	newpdfwindow = window.open("","newpdf");
	
	newpdfwindow.document.write("<head>");
	newpdfwindow.document.write("<meta http-equiv='refresh' content='0; url="+url+"'>");
	newpdfwindow.document.write("</head>");
	newpdfwindow.document.write("<html>");
	newpdfwindow.document.write("<b>Download in Progress! Please wait</b>");
	newpdfwindow.document.write("</html>");
	newpdfwindow.document.close();



}
function keyPress()
{   
  if(document.AG.searchText.value== "")
      return false;
}


function search(domain,db,sCharset){


        sTextValue=Page.subpgNavBar.fdText.value;
        document.location.href = "/"+domain+"/"+db+"search?sText="+escape(sTextValue);


}


function open_email(url)
{
  window.open(url,"new_emailpage","left=0,height=700,top=0,width=580,scrollbars=1,resizable=yes,status=yes,toolbar=no,menubar=no,location=no");
}

function open_print(url)
{
  window.open(url,"new_printpage","left=0,height=600,top=0,width=800,scrollbars=1,resizable=yes,status=yes,location=no,menubar=yes,toolbar=yes");
}




function movedown(){

stopscroll()

if (iens6&&parseInt(crossobj.style.top)<=downHeight)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (ns4&&crossobj.top<=downHeight)
crossobj.top+=speed

if (iens6&&parseInt(crossobj.style.top)>=downHeight)
crossobj.style.top=contentheight*(-1)
else if (ns4&&crossobj.top>=downHeight)
crossobj.top=contentheight*(-1)

movedownvar=setTimeout("movedown()",45)


}

function moveup(){

stopscroll()
if (iens6&&parseInt(crossobj.style.top)>= ( contentheight*(-1) +1 ))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (ns4&&crossobj.top>=(contentheight*(-1))+1)
crossobj.top-=speed

if (iens6&&parseInt(crossobj.style.top) <= ( contentheight*(-1) +1 ))
crossobj.style.top= upHeight
else if (ns4&&crossobj.top <= (contentheight*(-1))+1)
crossobj.top = upHeight



moveupvar=setTimeout("moveup()",45)


}

function stopscroll(){
if (window.moveupvar) clearTimeout(moveupvar)

if (window.movedownvar) clearTimeout(movedownvar)
}

function movetop(){
stopscroll()
if (iens6)
crossobj.style.top=0
else if (ns4)
crossobj.top=0
}

function getcontent_height(){

if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
moveup()
}
