var calledTimes = 0;
function doSolutionClick(show,hide)
{
	if(document.getElementById(show+'div') && document.getElementById(show+'link') && document.getElementById(hide+'div') && document.getElementById(hide+'link'))
	{		
		if (navigator.userAgent.toLowerCase().indexOf("msie") != -1)
		{
			actionDivsIE(show,hide);
		}
		else
		{
			actionDivs(show,hide);
		}		
		actionLinks(show,hide);
	}
	else
	{
		//alert("No Divs");
	}
}
function actionDivs(show,hide)
{
	document.getElementById(show+'div').style.visibility="visible";
	document.getElementById(hide+'div').style.visibility="hidden";
	document.getElementById(show+'div').style.position="relative";
	document.getElementById(hide+'div').style.position="absolute";
}
function actionDivsIE(show,hide)
{
	document.getElementById(show+'div').style.display="block";
	document.getElementById(hide+'div').style.display="none";
}
function actionLinks(show,hide)
{
	document.getElementById(show+'link').style.display="none";
	document.getElementById(hide+'link').style.display="block";
}
(function($) {
  $.fn.equalizeCols = function(children){
  	
    var child = Array(0);
    if (children) child = children.split(",");
	var maxH = 0;
	var counter = 0;
	
		this.each(
	      function(i) 
	      {		  	
			if (this.offsetHeight>maxH) maxH = this.offsetHeight;
	      }	  
	    ).css("height", "auto").each(
	      function(i)
	      {		  	
	        var gap = maxH-this.offsetHeight;
			if (gap > 0)
	        {
	          t = document.createElement('div');
			  $(t).attr("class","fill").css("clear","both");
	          $(t).attr("class","fill").css("height",gap+"px");		  
	          if (child.length > i)
	          {
	            $(this).find(child[i]).children(':last-child').after(t);
	          } 
	          else 
	          {
	            $(this).children(':last-child').after(t);
	          }
	        }
	      }  
	    );
	
	calledTimes++;
  }
})(jQuery);
