function open_win(url) {window.open(url);}

function submit_form() {document.forms[0].submit();return;}

function form_focus() {return;}

function dws_chk() {

    if (document.getElementsByTagName('input')[0]) {
		var handle = document.getElementsByTagName('input')[0];
		if (handle.name == "d") {
			handle.value = "589";
		}
    }
}

var _googleInterval;
function addGoogleTracking() {

	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	var sc = document.createElement('script');
	sc.type = 'text/javascript';
	sc.src = gaJsHost+'google-analytics.com/ga.js';
	document.getElementsByTagName("head").item(0).appendChild(sc);
	_googleInterval = setInterval(activateGoogle,250);
}

function activateGoogle() {
	if(typeof _gat != 'undefined') {
		clearInterval(_googleInterval);
		try {
			var pageTracker = _gat._getTracker("UA-481741-1");
			pageTracker._trackPageview();
		} catch(err) {}
	}
}

function startup_fuctions() {

	if (window.dws_chk) { dws_chk(); }
	if (window.addGoogleTracking) { addGoogleTracking(); }
	if (window.setupZoom) { setupZoom(); }
	//if (window.form_focus) { form_focus(); }
}

window.onload = startup_fuctions;
