// Control Document
	<!--
		function MM_reloadPage(init) {  //reloads the window if Nav4 resized
		  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
		  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
		}
	
		MM_reloadPage(true);
	
		function openWindow(url) {
			openThis = window.open(url, 'nav_window', 'width=600, height=450, resizable=1');	
		}

		var win = null;
		function NewWindow(mypage,myname,w,h){
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
			settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=0,resizable=0'
			win = window.open(mypage,myname,settings)
		}
		
		function NewWindowScroll(mypage,myname,w,h){
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
			settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=1,resizable=1'
			win = window.open(mypage,myname,settings)
		}
	//-->
	
	// image functions
	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) {
			home_button_over = newImage("images/home_button-over.png");
			work_button_over = newImage("images/work_button-over.png");
			services_button_over = newImage("images/services_button-over.png");
			client_button_over = newImage("images/client_button-over.png");
			about_button_over = newImage("images/about_button-over.png");
			contact_button_over = newImage("images/contact_button-over.png");
			preloadFlag = true;
		}
	}
	
	// end image functions
	
	function getUrl( urlLink ) {
		window.location = urlLink;
	}
	
	// pop up email form
	function emailFormWindow( ){
		var w = 600;
		var h = 500;
		var myname = "formWindow";
		var mypage = "email.php";
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=0,resizable=0'
		win = window.open(mypage,myname,settings)
	}

    // correctly handle PNG transparency in Win IE 5.5 or higher.
	function correctPNG() 
	 {
		for(var i=0; i<document.images.length; i++)
		{
			var img = document.images[i]
			var imgName = img.src.toUpperCase()
			if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
			{
				var imgID = (img.id) ? "id='" + img.id + "' " : ""
				var imgClass = (img.className) ? "class='" + img.className + "' " : ""
				var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
				var imgStyle = "display:inline-block;" + img.style.cssText 
				
				if (img.align == "left") imgStyle = "float:left;" + imgStyle
				if (img.align == "right") imgStyle = "float:right;" + imgStyle
				if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle  
				
				var strNewHTML = "<span " + imgID + imgClass + imgTitle
				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
				+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
				+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
				
				img.outerHTML = strNewHTML
				
				i = i-1
			}
		 }
	 }
	
	window.attachEvent("onload", correctPNG);
	// -->
