// pop-up generator

var win;
var file;
var x=0;

function showImage(img,w,h) {
  if(win)
  win.close();
  
  if(file && file==img)
  return;
  
  file=img;
  tmp='<html>';
  tmp+='<head><title>Waterform Portfolio</title></head>';
  tmp+='<style>@import url("inc/global.css");</style>';
  tmp+='<body><img src="' + img + '" alt="" width="' + w + '" height="' + h + '" />';
  tmp+='</body></html>';

  win=window.open('','image' + ++x,'width=' + w + ',height=' + h);
  win.document.write(tmp);
  win.document.close();
  win.focus();
  file='';
  return;
}

//color: #9EB96A; text-decoration: none; font-size: 24px;
// nav enhancer


function bld(id) {	
  var msz = 24;
    document.getElementById(id).style.fontSize = msz + "px";
    document.getElementById(id).style.color = "#9EB955";
	document.getElementById(id).style.textDecoration = "none";
}



function bld_f(ido) {	
  var msz = 18;
    document.getElementById(ido).style.fontSize = msz + "px";
    document.getElementById(ido).style.color = "#9EB955";
	document.getElementById(ido).style.textDecoration = "none";  
}


function bld_slp(ids) {	

  var msz = 22;

  if (document.getElementById) {	
    document.getElementById(ids).style.fontSize = msz + "px";
	document.getElementById(ids).style.color = "#748170";
	document.getElementById(ids).style.textDecoration = "none";	
  } else if (document.all) {	
    document.getElementById(ido).style.fontSize = msz + "px";
    document.all[ids].style.color = "#748170";
	document.all[ids].style.textDecoration = "none";
  }    
}


