/* obfuscation */
function hideInput(nom,usr,dom,ext){
 if(!usr||usr==null||usr=="")usr="info";
 if(!dom||dom==null||dom=="")dom="kramerdaniels";
 if(!ext||ext==null||ext=="")ext="com";
 document.write("<input type='hidden' name='"+nom+"' value='"+usr+"@"+dom+"."+ext+"'>");
}
function hideMail(usr,dom,ext){
 if(!usr||usr==null||usr=="")usr="info";
 if(!dom||dom==null||dom=="")dom="kramerdaniels";
 if(!ext||ext==null||ext=="")ext="com";
 document.write("<a href='mailto:"+usr+"@"+dom+"."+ext+"'>"+usr+"@"+dom+"."+ext+"</a>");
}
/* a/v club! */
var Audio=new Array(), Video=new Array();
function playAudio(clip){
 var s="/audio/"+Audio[clip];
 if (window.nyc) {
  nyc.location=s;
   } else {
  var nyc=window.open(s,'nyc','width=250,height=250,scrollbars=no,location=no,menus=no,status=no');
 }
 nyc.focus();
}
function playVideo(clip){
 var thediv=document.getElementById("displayBox");
 if(thediv.style.display=="none"){
  thediv.style.display="";
  thediv.innerHTML="<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%'><object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' codebase='http://www.apple.com/qtactivex/qtplugin.cab' width='480' height='373'><param name='src' value='/video/"+Video[clip]+"' /><param name='bgcolor' value='#000000' /><embed src='/video/"+Video[clip]+"' autoplay='true' pluginspage='http://www.apple.com/quicktime/download/' height='373' width='640' bgcolor='#000000'></embed></object><p><a href='#' onclick='return playVideo(\"\");'>Close video</a></p></td></tr></table>";
 } else {
  thediv.style.display="none";
  thediv.innerHTML="";
 }
 return false;
}
/* photospecific */
var currentPic="", currentCap="";
function showPic(i){// i = g.p.e (gallery, picture, extension)
 var h=i.split("."),g=h[0],p=h[1],e=h[2];// alert(g+"\n"+p+"\n"+e);
 document.images["photo"].src="img/galleries/g"+g+"/p"+p+"."+e;
 if (currentPic!="") {document.getElementById(currentPic).className="";}
 currentPic="g"+g+"p"+p;
 document.getElementById(currentPic).className="sel";
 currentCap = (!document.getElementById(currentPic).firstChild || !document.getElementById(currentPic).firstChild.alt) ? "" : document.getElementById(currentPic).firstChild.alt;
 document.getElementById("photoCaption").innerHTML=currentCap;
}


