function pagestyle()
{
document.write("	<style type='text/css'>")
document.write("		html, body {")
document.write("			margin: 0 auto;")
document.write("		}")
// document.write("		#leftcol {")
// document.write("			float: auto;")
// document.write("			width: auto;")
// document.write("			border: #000 0px solid;")
// document.write("		}")
document.write("		#main {")
document.write("			margin: 0 auto;")
document.write("			width: 750px;")
document.write("			margin-right:auto;")
document.write("			margin-left:auto;")
document.write("		}")
document.write("		#centercol {")
document.write("			border: #f00 0px solid;")
document.write("			margin: 0 auto;")
// document.write("			background-color: #e7dec1;")
document.write("				background: url("+rootlocation+sitethemedir+"bodyback3.png) repeat;")
// document.write("			background: #000000 url(../themes/theme-0001/bodyback2.png) repeat")
// background-image:url('bgdesert.jpg')
document.write("			font-family: Sans-Serif;")
document.write("			font-weight: bold;")
document.write("			font-style: italic;")
document.write("			font-size: 12px;")
document.write("		}")
// document.write("		#rightcol {")
// document.write("			float: right;")
// document.write("			width: 0px;")
// document.write("			border: #000 0px solid;")
// document.write("			}")
document.write("		</style>")
}

function topheading()
{
pagestyle()

document.write("<BODY BACKGROUND='")
document.write(rootlocation)
document.write(imagebackdrop)
document.write("'>")

// if (pagename=="Home")
// 		{
// 		}
// 		else
// 		{
// 		}
// document.write("<TABLE BORDER=0 WIDTH=100% CELLSPACING=0 CELLPADDING=0 >");
// document.write("<TR><TD BACKGROUND='"+rootlocation+bannerback+"'><A HREF='"+rootlocation+"index.html'>")
// document.write("<IMG SRC='")
// document.write(rootlocation)
// document.write(bannertop)
// document.write("' HEIGHT=0 BORDER=0 ALIGN=RIGHT>")
// document.write("</A></TD></TR>")
// document.write("</TABLE>")
// document.write("<DIV ID='leftcol'>")
// menu()
// linkcolumnl()
// document.write("</DIV>")

document.write("<DIV ID='main'>")
// document.write("<DIV ID='rightcol'>")
// linkcolumnr()
// document.write("</DIV>")
document.write("<DIV ID='centercol'>")
if (pagename=="Home")
{
}
else
{
document.write("<DIV STYLE='width: 750px; background: url(header-001.png) repeat; height: 145px;'>")
document.write("<A HREF='"+rootlocation+"index.html'>")
document.write("<DIV STYLE='float: left;'>")
document.write("<IMG SRC='"+rootlocation+"logo.gif' WIDTH=200 BORDER=0><BR>")
document.write("</DIV>")
// document.write("<DIV STYLE='float: right;'>")
document.write("<IMG SRC='"+rootlocation+"black_outline.gif' WIDTH=100 BORDER=0>")
// document.write("</DIV>")
document.write("</A></DIV>")

}
// document.write("<IMG SRC='"+rootlocation+"shared/images/misc/menu_back.gif' width=750 height=40 BORDER=0 ALIGN=LEFT>")
// document.write("<BR>")
// document.write("<DIV STYLE='width: 100%; height: 0px;'>")
// function Go(){return}
// document.write("</DIV><P>")
// pulldownmenu()
document.write("<DIV STYLE='width: 750px;  background: #5b792b; float: left;'>")
}

function pulldownmenu()
{
document.write("<DIV STYLE='width: 100%; height: 0px;'>")
function Go(){return}
document.write("</DIV><P>")
}

function pageend()
{


document.write("<IMG SRC='"+rootlocation+"shared/images/misc/bottom-banner.png'>")
document.write("</DIV>")
// document.write("<DIV STYLE='background-color: #5b792b;'>")
document.write("<DIV CLASS='pageend'>")
document.write("<DIV STYLE='padding: 10px; float: left;'>")
document.write("<B>Lone Oak Farm</B><BR>")
document.write("<B>Lexington, KY 40511</B><BR>")
document.write("<A HREF='mailto:val@jnkspots.com'>val@jnkspots.com</A><BR>")
document.write("<B>(859) 299-1449</B><BR>")
document.write("</DIV>")
document.write("<DIV STYLE='padding: 10px; float: right;'>")
document.write("<B>Website Design by</B><BR>")
document.write("<B><A HREF='http://www.pcgeeks4u.com'>PCGeeks4U</A></B><BR>")
// document.write("</DIV>")
document.write("</DIV></DIV>")
document.write("<IMG SRC='"+rootlocation+"shared/images/misc/blank.gif' WIDTH=720 HEIGHT=5>")
// document.write("<IMG SRC='"+rootlocation+"shared/images/misc/bottom-banner.png'>")
// document.write("<P>")
// document.write("<IMG SRC='"+rootlocation+bannerbottom+"'>")
// document.write("<CENTER>")
// document.write("<A HREF='"+rootlocation+"index.html'>Home</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"show_horses/index.html'>Show Horses</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"broodmares/index.html'>Broodmares</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"stallions/index.html'>Stallions</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"sales_list/index.html'>Sales List</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"nursery/index.html'>Nursery</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"links/index.html'>Links</A>")
// document.write(" = ")
// document.write("<A HREF='"+rootlocation+"email/index.html'>Email</A>")
// document.write("</CENTER>")
// document.write("<P><HR>")
// document.write("<DIV STYLE='width: 420px; float: left; padding: 0px'>")
// headlabel=" +"
// simpleheading()
// document.write("<P><DIV STYLE='width: 800px; float: none;'>")
// document.write("</CENTER></CENTER>")
// document.write("<P><FONT SIZE=-2 FACE='Sans-Serif'>This site was created by<BR></FONT><A HREF='http://www.pcgeeks4u.com' TARGET='_top'>")
// document.write("<FONT SIZE=+1 FACE='Sans-Serif'>PCGeeks4U.com</FONT></A></DIV>")
}

function horseblock()
{
document.write("<DIV STYLE='padding: 2px; width: 510px;'>")
document.write("<DIV STYLE='padding: 5px; background: #FFF url("+rootlocation+"shared/images/themes/theme-0001/leather-back.png) repeat; width: 500px; height: 230px;'>")
document.write("<DIV STYLE='padding: 2px; width: 210px; float: left;'><IMG SRC='"+horseimage+"' HEIGHT=200 WIDTH=200></DIV>")
document.write("<DIV STYLE='padding: 2px; width: 280px; float: left;'><A HREF='"+rootlocation+"horses/"+horselink+"/index.html'><B><FONT SIZE=+1>"+horsename+"</FONT></B></A><BR>"+horsedescription)
document.write("<P><A HREF='"+rootlocation+"horses/"+horselink+"/index.html'>MORE</A></DIV>")
document.write("</DIV></DIV>")
}

function forsaleblock()
{
document.write("<DIV STYLE='padding: 2px; width: 700px; float: left;'>")
document.write("<DIV STYLE='padding: 5px; background: #FFF url("+rootlocation+"shared/images/themes/theme-0001/leather-back.png) repeat; width: 700px; float: left;'>")
document.write("<DIV STYLE='padding: 2px; width: 210px; float: left;'><IMG SRC='"+horseimage+"' HEIGHT=200 WIDTH=200><BR>")
document.write("<FONT SIZE=-1>"+horsename+"</FONT></DIV>")
document.write("<DIV STYLE='padding: 2px; width: 480px; float: left;'><A HREF='"+rootlocation+"horses/"+horselink+"/index.html'><B><FONT SIZE=+1>"+horsename+"</FONT></B></A><BR>"+horsedescription)
document.write("<P>AVAILABLE FOALS</DIV>")
// document.write("</DIV></DIV>")
}

function forsalefoals()
{
document.write("<DIV STYLE='padding: 2px'>")
document.write("<DIV STYLE='height: 160px; padding: 5px; background: #FFF url(leather.png) repeat; color: #FFFFFF;'>")
document.write(foalname+"<BR>")

document.write("<IMG SRC='leather_divide.png'>")
document.write("<DIV STYLE='float: left; padding: 5px;'><IMG SRC='"+horselink+"_foal"+foal+"_image1.png' WIDTH=120></DIV>")
document.write("<DIV STYLE='float: left; padding: 5px;'><IMG SRC='"+horselink+"_foal"+foal+"_image2.png' WIDTH=120></DIV>")
document.write("<DIV STYLE='float: left; padding: 5px;'><IMG SRC='"+horselink+"_foal"+foal+"_image3.png' WIDTH=120></DIV>")
document.write("</DIV></DIV>")
}

function forsalefoals()
{
document.write("<DIV STYLE='width: 470px; padding: 2px'>")
document.write("<DIV STYLE='float: left; padding: 5px; background: #FFF url(leather.png) repeat; color: #FFFFFF; font: 14px Verdana, Helvetica, sans-serif;'><U><B>")
document.write(foalname+"</U></B><BR>")
document.write(foaldescription+"<BR>")
document.write("<IMG SRC='leather_divide.png' WIDTH=330>")

document.write("<DIV CLASS='birthlink'>")
document.write("<DIV CLASS='birthlinkcontainer'><a href='"+pedigreelink+"' rel='lightbox["+horselink+foal+"]' title='"+caption+"'><IMG SRC='pedigree.jpg' WIDTH=80 BORDER=0></DIV><DIV CLASS='birthlinkcontainer'></A>")
document.write("</DIV></DIV>")

document.write("<DIV CLASS='birthlink'>")
document.write("<DIV CLASS='birthlinkcontainer'><a href='"+horselink+"_foal"+foal+"_image1.png' rel='lightbox["+horselink+foal+"]' title='"+caption+"'><IMG SRC='"+horselink+"_foal"+foal+"_image1.png' WIDTH=80 BORDER=0></DIV><DIV CLASS='birthlinkcontainer'></A>")
document.write("</DIV></DIV>")
document.write("<DIV CLASS='birthlink'>")
document.write("<DIV CLASS='birthlinkcontainer'><a href='"+horselink+"_foal"+foal+"_image2.png' rel='lightbox["+horselink+foal+"]' title='"+caption+"'><IMG SRC='"+horselink+"_foal"+foal+"_image2.png' WIDTH=80 BORDER=0></DIV><DIV CLASS='birthlinkcontainer'></A>")
document.write("</DIV></DIV>")
document.write("<DIV CLASS='birthlink'>")
document.write("<DIV CLASS='birthlinkcontainer'><a href='"+horselink+"_foal"+foal+"_image3.png' rel='lightbox["+horselink+foal+"]' title='"+caption+"'><IMG SRC='"+horselink+"_foal"+foal+"_image3.png' WIDTH=80 BORDER=0></DIV><DIV CLASS='birthlinkcontainer'></A>")
document.write("</DIV></DIV>")
document.write("</DIV></DIV>")
}



function registered(organization)
{
document.write("<DIV STYLE='padding: 3px; float: left;'>")
if (organization=="KMSHA")
{
document.write("<A HREF='http://www.kmsha.com'><IMG SRC='"+rootlocation+"shared/images/misc/kmsha.png' BORDER=0></A>")
}
if (organization=="SMHA")
{
document.write("<A HREF='http://www.kmsha.com/smha/index.htm'><IMG SRC='"+rootlocation+"shared/images/misc/smha.png' BORDER=0></A>")
}
if (organization=="TWHBEA")
{
document.write("<A HREF='http://www.twhbea.com/'><IMG SRC='"+rootlocation+"shared/images/misc/twhbea.png' BORDER=0></A>")
}
if (organization=="SSHBEA")
{
document.write("<A HREF='http://www.sshbea.org/'><IMG SRC='"+rootlocation+"shared/images/misc/sshbea.png' BORDER=0></A>")
}
document.write("</DIV>")
}

function gallerypic(picture,caption)
{
document.write("<DIV CLASS='birthlink'>")
document.write("<DIV CLASS='birthlinkcontainer'><a href='"+picture+"' rel='lightbox[birth]' title='"+caption+"'><IMG SRC='"+picture+"' WIDTH=80 BORDER=0></DIV><DIV CLASS='birthlinkcontainer'></A>")
document.write("</DIV></DIV>")
}

function pedigree(picture)
{
document.write("<DIV CLASS='pedigreelink'>")
document.write("<DIV CLASS='pedigreelinkcontainer'><a href='"+picture+"' rel='lightbox[birth]' title='.'><IMG SRC='"+rootlocation+"shared/images/misc/pedigree.png' BORDER=0></DIV><DIV CLASS='pedigreelinkcontainer'></A>")
document.write("</DIV></DIV>")
}

