/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="Digital Insight, DI, UGA, College of Environment and Design, Habitat for Humanity, Athens, Georgia, Green House, Mary Weaver, Habitat, Local Habitat Athens">');

document.write('<meta name="description" content="Digital Insight, DI, UGA, College of Environment and Design, Habitat for Humanity, Athens, Georgia, Green House, Mary Weaver, Habitat, Local Habitat Athens">');
/*
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
*/
/*
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="habitat/images/";
sitedir="habitat/site";
securedir="habitat/site/";
homedir="";
}

else
{
imgdir="../images/";
sitedir="";
securedir="";
homedir="../";
}


// 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

function makeNavImage(name,width,height)
{
this.name_on="nav-" + name +"-on.gif";
this.name_off="nav-" + name +"-off.gif"
this.width=width;
this.height=height;
this.newimage_on = new Image(width,height);
this.newimage_on.src = imgdir + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = imgdir + this.name_off;
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";

var nav_heights = 25;

var navitems = new Array(); 
navitems["home"] = new makeNavImage("home","71",nav_heights);
navitems["schedule"] = new makeNavImage("schedule","137",nav_heights);
navitems["fundraising"] = new makeNavImage("fundraising","111",nav_heights);
navitems["homeowner"] = new makeNavImage("homeowner","169",nav_heights);
navitems["photos"] = new makeNavImage("photos","73",nav_heights);
navitems["contacts"] = new makeNavImage("contacts","103",nav_heights);
navitems["video"] = new makeNavImage("video","275","24");
navitems["donate200"] = new makeNavImage("donate200","154","47");
navitems["donate500"] = new makeNavImage("donate500","154","49");
navitems["donateany"] = new makeNavImage("donateany","154","46");
navitems["signup"] = new makeNavImage("signup","171","25");
navitems["directions"] = new makeNavImage("directions","109","25");
}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
document [imgName].src = navitems[imgName].newimage_on.src;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
document [imgName].src = navitems[imgName].newimage_off.src;
}
}

// 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 showplans()
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open("blueprint.html","hello","width=593,height=400,left=" + pWidth + ",top=" + pHeight + ",resizable=0,scrollbars=0");
}


function showshirt()
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open("tshirt-large.html","hello","width=516,height=400,left=" + pWidth + ",top=" + pHeight + ",resizable=0,scrollbars=0");
}

function show_photos(buildday)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open( "photos-" + buildday + ".html","hello","width=650,height=510,left=" + pWidth + ",top=" + pHeight + ",resizable=0,scrollbars=0");
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('http://www.dicharityworks.com/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=800,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}