"use strict";
/******************************************************************************/
/******************************************************************************/

function SwimAcademy_ThemeHelper()
{
	/**************************************************************************/
	
	this.isEmpty=function(value)
	{
		return(jQuery.trim(value).length===0 ? true : false);
	};
	
	/**************************************************************************/

	this.getValueFromClass=function(object,pattern)
	{
		var reg=new RegExp(pattern);
		var className=jQuery(object).attr('class').split(' ');

		for(var i in className)
		{
			if(reg.test(className[i]))
				return(className[i].substring(pattern.length));
		}

		return(false);		
	};
	
	/**************************************************************************/
	
	this.parseBool=function(value)
	{
		return(parseInt(value,10)===1 ? true : false);
	};

	/**************************************************************************/
};

/******************************************************************************/
/******************************************************************************/