// DF1.1 :: domFunction 
// *****************************************************
// DOM scripting by brothercake -- http://www.brothercake.com/
// GNU Lesser General Public License -- http://www.gnu.org/licenses/lgpl.html
//******************************************************
function domFunction(f, a)
{ var n = 0; var t = setInterval(function()
{ var c = true; n++; if(typeof document.getElementsByTagName != 'undefined' && (document.getElementsByTagName('body')[0] != null || document.body != null))
{ c = false; if(typeof a == 'object')
{ for(var i in a)
{ if
( (a[i] == 'id' && document.getElementById(i) == null) || (a[i] == 'tag' && document.getElementsByTagName(i).length < 1)
)
{ c = true; break;}
}
}
if(!c) { f(); clearInterval(t);}
}
if(n >= 60)
{ clearInterval(t);}
}, 250);};


var ElementReady;

var foobar = new domFunction(function()
{	

// Script to make sure the function "getElementById()" will work on ALL browsers
// Copied from: http://webbugtrack.blogspot.com/2007/08/bug-152-getelementbyid-returns.html
if(ElementReady != true){ var isOpera, isIE = false; if(typeof(window.opera) != 'undefined'){isOpera = true;}
if(!isOpera && navigator.userAgent.indexOf('Internet Explorer')){isIE = true}; if(isOpera || isIE){ document.nativeGetElementById = document.getElementById; document.getElementById = function(id){ var elem = document.nativeGetElementById(id); if(elem){ if(elem.id == id){ return elem;} else { for(var i=1;i<document.all[id].length;i++){ if(document.all[id][i].id == id){ return document.all[id][i];}
}
}
}
return null;};}
ElementReady = true;}


// Get the Address and replace it:

	var address = document.getElementById('address');
	
	if(address){
		address.innerHTML = '<a href="mailto&#58;&#104;&#101;&#108;&#108;&#111;&#64;m&#121;d&#51;&#46;com">&#104;&#101;&#108;&#108;&#111;&#64;m&#121;d&#51;&#46;com</a>';
	}
	
	
	
	removeFrames();
	setTimeout ("removeFrames()", 3000);
	

	
	
}); // End Dom Ready

function removeFrames(){
	// Remove Frames
	if (top.location != self.location) top.location = self.location;
}