if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
*/


//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}

else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}


/*else if(window.absolutepage)
{
imgdir="http://www.heritagecbonline.com/images/"
sitedir="http://www.heritagecbonline.com/site/"
securedir="http://www.heritagecbonline.com/site/"
homedir="http://www.heritagecbonline.com/"
}
else if(window.securepage)
{
imgdir="https://www.heritagecbonline.com/images/"
sitedir="http://www.heritagecbonline.com/site/"
securedir="https://www.heritagecbonline.com/site/"
homedir="http://www.heritagecbonline.com/"
}*/





// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";
// philosophy_on = new Image(154,32);
// philosophy_on.src = imgdir + "nav-philosophy-on.gif";
// 
// philosophy_off = new Image(154,32);
// philosophy_off.src = imgdir + "nav-philosophy-off.gif";
// 
// news_on = new Image(154,30);
// news_on.src = imgdir + "nav-news-on.gif";
// 
// news_off = new Image(154,30);
// news_off.src = imgdir + "nav-news-off.gif";
// 
// results_on = new Image(154,28);
// results_on.src = imgdir + "nav-results-on.gif";
// 
// results_off = new Image(154,28);
// results_off.src = imgdir + "nav-results-off.gif";
// 
// riders_on = new Image(154,30);
// riders_on.src = imgdir + "nav-riders-on.gif";
// 
// riders_off = new Image(154,30);
// riders_off.src = imgdir + "nav-riders-off.gif";
// 
// photos_on = new Image(154,28);
// photos_on.src = imgdir + "nav-photos-on.gif";
// 
// photos_off = new Image(154,28);
// photos_off.src = imgdir + "nav-photos-off.gif";
// 
// calendar_on = new Image(154,28);
// calendar_on.src = imgdir + "nav-calendar-on.gif";
// 
// calendar_off = new Image(154,28);
// calendar_off.src = imgdir + "nav-calendar-off.gif";
// 
// sponsors_on = new Image(154,28);
// sponsors_on.src = imgdir + "nav-sponsors-on.gif";
// 
// sponsors_off = new Image(154,28);
// sponsors_off.src = imgdir + "nav-sponsors-off.gif";
// 
// gear_on = new Image(154,27);
// gear_on.src = imgdir + "nav-gear-on.gif";
// 
// gear_off = new Image(154,27);
// gear_off.src = imgdir + "nav-gear-off.gif";


}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
imgOn = eval(imgName + "_on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
imgOff = eval(imgName + "_off.src");
document [imgName].src = imgOff;
}
}

// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE



function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");
}

function tabover(howmuch)
{
var farover = '';
farover += '<img src="../images/clearpix.gif" width="' + howmuch + '" height="1" alt="" border="0">';
document.write(farover);
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 375)
var pHeight = (((parseInt(screen.height) / 2)) - 225)
aWindow = window.open(nameofapp,'application',"toolbar=1,location=1,directories=0,status=1,menubar=0,width=750,height=450,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function open_guestbook(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 375)
var pHeight = (((parseInt(screen.height) / 2)) - 225)
location.href = 'https://www.heritagecbonline.com/Forms/OnlineForm.cgi?form=' + nameofapp;
}


function open_photo(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) - 245)
aWindow =
window.open('photobig.php#' + nameofapp,'',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=550,height=490,top=" + pHeight + ",left=" + pWidth + ",scrollbars=0,resizable=0,status=0");
}

function open_photo_tall(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 150)
var pHeight = (((parseInt(screen.height) / 2)) - 235)
aWindow =
window.open('phototall.php#' + nameofapp,'',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=300,height=475,top=" + pHeight + ",left=" + pWidth + ",scrollbars=0,resizable=0,status=0");
}

function strip_cubby_and_show()
{
var arsenal = document.URL;
var chelsea = arsenal.indexOf("#");
var cubby = document.URL.substring(chelsea + 1,document.URL.length);
document.write('<img src="' + imgdir + cubby + '-large.jpg" width="500" height="375" border="0">');
}

function strip_cubby_and_show_tall()
{
var arsenal = document.URL;
var chelsea = arsenal.indexOf("#");
var cubby = document.URL.substring(chelsea + 1,document.URL.length);
document.write('<img src="' + imgdir + cubby + '-large.jpg" width="258" height="372" border="0">');
}





function third_party(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 125)
var pHeight = (((parseInt(screen.height) / 2)) - 125)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=250,height=200,top=" + pHeight + ",left=" + pWidth);
}


function make_philly() {

var numImages = phillio.length;

var randindex = Math.ceil((Math.random()* numImages)) - 1;

document.write("" + phillio[randindex] + "");

}



//style sheet sniffer
document.write('<scr' + 'ipt src="/javascripts/_styles.js" language="javascript" type="text/javascript"></scr' + 'ipt>');
