$(function()
{			

    if(typeof sIFR == "function"){

		sIFR.replaceElement(named({
    		sSelector:".simple_box h2.title .bg_title", 
    			sFlashSrc: "/flash/sifr.swf", 
    			sColor:"#0039a6",
				sLinkColor:"#0039a6", 
				sHoverColor:"#333333",					
    			sWmode:"transparent"
    	}));
    };
	
    if(typeof sIFR == "function"){
	
    	sIFR.replaceElement(named({
    		sSelector:".simple_box h1.title .bg_title", 
    			sFlashSrc: "/flash/sifr.swf", 
    			sColor:"#0039a6",
				sLinkColor:"#0039a6", 
				sHoverColor:"#333333",				
    			sWmode:"transparent"
    	}));
  };		
    if(typeof sIFR == "function"){

		sIFR.replaceElement(named({
    		sSelector:".simple_box h2.title_select .bg_title", 
    			sFlashSrc: "/flash/sifr.swf", 
    			sColor:"#cc092f",
				sLinkColor:"#cc092f", 
				sHoverColor:"#0039a6",					
    			sWmode:"transparent"
    	}));		
    };
	
    if(typeof sIFR == "function"){

		sIFR.replaceElement(named({
    		sSelector:".simple_box h1.title_select .bg_title", 
    			sFlashSrc: "/flash/sifr.swf", 
    			sColor:"#cc092f",
				sLinkColor:"#cc092f", 
				sHoverColor:"#0039a6",					
    			sWmode:"transparent"
    	}));		
    };
	

	$(".firstlevel").click(function(event) {
//		event.preventDefault();

//		$(".secondlevel").addClass('hidethis');
		$(this).next(".secondlevel").removeClass('hidethis');

//		$(".hidethis").slideUp(10);
		
		$(this).next(".secondlevel").slideToggle(10);
		
		if($(this).parent().hasClass('active') != true){
//			$(".firstlevel").parent().removeClass('active');
			$(this).parent().addClass('active');}
		else{
			
//			$(".firstlevel").parent().removeClass('active');
			$(this).parent().removeClass('active');		/* remove if need accordion */
			
			}
	});

	
	

	
});
