﻿var stylesheet = "<style>body{padding-left: 0px !important;padding-right: 0px !important;margin-left: 0px !important;margin-right: 0px !important;margin-top: 0px !important;padding-top: 0px !important; vertical-align: bottom;}#headContainer {background-color: #f4f3e4;height: 72px !important;width: 100%;background-image: url(\"http://www.thereptilezoo.com/images/headBG.gif\"); vertical-align: bottom;}#headContainer .headContent {width: 960px;border: solid 0px black;text-align: left;height: 72px; vertical-align: bottom;}.tabImg,#tabImg{padding:0px 0px 0px 0px;}</style>";
var myDomain = "http://www.thereptilezoo.com";
var divWrap = " <div style=\"width:130px; float: right; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;\">";
var tStart = "<div id=\"headContainer\" align=\"center\"><div class=\"headContent\"><table width=\"100%\" style=\"height: 60px; padding: 0 0 0 0; vertical-align: bottom;\" cellpadding=0 cellspacing=0><tr><td valign=\"bottom\" style=\"height: 60px; padding: 0 0 0 0; margin: 0 0 0 0; text-align: right;border: 0px solid black; vertical-align: bottom;\">";
var tEnd = "</td></tr></table></div></div>";
var links = new Array();
links[0] = myDomain + "/images/tabs/Gallery2.png";
links[1] = myDomain + "/images/tabs/JurassicParties2.png";
links[2] = myDomain + "/images/tabs/PrehistoricAdventures2.png";
links[3] = myDomain + "/images/tabs/PrehistoricPets2.png";
links[4] = myDomain + "/images/tabs/RZBlog2.png";
links[5] = myDomain + "/images/tabs/theReptileZoo2.png";
var linksoff = new Array();
linksoff[0] = myDomain + "/images/tabs/Gallery.png";
linksoff[1] = myDomain + "/images/tabs/JurassicParties.png";
linksoff[2] = myDomain + "/images/tabs/PrehistoricAdventures.png";
linksoff[3] = myDomain + "/images/tabs/PrehistoricPets.png";
linksoff[4] = myDomain + "/images/tabs/RZBlog.png";
linksoff[5] = myDomain + "/images/tabs/theReptileZoo.png";

var clkURL = new Array();
clkURL[5] = "http://www.thereptilezoo.com";
clkURL[4] = "http://blog.thereptilezoo.com";
clkURL[3] = "http://www.prehistoricpets.com";
clkURL[2] = "http://jurassicparties.com/BookType.aspx?type=4";
clkURL[1] = "http://jurassicparties.com";
clkURL[0] = "http://gallery.thereptilezoo.com";


initialzeTabs();


function initialzeTabs(){
    document.write(stylesheet);
    document.write(tStart);
    changeLinks(activetab);
    document.write(tEnd);
}

function changeLinks(x){
var imgref;
var output = "";
var i;

for(i=0;i<6;i++){
    if(i==x){
    output += divWrap + "<a href=\"" + clkURL[i] + "\"><img src=\"" + linksoff[i] + "\" border=0 class=tabImg id=tabImg /></a></div>";
    }
    else
    {
    output += divWrap + "<a href=\"" + clkURL[i] + "\"><img src=\"" + links[i] + "\" border=0 class=tabImg id=tabImg /></a></div>";
    }
}

document.write(output);

}
