		var today = new Date();
		var d = today.getSeconds();
		d = Math.floor(d/6);
		function fixheight(){
			h = (typeof window.innerHeight != 'undefined' ? document.body.offsetHeight:window.innerHeight);
			w = (typeof window.innerWidth != 'undefined' ? document.body.offsetWidth:window.innerWidth);
			h-=252;
			document.getElementById('TB_overlay').style.height = h+444+'px';
			document.getElementById('TB_overlay').style.width = w+'px';
		}

		function toggleOverLay(subj,toaddr) {
			if (!subj) subj="";
			document.contact.subject.value=subj;
			if (!toaddr) toaddr="";
			document.contact.to_name.value=toaddr;
			

			if (document.getElementById('TB_overlay').style.display != 'block') {
				h = (typeof window.innerHeight != 'undefined' ? document.body.offsetHeight:window.innerHeight);
				w = (typeof window.innerWidth != 'undefined' ? document.body.offsetWidth:window.innerWidth);
				document.getElementById('TB_overlay').style.height = h+444+'px';
				document.getElementById('TB_overlay').style.width = w+'px';
				
				document.getElementById('TB_overlay').style.display = 'block';
				document.getElementById('TB_window').style.display = 'block';
			} else {
				document.getElementById('TB_overlay').style.display = 'none';
				document.getElementById('TB_window').style.display = 'none';
			}
		}
		function checkandsubmit(){
			document.contact.browser_info.value=navigator.userAgent;
			document.contact.screen_size.value=(parseInt(navigator.appVersion) >= 4)?(screen.width + " x " + screen.height):"unknown";
			var code = new makeArray0("AEH","DIW","OFW","GMZ","YSK","HSU","MQC","LHX","RQV","BTE");
			if (document.contact.code.value.toUpperCase()==code[d]){
				document.contact.submit();
			}else{
				alert("Error: Wrong code");
			}
		}
		function writecodeimg(){
			document.write('<img src="../files/codeimg' + d + '.png" height="25px" width="106px" border="1">');
		}

		// preload graphics for button
		var buttonImagePath = '../files/';
		var browserName = 'MZ';
		preloadButtonGraphics();