function setEqualHeight(columns)  
  {  
  var tallestcolumn = 0;  
  columns.each(  
  function()  
  {  
  currentHeight = $(this).height();  
  if(currentHeight > tallestcolumn)  
  {  
  tallestcolumn  = currentHeight;  
  }  
  }  
  );  
  columns.height(tallestcolumn);  
  } 

function switch_image(name,image,status){
 if (status == 'on'){
 document.images[name].src = image;
 } else {
 document.images[name].src = image;
 }
}
 
$(document).ready(function(){ 
	$("ul.sf-menu")
	//.find('li.current_page_item,li.current_page_parent,li.current_page_ancestor').addClass('current-sf').end() 
	.superfish({ 
			delay:       500,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
     	    speed:       0,                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up
			pathClass:     'current-sf',			  // the class you have applied to list item that
														  // lead to the current page 
    		pathLevels:    1	 
	});
	
	$("#qtrans_select_qtrans_language_chooser").msDropDown();
	
	$('#testimonials-fader').innerfade({ 
		animationtype: 'fade', 
		speed: 1200, 
		timeout: '5000', 
		type: 'random', 
		containerheight: '92px', 
		runningclass: 'innerfade'
	});
  setEqualHeight($("#Blog.Content-full  > div").not(".clearer"));  
});
