<!--

if (typeof(base) == "undefined") {
	var base = "graphics/";
	var swaps = new Array( "button1", "button2", "button3", "button4", "button5", "button6", "button7", "view1", "view2", "viewall");
	var files = new Array( "b_home", "b_about", "b_healthy", "b_education", "b_residential", "b_commercial", "b_contact", "b_view", "b_view", "b_viewall");
}

var nrm = new Array();
var omo = new Array();
var newwindow = '';

if (document.images)
{
	for (i=0;i<swaps.length;i++)
	{
		nrm[i] = new Image;
		nrm[i].src = base + files[i] + ".gif"
		omo[i] = new Image;
		omo[i].src = base + files[i] + "_over.gif";
	}
}

function over(no)
{
	if (document.images)
	{
		document.images[swaps[no]].src = omo[no].src
	}
}

function out(no)
{
	if (document.images)
	{
		document.images[swaps[no]].src = nrm[no].src
	}
}

function popup(width,height,location)
{
	x = (640 - width)/2, y = (480 - height)/2;
    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
	newwindow=window.open('about:blank','popWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width=' + width + ',height=' + height + ',screenX=' + x + ',screenY=' + y + ',top=' + y + ',left=' + x + ',scrollbars=no,resize=no');
	newwindow.document.open('text/html');
	newwindow.document.write('<html><head><title>Dawncreative<\/title>');
/*	newwindow.document.write('<html><head><title>Dawncreative '+location+'<\/title>');  */
	newwindow.document.write('<link rel="stylesheet" href="../../style.css"><\/head>');
	newwindow.document.write('<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" onBlur="self.close();">');
	newwindow.document.write('<img src="'+location+'">');
	newwindow.document.write('<\/body><\/html>');
	newwindow.document.close();
	if (window.focus) {newwindow.focus()}
}

function swap_thumb(obj)
{
	var ximg = document.getElementById("bigboy");
	var line = document.getElementById("liner");

	var src = obj.src.replace(/thumb/, "main");
	src = src.replace(/gif$/, "jpg");

	ximg.src = src;
	line.style.paddingLeft = obj.offsetLeft;
}

/*
function popup(width,height,location)
{
    x = (640 - width)/2, y = (480 - height)/2;
    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
	popup4 = window.open(location,"newWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width="+width+",height="+height+",screenX="+x+",screenY="+y+",top="+y+",left="+x+",scrollbars=no");
    setTimeout('popup4.focus();',250);
}
*/
//-->
