
function handleOver(s) {
    var channel_max = 10;										
    audiochannels = new Array();
    for (a=0;a<channel_max;a++) {									
        audiochannels[a] = new Array();
        audiochannels[a]['channel'] = new Audio();						
        audiochannels[a]['finished'] = -1;							
    }
    for (a=0;a<audiochannels.length;a++) {
        thistime = new Date();
        if (audiochannels[a]['finished'] < thistime.getTime()) {			// is this channel finished?
            audiochannels[a]['finished'] = thistime.getTime() + document.getElementById(s).duration*1000;
            audiochannels[a]['channel'] = document.getElementById(s);
            audiochannels[a]['channel'].load();
            audiochannels[a]['channel'].play();
            break;
        }
    }
}

	
function showImage_inv(){
    var theImages = new Array() 
    
    theImages[0] = '/images/hha11-CMY.gif'
    theImages[1] = '/images/hha11-CY.gif'
    theImages[2] = '/images/hha11-MY.gif'
    theImages[3] = '/images/hha11-CM.gif'
    theImages[4] = '/images/hha11-Y.gif'
    theImages[5] = '/images/hha11-C.gif'
    theImages[6] = '/images/hha11-M.gif'

    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
       preBuffer[i] = new Image()
       preBuffer[i].src = theImages[i]
    }
    var whichImage = Math.round(Math.random()*(p-1));
    
    document.write('<img src="'+theImages[whichImage]+'">');
}

function showImage(){
    var theImages = new Array() 
    
    theImages[0] = '/images/hha11-CMY-b.gif'
    theImages[1] = '/images/hha11-CY-b.gif'
    theImages[2] = '/images/hha11-MY-b.gif'
    theImages[3] = '/images/hha11-CM-b.gif'
    theImages[4] = '/images/hha11-Y-b.gif'
    theImages[5] = '/images/hha11-C-b.gif'
    theImages[6] = '/images/hha11-M-b.gif'
    
    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
       preBuffer[i] = new Image()
       preBuffer[i].src = theImages[i]
    }
    var whichImage = Math.round(Math.random()*(p-1));
    
    document.write('<img src="'+theImages[whichImage]+'">');
}

function showImage_big_inv(){
    var theImages = new Array() 
    
    theImages[0] = '/images/hha11-CMY-big.gif'
    theImages[1] = '/images/hha11-CY-big.gif'
    theImages[2] = '/images/hha11-MY-big.gif'
    theImages[3] = '/images/hha11-CM-big.gif'
    theImages[4] = '/images/hha11-Y-big.gif'
    theImages[5] = '/images/hha11-C-big.gif'
    theImages[6] = '/images/hha11-M-big.gif'

    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
       preBuffer[i] = new Image()
       preBuffer[i].src = theImages[i]
    }
    var whichImage = Math.round(Math.random()*(p-1));
    
    document.write('<img src="'+theImages[whichImage]+'">');
}

function showImage_big(){
    var theImages = new Array() 
    
    theImages[0] = '/images/hha11-CMY-big-b.gif'
    theImages[1] = '/images/hha11-CY-big-b.gif'
    theImages[2] = '/images/hha11-MY-big-b.gif'
    theImages[3] = '/images/hha11-CM-big-b.gif'
    theImages[4] = '/images/hha11-Y-big-b.gif'
    theImages[5] = '/images/hha11-C-big-b.gif'
    theImages[6] = '/images/hha11-M-big-b.gif'

    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
       preBuffer[i] = new Image()
       preBuffer[i].src = theImages[i]
    }
    var whichImage = Math.round(Math.random()*(p-1));
    
    document.write('<img src="'+theImages[whichImage]+'">');
}



function openWindow(url,w,h,l,t) {
  popupWin = window.open(url, 'newWin2','resizable,scrollbars,width=' + w + ',height=' + h + ',left=' + l + ',top=' + t)
}
function openVideoWindow(url) {
  popupWin = window.open(url, 'videoWin','resizable,width=350,height=350,left=10,top=10')
}
function openVideoWindow2(url) {
  popupWin = window.open(url, 'videoWin','resizable,width=600,height=500,left=10,top=10')
}
function openVideoWindow3(url) {
  popupWin = window.open(url, 'videoWin','resizable,width=400,height=350,left=10,top=10')
}
function openAudioWindow(url) {
  popupWin = window.open(url, 'audioWin','resizable,width=350,height=100,left=10,top=10')
}
function gotofr(frnr) {
   parent.menuframe.document.installment2menub.GotoFrame(frnr);
   parent.menuframe.document.installment2menub.Play();
}
function popitup(vtitel,vtext,vfile)
{
	newwindow2=window.open('','popupWin','resizable,height=110,width=350,left=10,top=10');
	var tmp = newwindow2.document;
	tmp.write('<html><head><title>');
	tmp.write(vtitel);
	tmp.write('</title>');
	tmp.write('<link type="text/css" rel="stylesheet" href="/hhastyle.css">');
    tmp.write('</head><body><center>');
	tmp.write(vtitel);
	tmp.write('</b><br>\n');
	tmp.write(vtext + "\n");
	tmp.write('<embed src="/sounds/' + vfile + '" width="320" height="50" bgcolor=black></embed>');
	tmp.write('</body></html>');
	tmp.close();
}

function popitupext(vtitel,vtext,vfile)
{
	newwindow2=window.open('','popupWin','resizable,height=110,width=350,left=10,top=10');
	var tmp = newwindow2.document;
	tmp.write('<html><head><title>');
	tmp.write(vtitel);
	tmp.write('</title>');
	tmp.write('<link type="text/css" rel="stylesheet" href="/hhastyle.css">');
    tmp.write('</head><body><center>');
	tmp.write(vtitel);
	tmp.write('</b><br>\n');
	tmp.write(vtext + "\n");
	tmp.write('<embed src="' + vfile + '" width="320" height="50" bgcolor=black></embed>');
	tmp.write('</body></html>');
	tmp.close();
}

function popitupv(vtitel,vtext,vfile)
{
	newwindow2=window.open('','popupWin','resizable,height=370,width=350,left=10,top=10');
	var tmp = newwindow2.document;
	tmp.write('<html><head><title>');
	tmp.write(vtitel);
	tmp.write('</title>');
	tmp.write('<link type="text/css" rel="stylesheet" href="/hhastyle.css">');
    tmp.write('</head><body><center>');
	tmp.write(vtitel);
	tmp.write('</b><br>&nbsp; <br>\n');
	tmp.write(vtext + "<br>\n");
	tmp.write('<embed src="' + vfile + '" width="320" height="300" bgcolor=black></embed>');
	tmp.write('</body></html>');
	tmp.close();
}

function popitupv2(vtitel,vtext,vfile)
{
	newwindow2=window.open('','popupWin','resizable,height=370,width=420,left=10,top=10');
	var tmp = newwindow2.document;
	tmp.write('<html><head><title>');
	tmp.write(vtitel);
	tmp.write('</title>');
	tmp.write('<link type="text/css" rel="stylesheet" href="/hhastyle.css">');
    tmp.write('</head><body><center>');
	tmp.write(vtitel);
	tmp.write('</b><br>&nbsp; <br>\n');
	tmp.write(vtext + "<br>\n");
	tmp.write('<embed src="' + vfile + '" width="390" height="300" bgcolor=black></embed>');
	tmp.write('</body></html>');
	tmp.close();
}




