

document.observe('dom:loaded', function() { 

	FLIR.init( { path: '/global/facelift/' } );
 

	// Or, you can pass an array of selectors to the auto function to be replaced.
	FLIR.replace( 'h1' , new FLIRStyle({ cFont:'fgsaga', mode:'wrap' }) );
	FLIR.replace( '.receptnamn' , new FLIRStyle({ cFont:'bree', mode:'wrap' }) );
	FLIR.replace( 'h3' , new FLIRStyle({ cFont:'bree' }) );
	

	if($("showcase"))
	{
		var holviks_showcase = new HolviksShowcase("showcase");
	}
	
	if($("staff"))
	{
		
		
	
	
		var lista = $("staff").select(".personal");
		
		
		
		
			lista.each(function(elm){
				if($(elm).down('a'))
				{
					$(elm).down('a').bigtargetstaff();
				}
						
			});
	}
	
	
	$("maillink").observe('click', function(eee){
			
			Event.stop(eee);
			
			var info = "person=matkompaniet";
			Modalbox.show('/global/specialpages/test.php', {params: info,title: 'MATKOMPANIET', afterLoad: function(){
				FLIR.replace($('popinforub'), new FLIRStyle({ cFont:'bree' }) );
				
			}});  
			
		});	
		
		
	
	
	
		

	
var lista = $("topinfo2").select(".topdist");
	
	lista.each(function(elm){
		
		elm.observe('click',function(e){
        	
        	Event.stop(e);
        	
        	var info = "person=" + elm.href.split("#")[1];
			Modalbox.show('/global/specialpages/login.php', {params: info,title: 'MATKOMPANIET LOGIN', afterLoad: function(){
				FLIR.replace($('popinforub'), new FLIRStyle({ cFont:'bree' }) );
				
			}});        
		
		});		
						
	});



}); 

