function $(v) { 
	return(document.getElementById(v)); 
}
function $S(v) { 
	return($(v).style); 
}
function agent(v) { 
	return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); 
}
function isset(v) { 
	return((typeof(v)=='undefined' || v.length==0)?false:true); 
}
function XYwin(v) { 
	var z=agent('msie')?Array(document.body.clientHeight,document.body.clientWidth):Array(window.innerHeight,window.innerWidth); return(isset(v)?z[v]:z); 
}
var name = name;
function sexyTOG() { document.onclick=function(){ $S('sexyBG').display='none'; $S('sexyBOX').display='none'; $S('sexyBOX_title').display='none'; location.href=name; document.onclick=function(){}; }; }
function sexyBOX(c,v,b,desc,num,notes,id) { 
	name = id;
	setTimeout("sexyTOG()",100); 
	//$S('sexyBOX').top = (_y-300)+'px';
	$S('sexyBG').height=XYwin(0)+'px'; 
	$S('sexyBG').display='block'; 
	$('sexyBOX').innerHTML='<br /><br /><img src="'+ c +'" width="180" height="178"><img src="'+ v +'" width="180" height="178"><br /><br /><div class="sexyX"><strong>Description: </strong>'+ desc +' <br /><strong>Number Pressed: </strong> '+num+' <br /><br /> <strong>Notes:</strong> '+notes+'<br /><br /><div id="fineprint">Click anywhere outside this box to continue checking out records.</div></div>'; 
	$S('sexyBOX').left=Math.round((XYwin(1)-b)/2)+'px'; 
	$S('sexyBOX').width=b+'px'; 
	$S('sexyBOX').display='block'; 
	$S('sexyBOX_title').display='block';
	$S('sexyBOX_title').left=Math.round((XYwin(1)-373)/2)+'px'; 
	location.href='#top';


}

