function init() {
	// document.getElementsByTagName('input')[0].focus();
	
	// set menu roll overs
	cssChangeBgEvent('opt-homepage', 'images/opt-homepage-over.gif', 'images/opt-homepage.gif');
	cssChangeBgEvent('opt-about', 'images/opt-about-over.gif', 'images/opt-about.gif');
	cssChangeBgEvent('opt-computers', 'images/opt-computers-over.gif', 'images/opt-computers.gif');
	cssChangeBgEvent('opt-webdesign', 'images/opt-webdesign-over.gif', 'images/opt-webdesign.gif');
	cssChangeBgEvent('opt-photography', 'images/opt-photography-over.gif', 'images/opt-photography.gif');
	cssChangeBgEvent('opt-music', 'images/opt-music-over.gif', 'images/opt-music.gif');
	cssChangeBgEvent('opt-lifestyle', 'images/opt-lifestyle-over.gif', 'images/opt-lifestyle.gif');
	cssChangeBgEvent('opt-photos', 'images/opt-photos-over.gif', 'images/opt-photos.gif');
	cssChangeBgEvent('opt-videos', 'images/opt-videos-over.gif', 'images/opt-videos.gif');
	cssChangeBgEvent('opt-archive', 'images/opt-archive-over.gif', 'images/opt-archive.gif');
}

function cssChangeBgEvent(id, onOverImg, onOutImg)
{
	var el = document.getElementById(id);
	var url = 'http://housik.cz/wp-content/themes/1st-theme/';
	
	el.onmouseover = function() {this.style.backgroundImage = 'url(' + url + onOverImg + ')'};
	el.onmouseout = function() {this.style.backgroundImage = 'url(' + url + onOutImg + ')';};
}

window.onload = init;