// === Link Manager ===
// Copyright 2001 Musicmusicmusic, Inc. All rights reserved.
// Author: Martin Andres
// Version: 2.0
// Date: Feb. 9, 2001
// ====================
// Requires:
//  debug.js

if (top.debug) top.debug("oth> Java Include (library1.js) Start");

//  url = address
// type = 0-in player  1-in opener window 2-in new window
function Link(url,type) {
	if (type==0) window.location = url;
	if (type==2) newWindow = window.open(url,"");
	if (type==1) {
		if (!window.opener && parent.opener) window.opener = parent.opener;
		if (window.opener && !window.opener.closed) {
			window.opener.location = url;
		} else {
			newWindow = window.open(url,"linkback");
			window.opener = newWindow;
		}

		var ie = navigator.appVersion.indexOf('MSIE');
		if (ie) var ver = parseFloat(navigator.appVersion.substring(ie+4));

		if (ie>0 && ver<5) { // MSIE 4 bug work around
		} else {
			window.opener.focus();
		}
	}
}

if (top.debug) top.debug("oth> Java Include (library1.js) End");

