
function Go(form) {
var ass = form.direct.selectedIndex;
window.location.href = form.direct.options[ass].value;}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}



if (document.images) {

	home_on = newImage("images/tinycms/navigation/home_on.gif");
	about_on = newImage("images/tinycms/navigation/about_on.gif");
	about_on = newImage("images/tinycms/navigation/thinking_on.gif");
	about_on = newImage("images/tinycms/navigation/howtoapply_on.gif");
	about_on = newImage("images/tinycms/navigation/applynow_on.gif");
	about_on = newImage("images/tinycms/navigation/news_on.gif");
	about_on = newImage("images/tinycms/navigation/participants_on.gif");
	about_on = newImage("images/tinycms/navigation/relatedlinks_on.gif");
	preloadFlag = true;
}

function showVideo(video_id,player) {
    /* player options 'quicktime', 'windows_media' */
    window.open( "/video/video_popup.php?view=" + player + "&video_id=" + video_id, 'player', "location=0,scrollbars=1,status=0,width=390,height=500" );

}

var popWin = "";

function openwin(url, strWidth, strHeight) {
if (popWin != "") {popWin.close()}
leftStr = (screen.width-strWidth)/2;
topStr = (screen.height-strHeight)/2-50;
windowProperties = "toolbar=no,menubar=no,location=no,scrollbars=yes,statusbar=no,height="+strHeight+",width="+strWidth+",left="+leftStr+",top="+topStr+"";
popWin = window.open(url,'newWin',windowProperties);
}


