function GetHeader()
{
	var html = new Array();
	idx= 0;
	
html[ idx++ ] = '<style type="text/css">BODY {background-image:url(img/bg1.jpg);background-repeat:repeat;}</style>'
html[ idx++ ] = '<TABLE id="Table8" borderColor=yellow height=80 cellSpacing=0 cellPadding=0 width="100%" border=0 borderColor=green>';
html[ idx++ ] = '<TR><TD class=cellbordercenter style="BACKGROUND-IMAGE: url(img/block_header2.jpg);background-repeat:no-repeat;background-color:#272D77;" vAlign=top >&nbsp;</TD></TR></table>';


return html.join( '\n' );
}


function GetBodyStyle()
{
	var html = new Array();
	idx= 0;
	
html[ idx++ ] = '<style></style>';

return html.join( '\n' );
}



function GetStyleImageBar()
{
	var html = new Array();
	idx= 0;
	
html[ idx++ ] = '<img src="img/header1c.jpg">';

return html.join( '\n' );
}

function GetPageTitle()
{
	var html = new Array();
	idx= 0;

	html[idx++] = '<span class="word3">Precision Iron Works, Inc.</span>';
//    html[ idx++ ] = '<span  class="word3">Iron Works,</span>';
//    html[ idx++ ] = '<span class="word3"> Inc.</span>';

return html.join( '\n' );
}





function mouseOver(onoff)
{
	var obj = event.srcElement;
	//alert(page);
	//alert(obj.innerHTML.indexOf(page))
	
	//if (obj.innerHTML.indexOf(page) > 0){alert(page)}

	
	
	if (onoff == "on")
	{
		obj.style.backgroundColor="#ffffff";
		//obj.style.color = "#12238F";
		obj.style.className = "navLinkOn";

	}
	else
	{
		obj.style.backgroundColor="";
		obj.style.className = "navLink";
	}

}

var page;


function GetSubLinks() {
    var html = new Array();
    idx = 0;

    html[idx++] = '<TABLE class=mainFontTiny2 width="300" valign=top align=right cellSpacing=0 cellPadding=0  border=0 borderColor=green>';
    html[idx++] = '<TR><TD colspan=2 vAlign=top height=10><img src="img/spacer.gif" width=5></TD></tr>';
    html[idx++] = '<TR>';

    html[idx++] = '<TD  align=center valign=middle>'
    html[idx++] = '<a  ';
    html[idx++] = ' class=sublink href=\"javascript:GoPageOnClick(\'gallery4\')">Community</a>';
    html[idx++] = '</TD>'
    html[idx++] = '<TD align=center valign=middle>'
    html[idx++] = '&nbsp;|&nbsp;';
    html[idx++] = '</TD>'


    html[idx++] = '<TD  align=center valign=middle>'
    html[idx++] = '<a  ';
    html[idx++] = ' class=sublink href=\"javascript:GoPageOnClick(\'gallery2\')">Public</a>';
    html[idx++] = '</TD>'
    html[idx++] = '<TD align=center valign=middle>'
    html[idx++] = '&nbsp;|&nbsp;';
    html[idx++] = '</TD>'

    html[idx++] = '<TD  align=center valign=middle>'
    html[idx++] = '<a  ';
    html[idx++] = ' class=sublink href=\"javascript:GoPageOnClick(\'gallery3\')">Medical</a>';
    html[idx++] = '</TD>'
    html[idx++] = '<TD align=center valign=middle>'
    html[idx++] = '&nbsp;|&nbsp;';
    html[idx++] = '</TD>'

    html[idx++] = '<TD  align=center valign=middle>'
    html[idx++] = '<a  ';
    html[idx++] = ' class=sublink href=\"javascript:GoPageOnClick(\'project_special\')">Residential</a>';
    html[idx++] = '</TD>'
    html[idx++] = '<TD align=center valign=middle>'
    html[idx++] = '&nbsp;|&nbsp;';
    html[idx++] = '</TD>'

    html[idx++] = '<TD  align=center valign=middle>'
    html[idx++] = '<a  ';
    html[idx++] = ' class=sublink href=\"javascript:GoPageOnClick(\'projects\')">Projects</a>';
    html[idx++] = '</TD>'
    html[idx++] = '<TD align=center valign=middle>'
    html[idx++] = '&nbsp;|&nbsp;';
    html[idx++] = '</TD>'

    html[idx++] = '<TD  align=center valign=middle>'
    html[idx++] = '<a  ';
    html[idx++] = ' class=sublink href=\"javascript:GoPageOnClick(\'gallery\')">Gallery</a>';

    html[idx++] = '</TD>'

    html[idx++] = '<TR>';
    html[idx++] = '</table>';
    
    
    return html.join('\n');    

}


function GetMainMenuHeader(page) {
	var html = new Array();
	idx= 0;


html[ idx++ ] = '<TABLE borderColor="green" align=center cellSpacing="0" cellPadding="0" width="800" border="0">';
html[ idx++ ] = '<TR>';
html[ idx++ ] = '<TD align="left"><Script language="JavaScript">document.write(GetNavLinks(\'' + page + '\'))</Script></TD>';
html[ idx++ ] = '<TD align="right"><Script language="JavaScript">document.write(GetPageTitle())</Script></TD>';
html[ idx++ ] = '</TR>';
html[ idx++ ] = '</TABLE>';

return html.join( '\n' );

}




function GetNavLinks(page)
{
page = page;

	var cls = "navLink";
	var html = new Array();
	idx= 0;

//	html[idx++] = '<TABLE bgcolor="#1E2472" width="350" valign=top  cellSpacing=0 cellPadding=0  border=0 borderColor=green>';
//html[ idx++ ] = '<TR><TD colspan=2 vAlign=top height=10><img src="img/spacer.gif" width=5></TD></tr>';
//html[ idx++ ] = '<TR><TD vAlign=top height="1"><img src="img/spacer.gif" height="1"></TD></tr>';


//html[ idx++ ] = '<TR><TD valign=top align=right >'


	html[idx++] = '<TABLE class=mainFontTiny id="linkstable"  width="100%" cellSpacing=0 cellPadding=0  border=0 borderColor=gray><tr>'

	html[ idx++ ] = '<TD align=center valign=middle>'
	if (page == "Home"){cls="navLinkOn"}else{cls = "navLink"}
	html[idx++] = '<a  onMouseOver="mouseOver(\'on\')" onMouseOut="mouseOver(\'\')" class=' + cls + ' href=\"javascript:GoPageOnClick(\'default\')">&nbsp;Home&nbsp;</a>';
	html[ idx++ ] = '</TD>'
	html[idx++] = '<TD align=center valign=middle class=mainFontTiny >'
	html[ idx++ ] = '&nbsp;|&nbsp;';
	html[ idx++ ] = '</TD>' 

	html[ idx++ ] = '<TD  align=center valign=middle>'
	if (page == "Services"){cls="navLinkOn"}else{cls = "navLink"}
	html[idx++] = '<a onMouseOver="mouseOver(\'on\')" onMouseOut="mouseOver(\'\')" class=' + cls + ' href=\"javascript:GoPageOnClick(\'services\')">&nbsp;Services&nbsp;</a>';
	html[ idx++ ] = '</TD>'
	html[idx++] = '<TD align=center valign=middle class=mainFontTiny >'
	html[ idx++ ] = '&nbsp;|&nbsp;';
	html[ idx++ ] = '</TD>' 

	html[ idx++ ] = '<TD  align=center valign=middle>'
	if (page == "Projects"){cls="navLinkOn"}else{cls = "navLink"}
	html[idx++] = '<a onMouseOver="mouseOver(\'on\')" onMouseOut="mouseOver(\'\')" class=' + cls + ' href="javascript:GoPageOnClick(\'projects1\')">&nbsp;Projects&nbsp;</a>';
	html[ idx++ ] = '</TD>'
	html[idx++] = '<TD align=center valign=middle class=mainFontTiny >'
	html[ idx++ ] = '&nbsp;|&nbsp;';
	html[ idx++ ] = '</TD>'

	html[idx++] = '<TD  align=center valign=middle>'
	if (page == "Clients") { cls = "navLinkOn" } else { cls = "navLink" }
	html[idx++] = '<a onMouseOver="mouseOver(\'on\')" onMouseOut="mouseOver(\'\')" class=' + cls + ' href=\"javascript:GoPageOnClick(\'clients\')">&nbsp;Clients&nbsp;</a>';
	html[idx++] = '</TD>'
	html[idx++] = '<TD align=center valign=middle class=mainFontTiny >'
	html[idx++] = '&nbsp;|&nbsp;';
	html[idx++] = '</TD>' 


//	html[ idx++ ] = '<TD  align=center valign=middle>'
//	if (page == "Gallery"){cls="navLinkOn"}else{cls = "navLink"}
//	html[ idx++ ] = '<a onMouseOver="mouseOver(\'on\')" onMouseOut="mouseOver(\'\')" class='+cls+' href="javascript:GoPageOnClick(\'gallery\')">Gallery</a>';
//	html[ idx++ ] = '</TD>'

	html[idx++] = '<TD  align=center valign=middle>'
	if (page == "About") { cls = "navLinkOn" } else { cls = "navLink" }
	html[idx++] = '<a onMouseOver="mouseOver(\'on\')" onMouseOut="mouseOver(\'\')" class=' + cls + ' href=\"javascript:GoPageOnClick(\'about\')">&nbsp;About&nbsp;</a>';
	html[idx++] = '</TD>'

	html[ idx++ ] = '</TR>' 
	html[ idx++ ] = '</TABLE>'

//html[ idx++ ] = '</TD></TR></table>';

return html.join( '\n' );
}


function GetFooter()
{
	var html = new Array();
	idx= 0;
/*
html[ idx++ ] = '<table width="100%" align=center><TR><TD class=mainFont vAlign=bottom align=center><br>';
html[ idx++ ] = 'Precision Iron Works, Inc., 14021 Pioneer Way E, Puyallup, WA, 98372<br>';
html[ idx++ ] = '<a  class=mainFont href="mailto:plant1@precisionironworks.com">plant1@precisionironworks.com</a>';
html[ idx++ ] = '&nbsp;&nbsp;(253) 848-7305, Fax (253) 848-7346';
html[ idx++ ] = '<br><br><span class=mainFontSmall>WWW.WriteClick.info Internet Content Management System © 2008 Dev2k.</span>';
html[ idx++ ] = '</TD></TR></TABLE>';
*/


html[ idx++ ] = '<span ><br />Precision Iron Works, Inc., 102 Frontage Road South, Pacific, WA. 98047 - 253-887-5555, fax: 253-887-5556';
//html[ idx++ ] = '&nbsp;&nbsp;<A class=footerlink target="_new" href="http://precisionironworks.com">www.PrecisionIronWorks.com</A><br /><br /></span>';
html[idx++] = '<span>- <a class=footerlink href="mailto:piw@precisionironworks.com">Contact Us</a></span>';

//html[ idx++ ] = 'EMail: <A class=mainFontSmall href="mailto:piw@precisionironworks.com">piw@precisionironworks.com</A> <BR><BR></span>';



return html.join( '\n' );
}