<!--
function stoperror(){
return true
}
window.onerror=stoperror

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  document.openwindow=window.open(theURL,'mywindow',features);
  document.openwindow.focus()
}


function openvid(page){
page="/modules/video/playvid.jsp?video="+page;
document.vidwindow=window.open(page,'videowindow','width=300,height=300,left=10,screenX=10,top=350,screenY=350,scrollbars=no,resizable=yes');
  document.vidwindow.focus();
}

function openvideo(page){
document.vidwindow=window.open(page,'videowindow','width=300,height=300,left=10,screenX=10,top=350,screenY=350,scrollbars=no,resizable=yes');
  document.vidwindow.focus();
}

function opennewpage(page){
document.vidwindow=window.open(page,'window','width=800,height=600,left=10,screenX=10,top=150,screenY=150,scrollbars=no,resizable=yes');
  document.vidwindow.focus();
}

function openact(page){
document.actwindow=window.open(page,'activitywindow','width=900,height=675,left=0,screenX=0,top=0,screenY=0,scrollbars=no,resizable=no');
  document.actwindow.focus();
}

function openemp(page){
document.vidwindow=window.open(page,'videowindow','width=800,height=600,left=10,screenX=10,top=10,screenY=10,scrollbars=yes,resizable=yes,toolbar=yes');
  document.vidwindow.focus();
}

function closewindows()
{
if (document.openwindow)
document.openwindow.close()
if (document.toolwindow)
document.toolwindow.close()
if (document.guidewindow)
document.guidewindow.close()
if (document.vidwindow)
document.vidwindow.close()
if (document.actwindow)
document.actwindow.close()
if (document.artactivity)
document.artactivity.close()
if (document.artzoomwindow)
document.artzoomwindow.close()
if (document.artworkswindow)
document.artworkswindow.close()
if (document.provwindow)
document.provwindow.close()
if (document.timelinewindow)
document.timelinewindow.close()
if (document.drawingwindow)
document.drawingwindow.close()
if (document.meetwindow)
document.meetwindow.close()
}

function MM_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

function donothing()
{
nothing=0
}

function openpage(page)
{
  document.toolwindow=window.open(page,'tooltip','width=850,height=500,left=10,screenX=10,top=10,screenY=10,scrollbars=yes,resizable=no');
  document.toolwindow.focus()
}

function openguide(linkto,type)
{
 page="/GuideLines/" + type + "#q" + linkto; document.guidewindow=window.open(page,'guidewindow','width=850,height=500,left=10,screenX=10,top=10,screenY=10,scrollbars=yes,resizable=no');
  document.guidewindow.focus();
}

function openprov(linkto)
{
 page= linkto;
document.provwindow=window.open(page,'provwindow','width=585,height=500,left=50,screenX=50,top=50,screenY=50,scrollbars=yes,resizable=no');
  document.provwindow.focus();
}

function openartworks(linkto)
{
 page= linkto;
document.artworkswindow=window.open(page,'artworkswindow','width=585,height=500,left=50,screenX=50,top=50,screenY=50,scrollbars=yes,resizable=no');
  document.artworkswindow.focus();
}

function openartzoom(linkto,imgtype)
{
 page= "/cybermuse/teachers/plans/zoom_e.jsp?mkey="+linkto+"&img_type=" + imgtype;
document.artzoomwindow=window.open(page,'artzoomwindow','width=750,height=500,left=50,screenX=50,top=50,screenY=50,scrollbars=yes,resizable=no');
  document.artzoomwindow.focus();
}

function openactivity(linkto)
{
 page= linkto;
document.artactivitywindow=window.open(page,'artzoomwindow','width=750,height=500,left=50,screenX=50,top=50,screenY=50,scrollbars=yes,resizable=no');
  document.artactivitywindow.focus();
}

function opentimeline(linkto)
{
 page= linkto;
document.timelinewindow=window.open(page,'timelinewindow','width=640,height=480,left=50,screenX=50,top=50,screenY=50,scrollbars=yes,resizable=no');
  document.timelinewindow.focus();
}

function gotopage(id)
{
//id=document.dropdownmenu.pagees.selectedIndex
//alert(document.dropdownmenu.pagees.selectedIndex)
if (id == 6){
self.location="/cybermuse/youth/index_e.jsp"
} 
else if (id == 4){
self.location="/cybermuse/showcases/index_e.jsp"
}
else if (id == 5){
self.location="/cybermuse/kids/index_e.jsp"

}
else if (id == 7){
self.location="/cybermuse/teachers/index_e.jsp"
}
else if (id == 1){
self.location="/cybermuse/about/index_e.jsp"
}
else if (id == 2){
self.location="/cybermuse/new/index_e.jsp"
}	
else if (id == 3){
self.location="/cybermuse/mycyber/index_e.jsp"
}
else if (id == 8){
self.location="/cybermuse/enthusiast/index_e.jsp"
}
else if (id == 9){
self.location="/cybermuse/links/index_e.jsp"
}
else if (id == 0){
self.location="/cybermuse/home_e.jsp"
}
else
{
alert("Page not available")
}

}

function newgotopage(id)
{

self.location=id

}

function newgotopage2(id)
{

self.location=id

}

function swapText(txthref)
{
top.location.href=txthref;
}

function swaplang()
{
fullpath=location.href
fullpath=fullpath.replace('_e.','_f.')
//alert("full path="+ fullpath);
//alert("French is not available")
top.location.href=fullpath

}

function opendrawing(linkto)
{
 page= linkto;
document.drawingwindow=window.open(page,'drawingwindow','width=400,height=267,left=260,screenX=260,top=300,screenY=300,scrollbars=no,resizable=no');
  document.drawingwindow.focus();
}

function opendrawingVertical(linkto)
{
 page= linkto;
document.drawingwindow=window.open(page,'drawingwindow','width=267,height=400,left=260,screenX=260,top=200,screenY=200,scrollbars=no,resizable=no');
  document.drawingwindow.focus();
}

function openmeetartist(linkto)
{
 page= linkto;
document.meetwindow=window.open(page,'meetwindow','width=240,height=200,left=50,screenX=50,top=50,screenY=50,scrollbars=yes,resizable=no');
  document.meetwindow.focus();
}


//set flash variable
var playflash=0;
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
  var words = navigator.plugins["Shockwave Flash"].description.split(" ");
   	 for (var i = 0; i < words.length; ++i)
     {
	  if (isNaN(parseInt(words[i])))
	  continue;
	  var MM_PluginVersion = words[i]; 
     }
	 var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
 	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	 document.write('on error resume next \n');
	 document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	 document.write('</SCR' + 'IPT\> \n');
	}
if ( MM_FlashCanPlay ) {
	playflash=1;
} else{
 playflash=0;
}
//playflash=0;//for testing
//alert(playflash)

function showlayersorflash(){
	if (playflash==0)
	{
		MM_showHideLayers('mainnav','','show','background','','show');//show layers if no flash
	}
}

function URLBetsie()
{
top.location.href='<%=htmlServer.textLink(request)%>'
}

function swaplangBetsie()
{
top.location.href='<%=htmlServer.swapLang(request)%>'
}
//-->

