/* ***********************************************************************
* Plugins initialization
*/


function initSlideShowGallery() {
	if (jQuery(".slideShowGallery").length) {
		var objectsThunb=new Array();
		$(".slideShowGallery dd li a").each(function (i) {
			 objectsThunb[i]= $(this);
			 objectsThunb[i].click(function () { 
		     	$(".slideShowGallery dd li a").removeClass('active');
				objectsThunb[i].addClass('active');
				var srcThunb = objectsThunb[i].attr('href');
				$('.cbx-slide img').attr('src',srcThunb);
				return false;
		    });
		})
	}
}

/* ***********************************************************************
* Event handlers
*/

function domloader() {
	initSlideShowGallery();
}

function windowloader() {
	 //initIstant();
	 //initTableSorter();
}

/** Event resize**/
function windowOnResize() {
    //InitNewsslider();
};





/* ***********************************************************************
* Secondary functions
*/



/* ***********************************************************************
* Event controllers
*/





$(document).ready(function(){
	 domloader();    
});
$(window).ready(function(){
	 windowloader();
	 windowOnResize();
});









