var screen_width = screen.width;
var screen_height = screen.height;

var main_width = 700;
var alt_width = 320;
if (screen_width < 1100) { main_width = 680; alt_width = 310; }
var main_height = 500;
var alt_height = main_height;

var main_top = (screen_height - main_height - 50) / 2; 
if (screen_height < 768) { main_top = 30; }
var alt_top = main_top;

var main_left = (screen_width - main_width - alt_width - 50) / 2; 
if (screen_width < 1100) { main_left = 5; }
var alt_left = main_left + main_width + 29;
if (screen_width < 1100) { alt_left = screen_width - alt_width - 25; }

function openWindow (URL, name, width, height, left, top, scrollb) 
{ 
	fenster = window.open (URL, name, "toolbar=no,location=no,status=no,menubar=no,scrollbars=" + scrollb + ",resizable=no,width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
	fenster.focus ();
}

function openMain (URL)
{
	openWindow (URL, "wmain", main_width, main_height, main_left, main_top, "auto");
}

function openRight (URL)
{
	openWindow (URL, "wright", alt_width, alt_height, alt_left, alt_top, "yes");
}

function launch ()
{
	openMain ("radio/radio.html");
}
