/***********************************************************************

Author:     4rn0
Company:    Tiekstramedia
URL:        http://www.tiekstramedia.nl
			http://www.4rn0.nl

***********************************************************************/



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

if (document.addEventListener) { document.addEventListener('DOMContentLoaded',init,null); }
/*@cc_on @*/ /*@if (@_win32) document.write("<script defer src=http://" + document.domain + "/js/denk.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];
		};
	}

	clearSearchBoxValue();	

}

function clearSearchBoxValue() {
	
	var searchBox = document.getElementById('q');

	if (searchBox) {

		searchBox.onclick = function() {
			if (this.defaultValue == this.value) {
				this.value = '';
			}			
		};
		searchBox.onblur = function() {
			if (this.value == '') {
				this.value = this.defaultValue;
			}			
		};

	}

}