// JavaScript Document

var reportsDiv = document.getElementById("reportsContainer");
var investorsDiv = document.getElementById("investorsContainer");
var divIsNotThere = reportsDiv == undefined;
//only hide/show if both divs have been created...
function showProjectDetail(whichDirectory) {
var reportsDiv = document.getElementById("reportsContainer");
var investorsDiv = document.getElementById("investorsContainer");
var reportsDivExists = reportsDiv != undefined;
var investorsDivExists = investorsDiv != undefined;
if (reportsDivExists && investorsDivExists) {
//hide both...
reportsDiv.style.display = "none";
investorsDiv.style.display = "none";
//show the selected block...
var divToShow = eval(whichDirectory + "Div");
divToShow.style.display = "block";
}
}

function PassFlash1()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 1);
}
function PassFlash2()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 2);
}
function PassFlash3()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 3);
}
function PassFlash4()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 4);
}
function PassFlash5()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 5);
}
function PassFlash6()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 6);
}
function PassFlash7()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 7);
}
function PassFlash8()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 8);
}
function PassFlash9()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 9);
}
function PassFlash10()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 10);
}
function PassFlash11()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 11);
}
function PassFlash12()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 12);
}
function PassFlash13()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 13);
}
function PassFlash14()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 14);
}
function PassFlash15()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 15);
}
function PassFlash16()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 16);
}
function PassFlash17()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 17);
}
function PassFlash18()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 18);
}
function PassFlash19()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 19);
}
function PassFlash20()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 20);
}
function PassFlash21()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 21);
}
function PassFlash22()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 22);
}
function PassFlash23()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 23);
}
function PassFlash24()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 24);
}
function PassFlash25()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 25);
}
function PassFlash26()
{
parent.topFrame.document.nav.SetVariable("PGTRIG", 26);
}

// end PGtrig
var topMargin = 1 
var slideTime = 120
var ns6 = (!document.all && document.getElementById); 
var ie4 = (document.all);
var ns4 = (document.layers);
window.setInterval("main()", 10) 

function floatObject() { 
if (ns4 || ns6) {
findHt = window.innerHeight; 
} else if(ie4) {
findHt = document.body.clientHeight;
}
} 

function main() { 
if (ns4) { 
this.currentY = document.floatLayer.top; 
this.scrollTop = window.pageYOffset;
mainTrigger();
} else if(ns6) {
this.currentY = parseInt(document.getElementById('floatLayer').style.top); 
this.scrollTop = scrollY;
mainTrigger(); 
} else if(ie4) { 
this.currentY = floatLayer.style.pixelTop;
this.scrollTop = document.body.scrollTop; 
mainTrigger();
} 
} 
function mainTrigger() { 
var newTargetY = this.scrollTop + this.topMargin 
if ( this.currentY != newTargetY ) { 
if ( newTargetY != this.targetY ) { 
this.targetY = newTargetY
floatStart(); 
} 
animator(); 
} 
} 
function floatStart() { 
var now = new Date() 
this.A = this.targetY - this.currentY 
this.B = Math.PI / ( 2 * this.slideTime ) 
this.C = now.getTime() 
if (Math.abs(this.A) > this.findHt) { 
this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt 
this.A = this.A > 0 ? this.findHt : -this.findHt 
} else { 
this.D = this.currentY 
} 
} 
function animator() { 
var now = new Date() 
var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D 
newY = Math.round(newY) 
if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) { 
if ( ie4 )floatLayer.style.pixelTop = newY 
if ( ns4 )document.floatLayer.top = newY
if ( ns6 )document.getElementById('floatLayer').style.top = newY + "px" 
} 
} 
// end floater

function WM_netscapeCssFix() {
  

  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn()

//end cssfix

function popitup(url)
{
	newwindow=window.open(url,'name','height=600,width=800');
	if (window.focus) {newwindow.focus()}
	return false;
}

// end popup



// end PGtrig