if (document.images) {
homeon = new Image();
homeon.src = "images/home-over.png";
homeoff = new Image();
homeoff.src = "images/home-up.png";
aboutuson = new Image();
aboutuson.src = "images/aboutus-over.png";
aboutusoff = new Image();
aboutusoff.src = "images/aboutus-up.png";
photoson = new Image();
photoson.src = "images/photos-over.png";
photosoff = new Image();
photosoff.src = "images/photos-up.png";
contactuson = new Image();
contactuson.src = "images/contactus-over.png";
contactusoff = new Image();
contactusoff.src = "images/contactus-up.png";
linkson = new Image();
linkson.src = "images/links-over.png";
linksoff = new Image();
linksoff.src = "images/links-up.png";
rentingon = new Image();
rentingon.src = "images/renting-over.png";
rentingoff = new Image();
rentingoff.src = "images/renting-up.png";
weddingson = new Image();
weddingson.src = "images/weddings-down.png";
weddingsoff = new Image();
weddingsoff.src = "images/weddings-up.png";
collegeon = new Image();
collegeon.src = "images/college-corp-down.png";
collegeoff = new Image();
collegeoff.src = "images/college-corp-up.png";
bdayon = new Image();
bdayon.src = "images/Birthdays-down.png";
bdayoff = new Image();
bdayoff.src = "images/Birthdays-up.png";
presenton = new Image();
presenton.src = "images/Presentation-down.png";
presentoff = new Image();
presentoff.src = "images/Presentation-up.png";
promon = new Image();
promon.src = "images/prom-down.png";
promoff = new Image();
promoff.src = "images/prom-up.png";

catereron = new Image();
catereron.src = "images/Caterers-over.png";
catereroff = new Image();
catereroff.src = "images/Caterers-up.png";
djon = new Image();
djon.src = "images/DJServices-over.png";
djoff = new Image();
djoff.src = "images/DJServices-up.png";

locationson = new Image();
locationson.src = "images/eventloca-over.png";
locationsoff = new Image();
locationsoff.src = "images/eventloca-up.png";

planon = new Image();
planon.src = "images/eventplan-over.png";
planoff = new Image();
planoff.src = "images/eventplan-up.png";

photographerson = new Image();
photographerson.src = "images/photographers-over.png";
photographersoff = new Image();
photographersoff.src = "images/photographers-up.png";

invitationson = new Image();
invitationson.src = "images/invitations-over.png";
invitationsoff = new Image();
invitationsoff.src = "images/invitations-up.png";

cakeson = new Image();
cakeson.src = "images/cakes-desserts-over.png";
cakesoff = new Image();
cakesoff.src = "images/cakes-desserts-up.png";
}
function imgOn(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "on.src");
	}
}
function imgOff(imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
	}
}

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=400,height=300,scrollbars=yes,resizable=yes');
return false;
}

function photopopup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=800,height=600,scrollbars=yes,resizable=yes');
return false;
}

function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}
