// sands.js
/*
 *
 * Copyright 2004 - Strategies & Solutions LLC.
 *	All rights reserved.  Use is licensed under terms and 
 *	conditions set forth in the Strategies & Solutions LLC
 *	Customer Agreement and Standard Terms and
 *	Conditions Agreement documents.
 * 
*/


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.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_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// popup(file,options,width,height) function
//
// To display a popup window containing an HTML file with the following options...
//
// "file" absolute or relative address of the HTML file to be displayed.
// "options" variable containing the window display options comma separated. If no options
//   are specified then all will be set to yes, with options specified all unspecified
//   options are set to no. Possible options are...
//     toolbar=yes/no - display browser toolbar (yes/no).
//     location=yes/no - display browser location entry field (yes/no).
//     directories=yes/no - display browser directory buttons (yes/no).
//     status=yes/no - display browser status bar (yes/no).
//     menubar=yes/no - display browser menu (yes/no).
//     scrollbars=yes/no - display browser scrollbars if required (yes/no).
//     resizable=yes/no - allow popup window to be resized (yes/no).
// "width" width of window variable can be set to either...
//     0 or left out - popup window will appear full screen size.
//     integer value - width of popup window in pixels.
// "height" height of window variable can be set to either...
//     0 or left out - popup window will appear full screen size.
//     integer value - height of popup window in pixels.
//

//function popup(file,options,width,height) {
//  if ((width != 0 || width !=null) && (height != 0 || height !=  null)) {
//    options = options+",width="+width+",height="+height;
//  }
//  var textWindow=window.open(file,"TextWindow",options);//
//}

function popup(file) {  
  newwindow=window.open(file,'TextPopup','height=250,width=300,left=100,top=100,scrollbars=yes,resizable=yes');
 
 
}

