// JS UTILITIES


document.write("	<meta http-equiv='Page-Exit' content='blendTrans(Duration=.5)'> ");
document.write("	<meta http-equiv='imagetoolbar' content='no'> ");

//---------------------------------------------------------------------------------------

// Popup Dialog Launcher	

function launcher(which,name,width,height) {
   if (navigator.appName == "Netscape") height = height + 40;   
	var imgEd = window.open(which,name,'width='+width+',height='+height+',location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0');
   imgEd.opener = window;   
	imgEd.focus();}
	
//---------------------------------------------------------------------------------------
	
// Image Rollover Script
		
    function imgOn(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "on.src");       
            }
    }
    function imgOff(imgName) {
            if (document.images) {
                document[imgName].src = eval(imgName + "off.src");        
            }
    }


//---------------------------------------------------------------------------------------	 
	 
// rollover images...

//   NOTE: the image paths below should really be written in dynamically based on the STYLE!	
        if (document.images) {            
         img1on = new Image();   img1on.src = "styles/basic/niche_logo_on.gif"; 
			img1off = new Image();  img1off.src = "styles/basic/niche_logo.gif";
        }
		  	 
	 
	 
// Window Launcher

var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes";
win=window.open(mypage,myname,settings);
win.focus();}

//---------------------------------------------------------------------------------------

// Combo box - launches nav page in SAME window
    
     function quickJump(quickjump){
     var URL = document.quickjump.site.options[document.quickjump.site.selectedIndex].value;
     window.location.href = URL;
     }
   
	 
// Combo box - launches nav page in POPUP window
    
     function formHandler(form) {
     var windowprops = "height=600,width=740,location=yes,"
     + "scrollbars=yes,menubars=1,toolbars=1,resizable=yes";
     
     var URL = form.site.options[form.site.selectedIndex].value;
     popup = window.open(URL,"MenuPopup",windowprops);
     }

//---------------------------------------------------------------------------------------
	  
// Rollover for Form Buttons with CSS Styles
	
  function highlightButton(s)
  		{
    if ("INPUT"==event.srcElement.tagName)
      event.srcElement.className=s
  		}		 

//---------------------------------------------------------------------------------------
		

// Image Transparency Rollover
// Image Negative Rollover

if ((navigator.appName.indexOf('Microsoft')+1)) {
	document.write('<style type="text/css"> .dashed {border: 2px dotted; margin: 11;} .opacity1 {filter:alpha(opacity=50)} .opacity2 {filter:alpha(opacity=100)} .xray {FILTER: progid:DXImageTransform.Microsoft.BasicImage(XRay=1);} .negative {FILTER: progid:DXImageTransform.Microsoft.BasicImage( Invert=1);} .motion {FILTER: progid:DXImageTransform.Microsoft.MotionBlur(direction=270,strength=20);} .pixelate {FILTER: progid:DXImageTransform.Microsoft.Pixelate( maxsquare=3);} .wave {FILTER: progid:DXImageTransform.Microsoft.Wave(freq=3,LightStrength=00,Phase=100,Strength=5);} .gray {FILTER: progid:DXImageTransform.Microsoft.BasicImage(Grayscale=1); } </style>'); }

if ((navigator.appName.indexOf('Netscape')+1)) {
	document.write('<style type="text/css"> .opacity1 {-moz-opacity:0.5} .opacity2 {-moz-opacity:1} </style>'); }

else {
	document.write(''); }




