$(window).load(function() {

	$('#slider').coinslider({ hoverPause: true, links: false, width: 630, height: 390 });
	
	if ($('.combo').length>0){
		$('.combo').combobox({
			comboboxContainerClass: "comboboxContainer",
			comboboxValueContainerClass: "comboboxValueContainer",
			comboboxValueContentClass: "comboboxValueContent",
			comboboxDropDownClass: "comboboxDropDownContainer",
			comboboxDropDownButtonClass: "comboboxDropDownButton",
			comboboxDropDownItemClass: "comboboxItem",
			comboboxDropDownItemHoverClass: "comboboxItemHover",
			animationType: "fade",
			width: "280px"
		});
	}
	
	if ($('#loopedSlider').length>0){
		$('#loopedSlider').loopedSlider({});
	}
	
	t = $('.pagination');
	$('#slider_pagination').html(t);
	
	elms = $('.slides .slide_title');
	elms2 = $('.pagination li a');
	for (i=0;i<elms.length;i++){
		txt = $(elms[i]).text();
		$(elms2[i]).text(txt);
		if (i == elms.length-1){
			$(elms2[i]).parent('li').addClass('last');
		}
	}
	
});
