// prepare the form for the DOM 

function MM_openBrWindow(theURL,winName,features) {
    window.open(theURL,winName,features);
}

function popup(sURL) {
    window.name = "";
    window.open(sURL,'Transcript','toolbar=no,menubar=no,location=no, resizable=0,scrollbars=yes,height=600,width=700');


}

function popUp(sURL, width, height) {
    window.name = "";
    window.open(sURL,'Transcript','toolbar=no,menubar=no,location=no, resizable=0,scrollbars=yes,height=' + height + ',width=' + width);
}

function printWindow()
{
    browserVersion = parseInt(navigator.appVersion)
    if (browserVersion >= 4) window.print()
}

function PopUpDisc(sURL) {
	window.name = "";
	window.open(sURL,'Disclaimer','toolbar=no,menubar=no,location=no,resizable=0,scrollbars=yes,height=400,width=450');
}

/* Pop up function for the Help pages -----------------------------------------------------------------------------------------> */
function OpenHelp() {
	if(-1 !=navigator.userAgent.indexOf("MSIE")) {
        window.open('http://host2.cantoscomms.com/CantosHelp/main.php','Cantos','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBAR=0, width=470, height=500');
    } else {
        javascript:window.open('http://host2.cantoscomms.com/CantosHelp/main.php','PopUp','resizable=0,scrollbars=0,width=470,height=500');
    }
}

/* JW Player functions:
	 * 	- Use seek to jump to sections
	 *	- Stop/start player
	 */
	/*
	var player   =  null;
	var seek     =     0;
	var seekFlag = false;
	var currentTime;


	function playerReady(obj) {
		player = gid(obj.id);
		player.addModelListener('TIME', 'timeMonitor');

		initProject(project_id)
	};


	function timeMonitor(obj) {
		if((obj.position > 0) && (seekFlag)) {
			seekFlag = false;
			player.sendEvent('SEEK', seek);
		}
		currentTime = obj.position;
	};



	function seekSome(some)	{
		seek = some;

		if(currentTime > 0) {
			player.sendEvent('SEEK', seek)
		}
		else {
			seekFlag = true;
			player.sendEvent('PLAY', 'true');
		}
	};

	function gid(name) {
		return document.getElementById(name);
	};
	*/
	/* */
