function wo(pth,w,h)
{
	var huhly, scrollbar=0;
	
	if(screen.width && w>=screen.width )	{ w = screen.width-150; scrollbar=1; }
        if(screen.height && h>=screen.height )	{ h = screen.height-150; scrollbar=1; }
	
	huhly=window.open('','','toolbar=0,scrollbars='+scrollbar+',location=0,status=0,menubar=0,width=' + w + ',height=' + h );
	huhly.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd\">");
	huhly.document.write("<html>");
	huhly.document.write("<head>");
	huhly.document.write("<title>Full Picture</title>");
	huhly.document.write("<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>");
	huhly.document.write("<style type='text/css'>body { margin: 0; padding: 0; text-align: center; background: #000;}");
//	huhly.document.write("   a#close	{ display: block; margin: auto; width: " + w + "px; height: " + h + "px; text-indent: -9999px; text-decoration: none; }");
	huhly.document.write("   a img	{ border: none; }");
	huhly.document.write("  </style>");
	huhly.document.write("</head>");
	huhly.document.write("<body onload='self.focus()'><div><a href='' onclick='window.close();'><img src='" + pth + "' alt='Close window'/></a></div></body>");
	huhly.document.write("</html>");
	huhly.document.close();
	huhly.focus();
}

function link(name){
	document.location = name;
}

function imgcode(name, part, src) {
	var cowrajt, cl;
	cowrajt="<i" + "mg sr" + "c='" + src + "' name='" + name + part + "' alt='" + name + part + "'/>";
	document.write(cowrajt);
}
                                                                                                                                                                                   
function im(name){                                                                                                                                                                 
	document.write("<i" + "m" + "g s" + "r" + "c ='" + name + "' class='nob'/>");
}

function comment(cat,dt,abs){
 var link;
 link='scripts/comment.php?cat='+cat+'&date='+dt;
 if( abs && abs=="abs" ){
   link='/'+link;
  }else{
   link='./'+link;
 }
 window.open(link,'comment','toolbars=0,scrollbars=0,location=0,status=0,menubar=0,width=700,height=500');
}


function swapSrc(id,src){
 document.getElementById(id).src=src;
}

var affiliate=false;
