$(window).load(function() {
	
	$('a').focus(function() {
		this.blur();
	});
	
});

function popup(url, width, height, name) {
		var appendix;
		if(url.indexOf('?') > 0) {
			appendix = '&';
		} else {
			appendix = '?';
		}
		if(url.indexOf('#') > 0) {
			url = url.substring(0, url.indexOf('#')) + appendix + 'popup=true' + url.substring(url.indexOf('#'));
		} else {
			url = url + appendix + 'popup=true';
		}
        var p = window.open(url, name, 'width='+width+',height='+height+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0');
		if (p)
			p.focus();
}

function popupRS(url, name, width, height)
{
	var appendix;
		if(url.indexOf('?') > 0) {
			appendix = '&';
		} else {
			appendix = '?';
		}
		if(url.indexOf('#') > 0) {
			url = url.substring(0, url.indexOf('#')) + appendix + 'popup=true' + url.substring(url.indexOf('#'));
		} else {
			url = url + appendix + 'popup=true';
		}
	p = window.open(url, name, 'dependent=yes,width='+width+',height='+height+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');
	if (p)
	{
		p.focus();
	}
}

function gw_popup(url)
{
	var width = (screen.width<1024) ? 800 : 1024;
	var height = (screen.height<768) ? 600 : 768;
	p = window.open(url,'kunzmann_cars','width='+width+',height='+height+',location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no');
	if (p)
	{
		p.focus();
	}

}

