/*************************************************
class: system
modified: 2002.12.03
project: Cunami
version: 5.0
author: Audrius Naslenas, audrius@metasite.net
All rights reserved
*************************************************/
var onload_events=new Array();
var home_url="";
var lang="";
 
function loading(){
 var m=onload_events;
 for(i=0;i<m.length;i++){eval(m[i]);}
}
function onloading(s){
	onload_events[onload_events.length]=s;
}
function pop(url,name,width,height){
	if (url=='') {return;}
	if (name=='') name='';
	if (!(width>0)) width=500;
	var winl = (screen.width-width)/2;
	
	if (!(height>0)) height=600;
	url=home_url+url;
	var a=window.open(url,name,"toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top=30,left="+winl);
	a.focus();
}
function load_editor(url){
	var width=600;
	var height=515;
	url=home_url+url;
	var weditor=window.open(url,'wineditor',"toolbar=no,scrollbars=no,resizable=no,width="+width+",height="+height);
	weditor.focus();
}
