/*************************************************
*  JavaScript file for Dallan Construction Inc.  *
*  - - - - - - - - - - - - - - - - - - - - - - - *
*  Created By: Valentine Marchetti               *
*  Dated Created: 02/23/2007                     *
*  Edited By: Adam Hubert______________________  *
*  Edited On: 06/27/2007_______________________  *
*  - - - - - - - - - - - - - - - - - - - - - - - *
*  Functions List:                               *
*   + igniter                                    *
*   + homeTip                                    *
*************************************************/


var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
var w3c = (document.getElementById) ? 1:0;
var ns4 = (document.layers) ? 1:0;
var ie4 = (document.all) ? 1:0;

/*********************
*  Igniter Function  *
*********************/
	igniter = function() {
		// If the homeTip ID exists on the page, run the homeTip function
			if (document.getElementById("homeTip")) {
				homeTip();		
			}
	}
/********************/	

/*********************
*  homeTip Function  *
*********************/
	homeTip = function() {
		hT = document.getElementById("homeTip");
		hA = document.getElementById("h1");
		
		hT.style.display = "none"; // Initial setting homeTip to disappear
		hA.title = ''; // Clears the HTML "title" attribute
		hT.innerHTML = 'home'; // Puts the word 'home' inside the homeTip span
		
		hA.onmouseover = function() {
			hT.style.display = "block"; // Appears!
		}
		hA.onmouseout = function() {
			hT.style.display = "none"; // Disappears!
		}
	}
/********************/


// Once page has loaded, start the Igniter function
	window.onload = igniter;