/**
 * WebRex 
 *
 * Copyright 2010-2011 by Nicolas Pecher
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, see <http://www.gnu.org/licenses/>
 */
 
 /**
  * WebRex Basic-Template
  *
  * Type: JavaScript
  * Filename: webrexJsFunctions.js
  * Author: Nicolas Pecher
  */
  
function loadContent(url, effect)
{	
	if (effect == 2) {
	    $("#webrex-ajax-content-loader-container").fadeOut(1000, function(){
	        $(this).load(url, function(){
			    $(this).fadeIn(1000);
		    });
	    });
	} else if (effect == 3) {	  
	    $("#webrex-ajax-content-loader-container").slideUp(1000, function(){
	        $(this).load(url, function(){
			    $(this).slideDown(1000);
		    });
	    });
	} else {					
	    $("#webrex-ajax-content-loader-container").hide(0, function(){
	        $(this).load(url, function(){
			    $(this).show(0);
		    });
	    });
	}			
} 


