/* function writeHomeFlash() {
	document.writeln('<table id="Table_01" width="899" height="361" border="0" cellpadding="0" cellspacing="0">');
	document.writeln('	<tr>');
	document.writeln('		<td>');
	document.writeln('			<object type="application/x-shockwave-flash" data="images/HomeFlash.swf" width="899" height="361">');
	document.writeln('				<param name="movie" value="images/HomeFlash.swf" />');
	document.writeln('				<param name="quality" value="high" />');
	document.writeln('				<param name="wmode" value="transparent" />');
	document.writeln('			</object>');
	document.writeln('		</td>');
	document.writeln('	</tr>');
	document.writeln('</table>');
}
*/


function writeHomeFlash() {
	document.writeln('<img src="images/hfg-homefeature-strFin.jpg" alt="">');
}

function writeBkgdPic(section) {
	document.writeln('<img src="images/hfg-interior-' + section + '_01.gif" alt="">');
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		menu_home_over = newImage("images/menu-home-over.gif");
		menu_businesses_over = newImage("images/menu-businesses-over.gif");
		menu_mgt_over = newImage("images/menu-mgt-over.gif");
		menu_arts_over = newImage("images/menu-arts-over.gif");
		menu_philan_over = newImage("images/menu-philan-over.gif");
		menu_news_over = newImage("images/menu-news-over.gif");
		menu_contactus_over = newImage("images/menu-contactus-over.gif");
		preloadFlag = true;
	}
}

startList = function() {
	preloadImages(); 
	
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		if (!(navRoot==null)){
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
		
		AdminNavRoot = document.getElementById("AdminNav");
		if (!(AdminNavRoot==null)){
			for (i=0; i<AdminNavRoot.childNodes.length; i++) {
				node = AdminNavRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
}

window.onload=startList;