/////////////////////////////////////////
var x;
var y;
var imageURL;
var msgWindow;
var msgWindow1;
var img;
var img1;
var imagewidth = 600;
var imageheight = 600;
var msg;
var msg1;
/////////////////////////////////////////
function opennewPopImg1(img)
{
	closePopImg1();
	msg1 = img1;
	window.status = msg1;
	msgWindow1= window.open(img,"newwindow","toolbar=no,scrollbars=yes,resizable=yes,top=150,left=25,width="+imagewidth +",height="+imageheight);
}
/////////////////////////////////////////
function closePopImg1()
{
	if(msgWindow1 != null) if(!msgWindow1.closed) msgWindow1.close();
}
/////////////////////////////////////////
function opennewPopImg(img,x,y)
{
	closePopImg();
	imageURL = img;
	msgWindow = window.open(imageURL ,"newwindow","toolbar=no,scrollbars=no,resizable=no,width="+(parseInt(x)+20)+",height="+(parseInt(y)+20));
}
/////////////////////////////////////////
function closePopImg()
{
	if(msgWindow != null) if(!msgWindow.closed) msgWindow.close();
}
/////////////////////////////////////////
function delaydropdownmenu()
{
var t=setTimeout(ddMenu('1',1), 2000);
}
/////////////////////////////////////////
function mousepress(id, state)
{
if (state=='over')document.getElementById(id).style.backgroundColor ="#FF6600";
if (state=='out')document.getElementById(id).style.backgroundColor ="#808080";

switch(id)
{
//SITE MAP
case "sitemap":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008sitemap.htm");
break;
//SPONSORS PAGE
case "sponsorspage":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008sponsorspage.htm");
break;
//LATEST NEWS
case "latestnews":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008latestdevelopments.htm");
break;
//CONTACT US
case "contactus":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008contactus.htm");
break;
//ACKNOWLEDGEMENTS
case "acknowledgements":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008acknowledgements.htm");
break;
//INTRODUCTION
case "introduction":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008introduction.htm");
break;
//PROJECT OUTLINE
case "projectoutline":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008projectoutline.htm");
break;
//BRULL HISTORY
case "brullhistory":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008history.htm");
break;
//CHRONOLOGY
case "chronology":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008chronology.htm");
break;
//FAMILY TREE
case "familytree":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008familytree.htm");
break;
//HUMORESKE
case "humoreske":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008humoreske.htm");
break;
//PHOTOGRAPH GALLERY
case "photographgallery":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008photographgallery.htm");
break;
//CONCERT PROGRAMMES GALLERY
case "concertprogrammesgallery":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008concertprogrammesgallery.htm");
break;
//THEMATIC CATALOGUE
case "thematiccatalogue":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008thematiccatalogue.htm");
break;
//KNOWN RECORDINGS
case "knownrecordings":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008knownrecordings.htm");
break;
//MUSIC WORKS DETAILS
case "musicworksdetails":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008musicworksdetails.htm");
break;
//RECORDED MUSIC SAMPLES
case "recordedmusicsamples":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008recordedmusicsamples.htm");
break;
//SHEET MUSIC SAMPLES
case "sheetmusicsamples":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008sheetmusicsamples.htm");
break;
//PROJECT BUYING BRULL MUSIC
case "buyingbrullmusic":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeDecember2009onlineshop.htm");
//if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008buyingbrullmusicetc.htm");
break;
//PROJECT ONLINE SHOP COUNTER
case "onlineshop":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeDecember2009onlineshop.htm");
break;
//PROJECT ONLINE SHOP PROGRAMMES SECTION
case "programmessection":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=underdevelopment.htm");
//if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008onlineshopprogrammes.htm");
break;
//PROJECT ONLINE SHOP PHOTOGRAPHS SECTION
case "photographsection":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=underdevelopment.htm");
//if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008onlineshopphotographs.htm");
break;
//PROJECT ONLINE SHOP RECORDED MUSIC SECTION
case "recordedmusicsection":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=underdevelopment.htm");
//if (state=='click')window.location.replace("cgi-bin/pages.cgi?IDUpgradeSeptember2008onlineshoprecordedmusic.htm");
break;
//PROJECT ONLINE SHOP SHEET MUSIC SECTION
case "sheetmusicsection":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=underdevelopment.htm");
//if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008onlineshopsheetmusic.htm");
break;
//LATESTCDS
case "latestCDs":
if (state=='click')window.location.replace("cgi-bin/pages.cgi?ID=UpgradeSeptember2008latestCDs.htm");
break;
default: break;			
}
}

function playitem(id)
{
switch(id)
{
//SITE MAP
case "Button1":
window.location.replace("soundsamples/Berceuse.m3u");
break;
case "Button2":
window.location.replace("soundsamples/SpanischerTanz.m3u");
break;
case "Button3":
window.location.replace("soundsamples/Walzer.m3u");
break;

}
}