// $_meef is main object containing javascript logic
var _meef = {};
// very common stuff declared here only
//
_meef.debug = function(s)	{
	if (typeof console != "undefined" && typeof console.debug != "undefined") {
			console.log(s);
	} else {
		alert(s);
	}
};
_meef.scrollTo = function(el)	{
	// use jQuery.scrollTo for scrolling above element
	if (!$.scrollTo)	return;
	$.scrollTo('#' + el, {duration: 300, offset: {top: -30} });
}
_meef.bgBlink = function(elID)	{
	// use jQuery to blink for this alerts
	var elArray = $('#' + elID);
	if (!elArray.length || elArray.length < 1)	return;
	var el = elArray[0];
	var color = $(el).css('backgroundColor');
	//$(el).css('opacity',0).pause(500).animate({opacity: 1}, 1000);return;
	$(el).hide().slideDown(); return;
	$(el).css('backgroundColor','#fff').animate({backgroundColor: color},1000).animate({backgroundColor: '#fff'}, 1000).animate({backgroundColor: color}, 1000)
			.animate({backgroundColor: '#fff'}, 1000).animate({backgroundColor: color}, 1000);

}