﻿// JScript File
var OP3 = (navigator.userAgent.indexOf("Opera/3") != -1) && (navigator.userAgent.indexOf("Mozilla/3") != -1);
var NN2 = (navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mozilla/2") != -1);


function SearchPopUp() {
    if (OP3) {
        alert("Deze mogelijkheid wordt niet door Opera 3 ondersteund.");
        return false;
    }
    else {
        window.location.href = "zoek.aspx"
        //var searchWin = window.open("", "popWin", "");
        //if (NN2) {
        //    searchWin.opener = self;
        //}
        //searchWin.location.replace("http://www.nb.nl/query.asp");
    }
}


function RedirectOutput() {
    if (OP3) {
        alert("Deze mogelijkheid wordt niet door Opera 3 ondersteund.");
        return false;
    }
    else {
        var searchWin = window.open("", "popWin", "");
        if (NN2) {
            searchWin.opener = self;
        }
        // searchWin.location.replace(frmSearch.action);
        alert(searchWin);
        frmSearch.action = "http://www.nb.nl/query.asp";
        frmSearch.method = "POST";
        frmSearch.target = "popWin";
        return true;
    }
}


function ShowMap() {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="440" height="320" VIEWASTEXT>\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<param name="movie" value="flash/kaart_vaa.swf"/>\n');
	document.write('<embed src="flash/kaart_vaa.swf" quality="high" width="440" height="320" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
}

// Flash file import

function writeFlash(url, w, h, bgcolor, wmode) {
    if (url!='') {
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="flashID" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+url+'" />');
		if (wmode==true) {
			document.write('<param name="wmode" value="transparent" />');
				} else {
					document.write('');
					}
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="'+bgcolor+'" />');
		document.write('<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'"')
		if (wmode==true) {
			document.write(' wmode="transparent"');
				} else {
					document.write('');
					}
		document.write('width="'+w+'" height="'+h+'" name="flashID" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
    } else {
        document.write("Flash object not found");
    }
}
/* <script language="javascript">writeFlash('flash/name.swf', '325', '425', '#FFFFFF', true);</script> */

