// contact footer popup code
var ContactFooterPopupCloseDelay = 1; // num seconds after mouseoff before menu goes away

function ContactOver()
{
	clearTimeout(ContactPopupTimer);

	var PopupDiv = document.getElementById("contact_popup");
	PopupDiv.style.display = "inline";
}
var ContactPopupTimer;
function ContactOut()
{
	ContactPopupTimer = setTimeout ( "PerformContactOut()", (1000 * ContactFooterPopupCloseDelay) );
}

function PerformContactOut()
{
	clearTimeout(ContactPopupTimer);

	var PopupDiv = document.getElementById("contact_popup");

	PopupDiv.style.display = "none";
}

function ClearContactTimer()
{
	clearTimeout(ContactPopupTimer);	
}

// OTHER FUNCTIONS BELOW

function openWingallery(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?400:w;
h = (isNaN(h) || h==null)?300:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}


function openWinwwd(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?788:w;
h = (isNaN(h) || h==null)?545:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

function openWin(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?788:w;
h = (isNaN(h) || h==null)?545:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

function openWinshort(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?700:w;
h = (isNaN(h) || h==null)?500:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

function openWinmusic(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?400:w;
h = (isNaN(h) || h==null)?300:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}

// CALL TO CORRECT DIRECTORY BELOW - if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly
var imgdir = "images/";
var sitedir = "";
var securedir = "";
var homedir = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.monumentstyle.com/images/"
sitedir="http://www.monumentstyle.com"
securedir="http://www.monumentstyle.com"
homedir="http://www.monumentstyle.com"
}
else if(window.securepage)
{
imgdir="https://www.monumentstyle.com/images"
sitedir="http://www.monumentstyle.com"
securedir="https://www.monumentstyle.com"
homedir="http://www.monumentstyle.com"
}
// CALL TO CORRECT DIRECTORY ABOVE

// 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;
}

var navitems = new Array();

navitems["enter"] = new makeNavImage("enter",450,26);


function img_act(imgName){
document[imgName].src = navitems[imgName].newimage_on.src;
}

function img_inact(imgName){
window.status = "";
document[imgName].src = navitems[imgName].newimage_off.src;
}
// ROLLOVER CODE ABOVE

// flash script



// flash script




// OTHER FUNCTIONS ABOVE