var popopt1="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no";
var popopt=popopt1+",height=650,width=800";
function wo(a,b,c){window.open(a,b,c).focus();}
function abuse(id){wo("http://www.prlog.org/report-abuse.html?id="+id,"",popopt);return false;}
function bkmk(){wo("http://www.prlog.org/share.html#u="+encodeURIComponent(window.location.href)+"&t="+encodeURIComponent(document.title),"","");return false;}
var gi,gd,gj=1,gn=20,gt=40;function sli(ii,wd1,ht1,wd2,ht2){gi=ii;gd=1;swd=wd1;sht=ht1;lwd=wd2;lht=ht2;rs();}function ssi(ii,wd1,ht1,wd2,ht2){gd=-1;swd=wd1;sht=ht1;lwd=wd2;lht=ht2;rs();}function xy(x1,x2,gj){return (x2-x1)*gj/gn+x1;}function rs(){gi.style.width=xy(swd,lwd,gj)+"px";gi.style.height=xy(sht,lht,gj)+"px";if(gd>0 && gn>gj){gj++;setTimeout('rs()',gt);}else if(0>gd && gj>0){gj--;setTimeout('rs()',gt);}}
function imx(n){
	var f;
	for(var i=0;i< 5;i++){
		f=document.getElementById('imx'+i);
		if(f)f.className=(i==n)?"imxs":"";
		f=document.getElementById('im'+i);
		if(f)f.style.display=(i==n)?"":"none";
	}
}
function tgdsp(id){var f=document.getElementById(id);f.className=f.className?"":"hdn";}
var ddmct=0; var ddmi=0; function ddmo(){ 	if(ddmct){
		window.clearTimeout(ddmct);
		ddmct=0;
	}
	ddmc();
	ddmi=$(this).find("ul").css("visibility","visible");
}
function ddmc(){ 	if(ddmi)ddmi.css("visibility","hidden");
}
function ddmt(){ 	ddmct=window.setTimeout(ddmc,200); }
var smloaded=false;
function smload(e,u,n,o){ 	if(smloaded)return;
	smloaded=true;
	var t='';
	for(var i=0;i< o.length;i++){
		switch(o[i]){
			case 'f':
				t+='<'+'td class="smf"><'+'div><'+'iframe src="http://www.facebook.com/plugins/like.php?href='+u+
				'&amp;send=false&amp;layout=button_count&amp;width=48&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21"'+
				' scrolling="no" frameborder="0" allowTransparency="true"'+
				' style="border:none;overflow:hidden;width:'+(n?76:48)+'px;height:21px"><'+'/iframe><'+'/div><'+'/td>';
				break;
			case 't':
				t+='<'+'td class="smt"><'+'div><'+'a href="http://twitter.com/share" class="twitter-share-button"'+
				' data-url="'+u+'" data-count="'+(n?'horizontal':'none')+'">Tweet<'+'/a><'+'/div><'+'/td>';
				break;
			case 'l':
				t+='<'+'td class="sml"><'+'div style="height:21px;width:'+(n?108:63)+'px">'+
				'<'+'script type="in/share" data-url="'+u+'"'+(n?' data-counter="right"':'')+'><'+'/script><'+'/div><'+'/td>';
				break;
			case 's':
				t+='<'+'td class="sms"><'+'div class="st_sharethis_button" displayText="ShareThis"><'+'/div><'+'/td>';
				break;
			case 'g':
				t+='<'+'td class="smg"><'+'div style="width:72px;overflow:hidden">'+
				'<'+'g:plusone href="'+u+'" size="medium" count="'+(n?'true':'false')+'"><'+'/g:plusone>'+'<'+'/div><'+'/td>';
				break;
		}
	}
	e=document.getElementById(e);
	e.innerHTML='<'+'table cellpadding=0 cellspacing=0 style="display:inline-block"><'+'tr>'+t+'<'+'/tr><'+'/table>';
	var e=document.createElement('script');
	e.async=true;
	e.src='http://platform.twitter.com/widgets.js';
	document.getElementsByTagName('head')[0].appendChild(e);
	var e=document.createElement('script');
	e.async=true;
	e.src='http://platform.linkedin.com/in.js';
	document.getElementsByTagName('head')[0].appendChild(e);
	var e=document.createElement('script');
	e.async=true;
	e.src='http://apis.google.com/js/plusone.js';
	document.getElementsByTagName('head')[0].appendChild(e);
	var e=document.createElement('script');
	e.async=true;
	e.src='http://w.sharethis.com/button/buttons.js';
	document.getElementsByTagName('head')[0].appendChild(e);
}
function shownews(e,p,a){
	window.location=p+e.value+a;
}

