
// Link wizbang
function turnOn(currentLink) {
	currentLink.style.color = "#990000";
	currentLink.style.textDecoration = "underline";
}

// Link wizbang
function turnOff(currentLink) {
	currentLink.style.color = "#0000ff";
	currentLink.style.textDecoration = "none";
}

//open a new window 
function openWin(URL)
{
aWindow=window.open(URL,"picturewindow","toolbar=no,width=800,height=600,status=no,scrollbars=yes,resizable=yes,menubar=no");
aWindow.focus();
}

//open a new window 
function openloadWin(URL)
{
aWindow=window.open(URL,"speedywindow","toolbar=no,width=300,height=100,status=no,scrollbars=no,resizable=no,menubar=no");
aWindow.focus();
}

//back too the main window with new url
function backToOpener(url) {
	opener.location.href = url;
	opener.focus();
}

//back too the main window with new url
function closeSlide() {
	window.close();
	opener.focus();
}

function maximizeWindow() {
	var offset = (navigator.userAgent.indexOf("Mac") != -1 ||
		navigator.userAgent.indexOf("Gecko") != -1 ||
		navigator.userAgent.indexOf("Netscape") != -1) ? 0 : 4;
	window.moveTo(-offset, -offset);
	window.resizeTo(screen.availWidth + (2 * offset),
		screen.availHeight + (2 * offset));
}

// initialize ... from menus.js and above function
function openInitial() {
	maximizeWindow();
      initMenus();
}

