	  

sfHover = function() {
	
	var sfEls = document.getElementById("HeaderMenu").getElementsByTagName("LI");
	
	for (var i=0; i<sfEls.length; i++) {
		
		
		sfEls[i].onmouseover=function() {
	
			this.className+=" sfhover";
			
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]


/* Reference Article:
Dustin Diaz:
http://www.dustindiaz.com/top-ten-javascript/
*/

/* addEvent: simplified event attachment */
function addEvent( obj, type, fn ) {
	if (obj.addEventListener) {
		obj.addEventListener( type, fn, false );
		EventCache.add(obj, type, fn);
	}
	else if (obj.attachEvent) {
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
		EventCache.add(obj, type, fn);
	}
	else {
		obj["on"+type] = obj["e"+type+fn];
	}
}
	
var EventCache = function(){
	var listEvents = [];
	return {
		listEvents : listEvents,
		add : function(node, sEventName, fHandler){
			listEvents.push(arguments);
		},
		flush : function(){
			var i, item;
			for(i = listEvents.length - 1; i >= 0; i = i - 1){
				item = listEvents[i];
				if(item[0].removeEventListener){
					item[0].removeEventListener(item[1], item[2], item[3]);
				};
				if(item[1].substring(0, 2) != "on"){
					item[1] = "on" + item[1];
				};
				if(item[0].detachEvent){
					item[0].detachEvent(item[1], item[2]);
				};
				item[0][item[1]] = null;
			};
		}
	};
}();
addEvent(window,'unload',EventCache.flush);

/* window 'load' attachment */
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	}
	else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

/* grab Elements from the DOM by className */
function getElementsByClass(searchClass,node,tag) {
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	for (i = 0, j = 0; i < elsLen; i++) {
		if ( pattern.test(els[i].className) ) {
			classElements[j] = els[i];
			j++;
		}
	}
	return classElements;
}

/* toggle an element's display */
function toggle(obj) {
	
	var el = document.getElementById(obj);
	
	if ( el.style.display != 'none' && el.style.display != '' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = 'block';
		
	}
}


/* Array prototype, matches value in array: returns bool */
Array.prototype.inArray = function (value) {
	var i;
	for (i=0; i < this.length; i++) {
		if (this[i] === value) {
			return true;
		}
	}
	return false;
};


/* quick getElement reference */
function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string')
			element = document.getElementById(element);
		if (arguments.length == 1)
			return element;
		elements.push(element);
	}
	return elements;
}


//Do the rollovers in the Box onload event 
addLoadEvent( function(){
		//Check that the Boxes are there   
	if (!getElementsByClass("BoxContent")) return false;		
	//loop thu the links inside BoxContent
	var RollOverBoxLinks = getElementsByClass("BoxContent")
	for (var i = 0; i < RollOverBoxLinks.length; i++) {
		var BoxLinksrollover = RollOverBoxLinks[i];
			var Links  = BoxLinksrollover.getElementsByTagName("a")
			for (var lnkRoll = 0; lnkRoll < Links.length; lnkRoll++) {
				var LinksRoll = Links[lnkRoll]
					LinksRoll.onmouseover= function(){
						this.getElementsByTagName("img")[0].style.display = "block";
					}
					LinksRoll.onmouseout= function(){
						if(this.getElementsByTagName("img")[0].className != "DefaultImgOn"){
						this.getElementsByTagName("img")[0].style.display = "none"
						}
						
					}
			}//End for 
		
		}//End for 				   
 });//End Rollover For Boxes on home page



addLoadEvent( function(){
		//Menu Rollovers  
	if (!$("LnkClassicRT") || !$("LnkSuperLT") || !$("LnkSuperSeal") || !$("ClassicRT")) return false;		
	
	var  LnkClassicRT = $("LnkClassicRT");
	var  LnkSuperLT = $("LnkSuperLT");
	var  LnkSuperSeal = $("LnkSuperSeal");	
	var  LnkDFTClassic = $("LnkDFTClassic");
	var  LnkDFTIvan = $("LnkDFTIvan");
	var  LnkDFTPSeries = $("LnkDFTPSeries");
	var  LnkDFTp101 = $("LnkDFTp101");
	var  LnkDFTssl = $("LnkDFTssl");
	var  LnkDFTCB = $("LnkDFTCB");
	var  LnkDFTComposit = $("LnkDFTComposit");
	var  LnkDFTgp = $("LnkDFTgp");
	var  LnkDFTgpl = $("LnkDFTgpl");
	var  LnkDFTfreedom = $("LnkDFTfreedom");
	var  LnkDFTSentry = $("LnkDFTSentry");
	
	
	
	
	var  ClassicRT = $("ClassicRT");
	var  SuperLT = $("SuperLT");
	var  SuperSeal = $("SuperSeal");
	var  DFTClassic = $("DFTClassic");
	var  DFTIvan = $("DFTIvan");
	var  DFTPSeries = $("DFTPSeries");
	var  DFTp101 = $("DFTp101");
	var  DFTssl = $("DFTssl");		
	var  DFTComposit = $("DFTComposit");
	var  DFTgp = $("DFTgp");
	var  DFTgpl = $("DFTgpl");
	var  DFTfreedom = $("DFTfreedom");
	var  DFTSentry = $("DFTSentry");		
			
				/*ClassicRT*/
	
				LnkClassicRT.onmouseover= function(){
					ClassicRT.style.display= "block"
				}
				LnkClassicRT.onmouseout= function(){
					ClassicRT.style.display= "none"
				}
								
				ClassicRT.onmouseover= function(){
					ClassicRT.style.display= "block"
				}
				ClassicRT.onmouseout= function(){
					ClassicRT.style.display= "none"
				}
				
				
				/*SuperLT*/
				
				LnkSuperLT.onmouseover= function(){
					SuperLT.style.display= "block"
				}
				LnkSuperLT.onmouseout= function(){
					SuperLT.style.display= "none"
				}
				SuperLT.onmouseover= function(){
					SuperLT.style.display= "block"
				}
				
				SuperLT.onmouseout= function(){
					SuperLT.style.display= "none"
				}
					
				/*SuperSeal*/
				
				LnkSuperSeal.onmouseover= function(){
					SuperSeal.style.display= "block"
				}
				LnkSuperSeal.onmouseout= function(){
					SuperSeal.style.display= "none"
				}
					
				SuperSeal.onmouseover= function(){
					SuperSeal.style.display= "block"
				}
				
				SuperSeal.onmouseout= function(){
					SuperSeal.style.display= "none"
				}
				
				/*DFT Classic*/
				
				LnkDFTClassic.onmouseover= function(){
					DFTClassic.style.display= "block"
				}
				LnkDFTClassic.onmouseout= function(){
					DFTClassic.style.display= "none"
				}
					
				DFTClassic.onmouseover= function(){
					DFTClassic.style.display= "block"
				}
				
				DFTClassic.onmouseout= function(){
					DFTClassic.style.display= "none"
				}
				
				
				/*DFT I-van*/
				
				
				LnkDFTIvan.onmouseover= function(){
					DFTIvan.style.display= "block"
				}
				LnkDFTIvan.onmouseout= function(){
					DFTIvan.style.display= "none"
				}
					
				DFTIvan.onmouseover= function(){
					DFTIvan.style.display= "block"
				}
				
				DFTIvan.onmouseout= function(){
					DFTIvan.style.display= "none"
				}
				
				
				/*DFT PSeries*/
				
				
				LnkDFTPSeries.onmouseover= function(){
					DFTPSeries.style.display= "block"
				}
				LnkDFTPSeries.onmouseout= function(){
					DFTPSeries.style.display= "none"
				}
					
				DFTPSeries.onmouseover= function(){
					DFTPSeries.style.display= "block"
				}
				
				DFTPSeries.onmouseout= function(){
					DFTPSeries.style.display= "none"
				}
				
				
				/* DFT p101*/
				
				LnkDFTp101.onmouseover= function(){
					DFTp101.style.display= "block"
				}
				LnkDFTp101.onmouseout= function(){
					DFTp101.style.display= "none"
				}
					
				DFTp101.onmouseover= function(){
					DFTp101.style.display= "block"
				}
				
				DFTp101.onmouseout= function(){
					DFTp101.style.display= "none"
				}
				/*  DFT COLOBORATION*/
				
				
				LnkDFTCB.onmouseover= function(){
					DFTCBOR.style.display= "block"
				}
				LnkDFTCB.onmouseout= function(){
					DFTCBOR.style.display= "none"
				}
					
				DFTCBOR.onmouseover= function(){
					DFTCBOR.style.display= "block"
				}
				
				DFTCBOR.onmouseout= function(){
					DFTCBOR.style.display= "none"
				}
				
				/*  DFT ssl*/
				
				
				LnkDFTssl.onmouseover= function(){
					DFTssl.style.display= "block"
				}
				LnkDFTssl.onmouseout= function(){
					DFTssl.style.display= "none"
				}
					
				DFTssl.onmouseover= function(){
					DFTssl.style.display= "block"
				}
				
				DFTssl.onmouseout= function(){
					DFTssl.style.display= "none"
				}
				
				/*  DFT Composit*/
				
				
				LnkDFTComposit.onmouseover= function(){
					DFTComposit.style.display= "block"
				}
				LnkDFTComposit.onmouseout= function(){
					DFTComposit.style.display= "none"
				}
					
				DFTComposit.onmouseover= function(){
					DFTComposit.style.display= "block"
				}
				
				DFTComposit.onmouseout= function(){
					DFTComposit.style.display= "none"
				}

				/*  DFT gp*/
				
				
				LnkDFTgp.onmouseover= function(){
					DFTgp.style.display= "block"
				}
				LnkDFTgp.onmouseout= function(){
					DFTgp.style.display= "none"
				}
					
				DFTgp.onmouseover= function(){
					DFTgp.style.display= "block"
				}
				
				DFTgp.onmouseout= function(){
					DFTgp.style.display= "none"
				}
				
				/*  DFT gpl*/
				
				
				LnkDFTgpl.onmouseover= function(){
					DFTgpl.style.display= "block"
				}
				LnkDFTgpl.onmouseout= function(){
					DFTgpl.style.display= "none"
				}
					
				DFTgpl.onmouseover= function(){
					DFTgpl.style.display= "block"
				}
				
				DFTgpl.onmouseout= function(){
					DFTgpl.style.display= "none"
				}				
				
				/*  DFT freedom*/
				
				
				LnkDFTfreedom.onmouseover= function(){
					DFTfreedom.style.display= "block"
				}
				LnkDFTfreedom.onmouseout= function(){
					DFTfreedom.style.display= "none"
				}
					
				DFTfreedom.onmouseover= function(){
					DFTfreedom.style.display= "block"
				}
				
				DFTfreedom.onmouseout= function(){
					DFTfreedom.style.display= "none"
				}
				
				/*  DFTSentry*/
				
				
				LnkDFTSentry.onmouseover= function(){
					DFTSentry.style.display= "block"
				}
				LnkDFTSentry.onmouseout= function(){
					DFTSentry.style.display= "none"
				}
					
				DFTSentry.onmouseover= function(){
					DFTSentry.style.display= "block"
				}
				
				DFTSentry.onmouseout= function(){
					DFTSentry.style.display= "none"
				}
 });






















