// check browser

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
    if ((bName == "Netscape" && bVer >= 3) || 
        (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
    else br = "n2";
    
// force screen redraw in Navigator

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);


// index bottom title roll-overs

if (document.images){
var thecapfits2off = new Image();
thecapfits2off.src="files/images/thecapfits2off.gif";
var thecapfits2on = new Image();
thecapfits2on.src="files/images/thecapfits2on.gif";

var thecapfits4off = new Image();
thecapfits4off.src="files/images/thecapfits4off.gif";
var thecapfits4on = new Image();
thecapfits4on.src="files/images/thecapfits4on.gif";

}

// portfolio bottom title roll-overs

if (document.images){
var portfolio2off = new Image();
portfolio2off.src="images/thecapfits2off.gif";
var portfolio2on = new Image();
portfolio2on.src="images/thecapfits2on.gif";

var portfolio4off = new Image();
portfolio4off.src="images/thecapfits4off.gif";
var portfolio4on = new Image();
portfolio4on.src="images/thecapfits4on.gif";

}

function imgoff(imgName){
if (document.images){
document[imgName].src=eval(imgName+"off.src");
}
}
function imgon(imgName){
if (document.images){
document[imgName].src=eval(imgName+"on.src");
}
}

// pop up windows

function thecapfitspopup(theurl)
{
 // set the width and height
 var the_width=530;
 var the_height=350;
 // set other attributes
 var has_toolbar='no';
 var has_location='no';
 var has_directories='no';
 var has_status='no';
 var has_menubar='no';
 var has_scrollbars='no';
 var is_resizable='no';
 // attributes put together
 var the_atts='width='+the_width+',height='+the_height;
 the_atts+=',toolbar='+has_toolbar+',location='+has_location+',directories='+has_directories+',status='+has_status;
 the_atts+=',menubar='+has_menubar+',scrollbars='+has_scrollbars+',resizable='+is_resizable;
 // open window
 window.open(theurl,'',the_atts);
	if (window.focus) {newwindow.focus()}
}


