var myref=window.location.href
myref=myref.toLowerCase()
var myrefer=document.referrer
if (!myrefer)
{  var myrefer=""
}  else
{  if (myrefer.indexOf("http")>-1 && (myrefer.indexOf("goldpactpower.com")<0 || myrefer.indexOf("goldpactpower.com")>20) && myref.indexOf("i2.html")<0)
   {  location.replace("i2.html")
   }
}

function topsee(pass)
{ window.open(pass)
}

var today=new Date()
var myyear=today.getYear()
var mysec=today.getSeconds()

if (myyear<1000)
{  myyear=2000+(myyear-100)
}

if (myyear<1000)
{  myyear=2000+(myyear-100)
}
var copyright="&#169; 1983 - "
copyright+=myyear
copyright+=" Gold Pact Financial Network"

allslogans=new Array(
"Bridging Capital, People and Power since 1983",
"Cutting Edge Airfoil and Drive Trains for the Wind Industry",
"Community Owned Grids Stable kWh pricing for generations",
"Highest Royalties for Land Owners in the Industry",
"Reliable ROI projections for generating stations",
"Wind, Bio Fuels, Geothermal: maximize your revenue stream",
"Serving Communities, Land Owners and Investors"
)
var ss=0
for (s=0; s<mysec; s++)
{   ss++
    if (ss>6)
    {  ss=0
    }
}

var myslogan=allslogans[ss]


allmenus=new Array(
"i2.index.pr2010.iv2010.ivrisk.lo2010.ut2010{]ab2010.About Us{]pr2010.Products and Services{]iv2010.Investor Relations{]lo2010.Land Owners{]ut2010.Utilities{]contact.Contact{]signin.Login"
)

if (myref.indexOf("?7577")<0)
{  
allmenus=new Array(
"i2.index.pr2010.iv2010.ivrisk.lo2010.ut2010{]contact.Contact{]signin.Login"
)
}

if (myref.indexOf("goldpactpower.com/")<0)
{  myref="goldpactpower.com/"+myref
}
msplit=myref.split("/")
var mlen=msplit.length
mlen--
var aword=msplit[mlen]
aword=aword.toLowerCase()
if (aword.indexOf("html?")>-1)
{  msplit=aword.split(".html?")
   var sref=msplit[0]+"?"+msplit[1]
}  else
{  msplit=aword.split(".html")
   var sref=msplit[0]
}
var mymenu=""
for (m=0; m<allmenus.length; m++)
{   var amenu=allmenus[m]
    msplit=amenu.split("{]")
    var lside=msplit[0]
    if (lside.indexOf(sref)>-1)
    {  mymenu=amenu
    }
}

if (mymenu=="")
{  mymenu=allmenus[0]
}

var topmenu=mymenu
var menufont="0"
var toppic="gpptop4b.jpg"
var topw="940"
var toph="115"
if (myref.indexOf("com/lo")>-1)
{  toppic="gpptop.jpg"
   topw="1110"
   toph="118"
}

var mytop="<center><table width=70%><tr><td><table background=\"http://goldpactpower.com/"
mytop+=toppic
mytop+="\"><tr><td align=left><img src=\"spacer.gif\" width="
mytop+=topw
mytop+=" height=1><br><img src=\"spacer.gif\" width=550 height="
mytop+=toph
mytop+="><table width=100% cellpadding=3><tr>"
var fontpart="<font face=\"verdana, arial, helvetica\" size=\"0\" color=\"#FFFFFF\" class=\"thtcolor\">"
var mybot="<table width cellpadding=5><tr><td nowrap><center>"+fontpart+"| "
var tdparta="<td nowrap><center>"
var ha="<a href=\"javascript:topsee('"
var hb=".html')\">"
var hc="</a>"
var tdpartb="</td>"
// fontpart="<font face=arial size=-2 color=white>"
var botd="</a> "
msplit=mymenu.split("{]")
for (i=0; i<msplit.length; i++)
{   var aword=msplit[i]
    if (i==0)
    {  aword="home.Home"
    }
    isplit=aword.split(".")
    var lside=isplit[0]
    if (lside.indexOf("?")>-1)
    {  lsplit=lside.split("?")
       lside=lsplit[0]
       var rside=lsplit[1]
       lside=lside+".html?"+rside
       pb="\">"
       bb=pb
    }
    var rside=isplit[1]
    var newmenu=tdparta
    newmenu+=ha
    newmenu+=lside
    newmenu+=hb
    newmenu+=fontpart
    newmenu+=rside
    newmenu+=hc
    newmenu+=tdpartb
    mytop+=newmenu
    var newmenu=ha
    newmenu+=lside
    newmenu+=hb
    newmenu+=fontpart
    newmenu+=rside
    newmenu+=hc
    newmenu+=" | "
    mybot+=newmenu
}
mytop+="<td align=right><font size=-2 face=arial color=white><i>"
mytop+=myslogan
mytop+="</td></tr></table></td></tr></table></td></tr><tr><td><p>"
document.write(mytop)
mybot+="<br><font size=-3 face=arial color=white>"
mybot+=copyright
mybot+="</td></tr></table><br><font size=-3 face=arial color=white>"