//pcnavbar misc

//jumptop
var displayed="<nobr><font size=2 face=arial><b>(Top)</b></font></nobr>"

var logolink='javascript:window.scrollTo(0,0)'
var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (ns4)
setTimeout("window.onresize=regenerate",400)
}

if (ie4||ns6)
document.write('<span id="logo" style="position:absolute;top:-300;z-index:100">'+displayed+'</span>')

function createtext(){ //function for NS4
staticimage=new Layer(5)
staticimage.left=-300
staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>')
staticimage.document.close()
staticimage.visibility="show"
regenerate2()
staticitns()
}

function staticit(){ //function for IE4/ NS6
var w2=ns6? pageXOffset+w : document.body.scrollLeft+w
var h2=ns6? pageYOffset+h : document.body.scrollTop+h
crosslogo.style.left=w2
crosslogo.style.top=h2
}

function staticit2(){ //function for NS4
staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28
staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10
}

function inserttext(){ //function for IE4/ NS6
if (ie4)
crosslogo=document.all.logo
else if (ns6)
crosslogo=document.getElementById("logo")
crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>'
w=ns6? window.innerWidth-crosslogo.offsetWidth-20 : document.body.clientWidth-crosslogo.offsetWidth-10
h=ns6? window.innerHeight-crosslogo.offsetHeight-15 : document.body.clientHeight-crosslogo.offsetHeight-10
crosslogo.style.left=w
crosslogo.style.top=h
if (ie4)
window.onscroll=staticit
else if (ns6)
startstatic=setInterval("staticit()",100)
}
if (ie4||ns6){


window.onload=inserttext
window.onresize=new Function("window.location.reload()")
}
else if (ns4)
window.onload=createtext

function staticitns(){ //function for NS4
startstatic=setInterval("staticit2()",90)
}

//onetel

var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.co)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;}
else {alert('Enter Friends e-mail address.');
field.focus();
field.select();
good = false;}
}
u = window.location;
m = "This horse and equestrian website might interest you!";
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.address);
if (good) {
// the following expression must be all on one line...
window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
}
}

//Branding
percent = "65";
function frameBranding(actualurl, brandingurl, frametype) {
var framewin = window.open("","brandingframe");
with (framewin.document) {
write("<html><frameset " + frametype + "=" + percent + ",*>");
write("<frame src=" + brandingurl + ">");
write("<frame src=" + actualurl + ">");
write("</frameset></html>");
   }
return false;}

if (top.location != location){top.location.href = document.location.href;}

document.writeln('<style type="text/css"><!--');
document.writeln('BODY {');
document.writeln('scrollbar-face-color: 008b45;');
document.writeln('scrollbar-highlight-color: 00ff00;');
document.writeln('scrollbar-3dlight-color: 009999;');
document.writeln('scrollbar-darkshadow-color: 000000;');
document.writeln('scrollbar-shadow-color: 000000;');
document.writeln('scrollbar-arrow-color: ffff33;');
document.writeln('scrollbar-track-color: 00ee00;');
document.writeln('}');
document.writeln('A:hover {font-family: Arial; font-size:13; color:yellow; font-weight:bold; text-decoration: none; background-color:green;}');
document.writeln('A:link {font-family: Arial; font-size:13; font-weight:bold; text-decoration: none;}');
document.writeln('A:visited {font-family: Arial; font-size:13; font-weight:bold; text-decoration: none;}');
document.writeln('h5 {font-family: arial; font-weight: 300}');
document.writeln('--></style>');

document.writeln('</head>');
document.writeln('<body topmargin="0" leftmargin="0">');
document.writeln('<center>');

document.writeln('<table width="728" cellpadding="0" cellspacing="0" border="0"><tr><td width="90" align="center" valign="middle">');
document.writeln('<a href="http://www.polocenter.com/"><img src="../images/pcsq.jpg" width="90" height="90" border="0" alt="PoloCenter Home Page"></a><br>');

var dayNames = new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var dt = new Date();
var y  = dt.getYear();
// Y2K compliant
if (y < 1000) y +=1900;
document.writeln('<font size="1" face="arial" color=0000ff>');
document.write(dayNames[dt.getDay()] + " " + monthNames[dt.getMonth()] + " " + dt.getDate());

document.writeln('</font></td><td width="518" align="center" valign="top">');

document.writeln('<table cellpadding="0" cellspacing="0" border="0"><tr><th valign="top">');
document.writeln('<img src="../images/pctop.gif" border="0"><br>');
document.writeln('<font size="1" face="arial"><font color=0000ff>Worldwide Polo Information and interactivity at your fingertips</font>');

document.writeln('</th></tr><tr><th valign="top">');
document.writeln('<font color=000099 size=2 face=arial>');
document.write("This Page Updated " + document.lastModified);
document.writeln('</font></th></tr><tr><th valign="top">');

//Google
document.writeln("<FORM method=GET action='http://www.google.com/custom'>");
document.writeln("<TABLE bgcolor='ffffff'><tr><td nowrap='nowrap' valign='top' align='center' height='32'>");
document.writeln("<A HREF='http://www.google.com/'>");
document.writeln("<IMG SRC='http://www.google.com/logos/Logo_25wht.gif' border=0 ALT='Google' align='absmiddle'></A>");
document.writeln("<INPUT TYPE=text name=q size=25 maxlength=255 value=''>");
document.writeln("<INPUT type=submit name=sa VALUE='Search'>");

document.writeln("<input type=hidden name=client value='pub-7216878132994642'>");
document.writeln("<input type=hidden name=forid value='1'>");
document.writeln("<input type=hidden name=ie value='ISO-8859-1'>");
document.writeln("<input type=hidden name=oe value='ISO-8859-1'>");
document.writeln("<input type=hidden name=cof value='GALT:#008000;GL:1;DIV:#009900;VLC:663399;AH:center;BGC:FFFFFF;LBGC:009900;ALC:000000;LC:000000;T:0000FF;GFNT:0000FF;GIMP:0000FF;LH:50;LW:50;L:http://www.polocenter.com/images/pcsq.jpg;S:http://www.polocenter.com;FORID:1;'>");
document.writeln("<input type=hidden name=hl value='en'>");
document.writeln("</td></tr></TABLE>");

document.writeln("</FORM></nobr>");
document.writeln('</th></tr><tr><th valign="top"><font size="2" face="arial"><b>');
document.writeln('<a href="../about/about.htm"> About </a>|<a href="https://adwords.google.com/select/main?cmd=Login&sourceid=promo&subid=rp&hl=en"> Advertise </a>|<a href="../about/hlinks.htm"> Links </a>|<a href="../messages.htm"> Messages </a>|<a href="../sitemap.htm"> Site Map </a>|<a href="../index.htm"> Home </a>');
document.writeln('<br><a href="http://klik1.home.att.net">&nbsp;Backup Site </a>|<font color="green"> Main Site </font>|<a href="http://www.klik1.com/polo/"> Mirror Site </a></b></font>');

document.writeln('</th></tr></table></td><td width="120" align="right" valign="middle">');
document.writeln('<A HREF="http://ad.doubleclick.net/jump/N1395.Polocenter/B47879;sz=120x60;ord=[timestamp]?"><IMG SRC="http://ad.doubleclick.net/ad/N1395.Polocenter/B47879;sz=120x60;ord=[timestamp]?" BORDER=0 WIDTH=120 HEIGHT=60 ALT="Click Here to learn more!"></A>');
document.writeln('</td></tr></table>');

if (document.all||document.getElementById)
document.body.style.background="url('../images/pcbkgr.jpg') lightyellow center no-repeat fixed"

//-->