function createRequestObject() {
    var ro;
    var browser = navigator.appName;
    if(browser == "Microsoft Internet Explorer"){
        ro = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        ro = new XMLHttpRequest();
    }
    return ro;
}


var http = createRequestObject();

function flashfile() {
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="945" height="725" id="blablazee" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="movie" value="blablazee.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffccff" />');
document.write('<embed src="blablazee.swf" wmode="transparent" quality="high" bgcolor="#ffccff" width="945" height="725" name="blablazee" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}



function flashfileijs() {
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="945" height="725" id="blablazee" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="movie" value="blablaijs.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffccff" />');
document.write('<embed src="blablaijs.swf" wmode="transparent" quality="high" bgcolor="#ffccff" width="945" height="725" name="blablazee" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}


function menu(t) {
Effect.Appear('m1');


document.getElementById("main-frame").innerHTML = '<IFRAME SRC=contentijs.inc.php?f= WIDTH=99% HEIGHT=93% SCROLLING=yes FRAMEBORDER=0 marginwidth=0 marginheight=0 style="overflow: hidden: border: none;" ALLOWTRANSPARENCY id=content></Iframe>';

if (t == "multimedia" || t == "polole") {
document.getElementById("main-frame").innerHTML = '';
http.open('get', 'includes/'+t+'.inc.php');
http.onreadystatechange = subreturn
http.send(null);
} else {
document.getElementById("content").src = "contentijs.inc.php?f="+t;
}
}


function subreturn() {
if(http.readyState == 4){
document.getElementById("main-frame").innerHTML = http.responseText;
}
}

function menu1(t) {
Effect.Appear('m2');

document.getElementById("main-frame1").innerHTML = '<IFRAME SRC=content1ijs.inc.php?f=leeg WIDTH=99% HEIGHT=93% SCROLLING=yes FRAMEBORDER=0 marginwidth=0 marginheight=0 style="overflow: hidden: border: none;" ALLOWTRANSPARENCY id=content1></Iframe>';

if (t == "gezang" || t == "pers") {
document.getElementById("main-frame1").innerHTML = '';
http.open('get', 'includes/'+t+'.inc.php');
http.onreadystatechange = subreturn1
http.send(null);
} else {
document.getElementById("content1").src = "content1ijs.inc.php?f="+t;
}

}

function subreturn1() {
if(http.readyState == 4){
document.getElementById("main-frame1").innerHTML = http.responseText;
}
}

function menu2(t) {

Effect.Appear('m3');
document.getElementById("content2").src = "content2ijs.inc.php?f="+t;
}

function close(t) {

if (t == '1') {
document.getElementById("main-frame").innerHTML = '<IFRAME SRC=contentijs.inc.php?f=leeg WIDTH=99% HEIGHT=93% SCROLLING=yes FRAMEBORDER=0 marginwidth=0 marginheight=0 style="overflow: hidden: border: none;" ALLOWTRANSPARENCY id=content></Iframe>';
}

if (t == '2') {
document.getElementById("main-frame1").innerHTML = '<IFRAME SRC=content1ijs.inc.php?f=leeg WIDTH=99% HEIGHT=93% SCROLLING=yes FRAMEBORDER=0 marginwidth=0 marginheight=0 style="overflow: hidden: border: none;" ALLOWTRANSPARENCY id=content1></Iframe>';
}

if (t == '3') {
document.getElementById("content2").src = "content2ijs.inc.php?f=leeg";
}

}
function pop(URL) {       
var URL = 'clip.inc.php?id='+URL;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=425,height=345,left = 363.5,top = 257');");               
} 

ver=parseInt(navigator.appVersion)
ie4=(ver>3  && navigator.appName!="Netscape")?1:0
ns4=(ver>3  && navigator.appName=="Netscape")?1:0
ns3=(ver==3 && navigator.appName=="Netscape")?1:0

function playSound(sound) {
 if (ie4) document.all['BGSOUND_ID'].src=sound;
 if ((ns4||ns3)
  && navigator.javaEnabled()
  && navigator.mimeTypes['audio/x-midi']
  && self.document.Bach.IsReady()
 )
 {
  self.document.Bach.play()
 }
}

function stopSound() {
 if (ie4) document.all['BGSOUND_ID'].src='jsilence.mid';
 if ((ns4||ns3)
  && navigator.javaEnabled()
  && navigator.mimeTypes['audio/x-midi']
 )
 {
  self.document.Bach.stop()
 }
}

