/***********************************************************************

Author:     4rn0
URL:        http://www.4rn0.nl/
Comment:	Watch those zombie monkeys!

***********************************************************************/

/* Initialize behaviour on page or DOM load
-------------------------------------------------------------------- */
if (document.addEventListener) { document.addEventListener('DOMContentLoaded',init,null); }
/*@cc_on @*/ /*@if (@_win32) document.write("<script defer src=../init.js><"+"/script>"); /*@end @*/   
window.onload = init;

function init() {
	if (arguments.callee.done) {
		return;
	}
	arguments.callee.done = true;
	if (typeof(document.getElementById) == 'undefined') {
		document.getElementById = function(id) {
			return document.all[id];
		};
	}
	document.getElementById('s').onfocus = function() {
    clearText(this);
	};

	initSifr();
}

function initSifr() {	

	if (typeof sIFR == 'function') {
		sIFR.replaceElement(named({sSelector:"div#mainContent div.post h2.title, div#youtube h2", sFlashSrc:"http://www.chrissweet.nl/wp-content/themes/sweet/swf/radagund.swf", sColor:"#000", sFlashVars:"offsetLeft=10", sWmode:"transparent"}));
	}
}

function clearText(thefield) {
	if (thefield.defaultValue==thefield.value)
		thefield.value = ""
} 