/* <![CDATA[ */
window.addEvent('domready',function(){
$$('.bumpbox').addEvent('click',function(e){
	e = new Event(e).stop();

	if($('grow') != null){
		$('grow').dispose();
	}

	var content = this.get('href');
	
	maxw = 0;
	maxh = 0;
	var title = "";
	
	if(this.get('rel')!= null){
		var tmp = this.get('rel').split(",");	
		maxw = tmp[0];
		maxh = tmp[1];
	}
	
	if(this.get('title') != null){
		title = this.get('title');
	}
	
	if(maxw == 0){	maxw = 640;	}
	if(maxh == 0){	maxh = 480;	}

	w = window.getSize().x.toInt();
	h = window.getSize().y.toInt();
	s = window.getScrollTop();
	var middleH = (w) / 2;
	var middleV = (h) / 2;
	var endleft = (w-maxw) / 2;
	var endtop = ((h - maxh) / 2) + s;
	

	var el = new Element('div', {
		 'styles':{
			 width: '1px', 
			 height: '1px',
			 position:'absolute',
			 border:'5px solid #303132',
			 background:'#222',
			 left:middleH +"px",
			 top:middleV + "px",
			 cursor:'pointer',
			 display:'block',
			 'z-index':100000
			 
			
		},
		'id': 'grow'
	})


	bg = new Element('div',{
	'styles':{
		background:'#000', 
		width:'100%',
		height:'100%',
		opacity:'0.7',
		position:'absolute',
		top: window.getScrollTop(),
		left: 0
	},
	'id':'bg'
	})
	
	bg.inject(document.body);
	el.injectInside(document.body);
	
	window.addEvent('scroll',function(){
		$(bg).setStyle('top',window.getScrollTop());
	})

	