currentPage = "";

if (document.images) {
_on = new Image()
_on.src ="/web/images/l_arrow.gif";
_off = new Image()
_off.src ="/web/images/w_square.gif";
statusIn = new Image()
statusIn.src ="/web/images/lr_arrow.gif";
leave_frame = new Image();
leave_frame.src ="/web/images/rr_arrow.gif";
logo_on = new Image();
logo_on.src ="/images/webLogo_small_on.gif";
logo_off = new Image();
logo_off.src ="/images/webLogo_small.gif";
}


var browserName = navigator.appName
var browserVer = parseInt(navigator.appVersion) 
// var version = ((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4))  ? true : false;
var currentLink = ""

function exitFrame() { document.forms[0].stillHere.value = true }
	

//handle browser resizing problem for navigator 4
if(!window.orig_width) {
  window.onresize = reset_layers;
  window.orig_width = window.innerWidth;
  window.orig_height = window.innerHeight;
}

function reset_layers() {
    if (window.innerWidth != orig_width || window.innerHeight != orig_height) {
      // location.reload();
   //    self.location = this.location +   current page
    }
}


function changeGif(imgID,imgStatus,winMesg) {
		window.status= "          " + winMesg
		if ((document.images) && (currentPage != imgID)) {
		document.images[imgID].src = eval(imgStatus + ".src")
				}
			}

function leaveFrame(imgID,imgStatus) {
		if ((document.images) && (currentLink != imgID)) {
		document.images['goBack'].src = leave_frame.src
				}
			}

function changeStatus(linkClicked) {	
  currentPage  = linkClicked;
	if (document.images){
		document.images[linkClicked].src =  statusIn.src;
	  }
}


function changeBack(linkClicked) {
		if (version == true){
	document.images[linkClicked].src = _off.src
	}
}


function downloadResume(type){
var docFormat = type.format.options[type.format.selectedIndex].value;
	if (type.format.options[type.format.selectedIndex].index == 0) 
	 alert("Please choose the preferred\nformat for this download");
		else
	top.location =  ( "pdf/gilden_resume." + docFormat);
}
