if (self != top) top.location.href=self.location.href;

function popup(content) {
   if (typeof(content)=='number') {
	   var url = '/popup.php&page_id=' + content;
	   $.ajax({url: url, cache: false ,success: function(html){modal(html);}});
	} else {
		modal(content);	
}	}
function modal(html) {
	$.modal(html,{closeHTML: '<a href="#" style="color:#f00;text-decoration:none;font-weight:bolder;float:right;border:1px solid #f00;padding:3px">X</a>',containerCss: {backgroundColor:"#fff",border:"3px solid #ccc",width:350,height:200,padding:'1em 1em 3em 1em'},overlayClose:true});
}
