// JavaScript Document

var Vcenter = new Class({
	initialize: function(){
		
			this.container=null,
			this.itm_name=null,
			this.test=false
	},
	count: function(){
		var cont_size = $(this.container).getSize();
		var itm_size = $(this.itm_name).getSize();
		var top=Math.round((cont_size.y-itm_size.y)/2);
		
		$(this.itm_name).setStyles({
			position:'relative',
			top:top
		});
// wypisuje wyliczenia (jezeli test=false))		
		if(this.test){
			var fix = new Array(this.container, this.itm_name, top);
			alert(
				  fix[0]+' : '+cont_size.x + ' X ' + cont_size.y +'\n'
				  +fix[1]+' : '+itm_size.x + ' X ' + itm_size.y +'\n'
				  +'top : '+top
			);
		}
//		
	}
});



 function targetBlank(){
	 var ref=this.get("href");
	 ref.each(function(index,val){
		alert(domain + ref[val]); 
	 });
	
	
	return false;
 
 window.open(ref);
 }

