function initProfile() {
	 
	// tabs controll
	var getdivs = $A($$('div.containers')).compact();	
	var tabs    = $A($('tablist').getElementsByTagName('a')).compact();				
	getdivs.each(function(el){$(el).hide();});
    $(getdivs[0]).show();
    $(tabs[0]).className = 'selected';
	tabs.each(function(e){
					 Event.observe(e,'click', function() {
		                  getdivs.each(function(el){$(el).hide();});
						  $(getdivs[tabs.indexOf(this)]).show();
						  tabs.each(function(ell){$(ell).className = '';});
						  $(this).className = 'selected';
						 }
					 );
			  }); // end tabs.each
    Shadowbox.init();
}
document.observe('dom:loaded', initProfile);