// No conflict jQUery (to avoid interference with silverstripe prototype)
$j = jQuery.noConflict();
$j(document).ready(function(){
	if( $j("body").attr("id") == "page")
	{
		url = self.location.href+'';
		url = url.split('/');
		urlsegment = url[ url.length-1 ];
		urlsegment = urlsegment.replace('/','');
		self.location.href='/#'+urlsegment;
	}
});

function pop(url,title,w,h) {
	javascript:window.open(url,title,'width='+w+',height='+h+',status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=0');
}