var page_class = new Class({
	Implements: [Options],
	/* standart egenskap */
	options: {
		under_menu						: null
	},

	sub_menu_hide_delay					: 0,
	sub_menu_page_id                    : 0,

	visible_box_id						: '',
	flash_obj							: null,

	page_laoded	: false,
	dom_ready	: false,

	/* -- constructor -- */
	initialize		: function($options){
		this.setOptions($options);
		window.addEvent('load', this.page_loaded.bind(this));
		window.addEvent('domready', this.dom_ready.bind(this));
		window.addEvent('allLoaded', this.allLoaded.bind(this));
	},
	dom_ready: function(){
		this.dom_ready = true;
		if (this.page_laoded == true && this.dom_ready == true) window.fireEvent('allLoaded');
	},
	page_loaded: function(){
		this.page_laoded = true;
		if (this.page_laoded == true && this.dom_ready == true) window.fireEvent('allLoaded');
	},
	allLoaded		: function(){

	},
	show_squeeze_url: function($url, $size, $type){
		SqueezeBox.fromParams({
			handler			: $type,
			url				: $url,
			iframePreload 	: false,
			size				:{
				x	:$size.x,
				y	:$size.y
			},
			divOptions		:{
			  styles	:{
				  overflow	:'hidden'
			  }
			},
			onClose			:function(){
			}
		});
	},
	squeeze_search: function($frm, $size, $type){
		var url = EDIT_CORE.JSSiteRoot+'site/main/search_squeeze.php?page_id='+$frm.page_id.value+'&searchParent='+$frm.searchParent.value+'&pos='+$frm.pos.value+'&limit='+$frm.limit.value+'&searchString='+$frm.searchString.value+'&w='+$size.x+'&h='+$size.y;
		//alert(url);
		SqueezeBox.fromParams({
			handler			: 'ajax',
			url				: url,
			iframePreload 	: true,
			size				:{
				x	:$size.x,
				y	:$size.y
			},
			divOptions		:{
			  styles	:{
				  overflow	:'hidden'
			  }
			},
			onClose			:function(){

			}
		});
	}
});





var page_handler = new page_class();

