jQuery.noConflict();
jQuery(document).ready(function($){
	$.equalCalculator();
	$("body").addClass($.browser.msie ? 'msie' : 
										($.browser.mozilla ? 'mozilla' : 
										($.browser.safari ? 'safari' : 
										($.browser.opera ? 'opera' : 'default' ))));
	/**************** jFinterface ****************/
	$("form").jFinterface();
	/**************** navOnelevel ****************/
	$('*[navonelevel-option*=""],*[navonelevel-option]').each(function(){
		if($(this).attr('id'))
		{
			$(this).removeAttr("navonelevel-option");
			$(this).navOnelevel();
		}
		else
			alert("navOnelevel Need element has id property");
	});
	/**************** Fancybox ****************/
	$('*[fancybox-option*=""],*[fancybox-option]').each(function() {
		eval('var option={'+$(this).attr("fancybox-option")+'}');
		$(this).fancybox(option);
	});
	/**************** treeview ****************/
	$('*[treeview-option*=""],*[treeview-option]').each(function(){
		eval('var option = {'+$(this).attr("treeview-option")+'}');
		$(this).removeAttr("treeview-option");
		$(this).treeview(option);
	});
	/**************** Scroll ****************/
	$('*[jscrollpane-option*=""],*[jscrollpane-option]').each(function(){
		eval('var option = {'+$(this).attr("jscrollpane-option")+'}');
		$(this).removeAttr("jscrollpane-option");
		$(this).jScrollPane(option);
	});
	$('*[jcarousel-option*=""],*[jcarousel-option]').each(function(){
		eval('var option = {'+$(this).attr("jcarousel-option")+'}');
		$(this).removeAttr("jcarousel-option");
		$(this).jcarousel(option);
	});
	/**************** Corner ****************/
	$('*[data-corner*=""],*[data-corner]').each(function(i){
		$(this).removeAttr('data-corner');
		$(this).corner($(this).attr('data-corner'));
	});
	/**************** Pngfix ****************/
	$("*").pngFix({blankgif: 'media/images/blank.gif'});
	$.equalApply();
});