<!-- hide this script from non-JavaScript enabled browsers
/// handle reload for netscape
		
if (document.layers){
        w = window.innerWidth;
        h = window.innerHeight;
}
function Restore(){
        if ((window.innerWidth != w) || (window.innerHeight != h)){
                self.location.reload()
        }
        else return;
}
if (document.layers){
        window.onresize = Restore
}	

/// pop up windows
function openart(basepage,thispage,thiswidth, thisheight)
{
		//////////if (window.f) f.close();
window.location = basepage;
	f = window.open(thispage,'WS','width='+thiswidth+',height='+thisheight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');

 if (window.screen && document.layers) {
         f.outerWidth = thiswidth;
         f.outerHeight = thisheight;
     }
     f.focus();
if (f.opener == null) f.opener = self;  
}
		
function openme(thispage,thiswidth, thisheight){
	f = window.open(thispage,'WS','width='+thiswidth+',height='+thisheight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
f.focus();
if (f.opener == null) f.opener = self;  
	}
	
function openimage(thisimage,thiswidth, thisheight){
	f = window.open('thisimage','WS','width='+thiswidth+',height='+thisheight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
f.focus();
if (f.opener == null) f.opener = self;  
	}

/// pop up windows non-scrolling
function openart2(basepage,thispage,thiswidth, thisheight)
{
		//////////if (window.f) f.close();
window.location = basepage;
	f = window.open(thispage,'WS','width='+thiswidth+',height='+thisheight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');

 if (window.screen && document.layers) {
         f.outerWidth = thiswidth;
         f.outerHeight = thisheight;
     }
     f.focus();
if (f.opener == null) f.opener = self;  
}
		
function openme2(thispage,thiswidth, thisheight){
	f = window.open(thispage,'WS','width='+thiswidth+',height='+thisheight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
f.focus();
if (f.opener == null) f.opener = self;  
	}
	
function openimage2(thisimage,thiswidth, thisheight){
	f = window.open('thisimage','WS','width='+thiswidth+',height='+thisheight+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes');
f.focus();
if (f.opener == null) f.opener = self;  
	}
	
	
//show hide layers
function MM_showHideLayers() { //v2.0
	var i, visStr, args, theObj;
  	args = MM_showHideLayers.arguments;
  	for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    	visStr   = args[i+2];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      	theObj = eval(args[i]);
    if (theObj) theObj.visibility = visStr;
    } 
    else if (document.all != null) { //IE
         if (visStr == 'show') visStr = 'visible'; //convert vals
         if (visStr == 'hide') visStr = 'hidden';
      		theObj = eval(args[i+1]);
         if (theObj) theObj.style.visibility = visStr;
  		} }
	}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  		} }
	}

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}

// stop hiding -->
