

	function addFCK(div, config){
			var oFCKeditor = new FCKeditor( div ) ;
			oFCKeditor.BasePath = "/public/js/libs/fckeditor/" ;
			oFCKeditor.Config["CustomConfigurationsPath"] = "/public/js/libs/fckeditor/" + config + ".js?" + ( new Date() * 1 ) ;

			oFCKeditor.ReplaceTextarea() ;

	}
	
	function addCalendar(id){

 		var popupcalendar;

			/*get a handle on the containing elements for the calendar*/
			var popupElement = document.getElementById(id);
			
			/*Initialize the calendars*/
			popupcalendar = new Epoch('popupcal', 'popup', popupElement, false);
		
	
	}
	


$(function() {
	var browserClass = '';
	$.each($.browser, function(i, val) {
		if (val && (i != 'version')) {
			browserClass = (i == 'msie')
				? 'ie' + $.browser.version.replace('.0', '')
				: i;
		}
	});
	
	
	
	var css_browser_selector = function() {
var ua=navigator.userAgent.toLowerCase(),
is=function(t){return ua.indexOf(t) != -1;},
h=document.getElementsByTagName('html')[0],
b=(!(/opera|webtv/i.test(ua))&&/msie (\d)/.test(ua))?('ie ie'+RegExp.$1):is('gecko/')? 'gecko':is('opera/9')?'opera opera9':/opera (\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',
os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';
var c=b+os+' js'; h.className += h.className?' '+c:c;
}();




});

$.fn.extend({
	
	getId : function(sep) {
		sep = sep || '-';
		return this[0].id.substr(this[0].id.lastIndexOf('-')+1);
	}
});



