if(document.getElementById&&document.createTextNode) {
	// gallery image swap
	function swap(pic) {
		document.getElementById("big").src = "images/gallery/big" + pic + ".jpg";
	}
	
	// image preloader
	var myimages=new Array();
	function preloadimages() {
		for (i=0;i<preloadimages.arguments.length;i++) {
			myimages[i]=new Image();
			myimages[i].src=preloadimages.arguments[i];
		}
	}
	
	function activeInput() {
		var input = document.getElementsByTagName('input');
		var textarea = document.getElementsByTagName('textarea');
		for (n=0;n<input.length;n++) {
				input[n].onfocus = function() {this.className = 'focus';}
				input[n].onblur = function() {this.className = '';}
		}
		for (i=0;i<textarea.length;i++) {
				textarea[i].onfocus = function() {this.className = 'focus';}
				textarea[i].onblur = function() {this.className = '';}
		}
	}
	window.onload = function() {
		preloadimages("images/b_bandinfo.png","images/b_bandinfo_ie.png","images/b_history.png","images/b_history_ie.png","images/b_live.png","images/b_live_ie.png","images/b_press.png","images/b_repertoire.png","images/b_repertoire_ie.png","images/b_studio.png","images/b_studio_ie.png","images/b_technics.png","images/b_technics_ie.png","images/bg_infos.png","images/bg_infos_ie.png","images/bg_music.png","images/bg_music_ie.png");
		activeInput();
	}
}