//jQuery.noConflict();

jQuery(document).ready(function() {
								
	jQuery("div.scrollable .items a").each(function(i, domElement){
		jQuery(domElement).click(function() {
			var location = new String();
			location = jQuery(this).attr("href");
			document.location = "http://wa.net.ua" + location.substr(location.indexOf("#") + 1);
		});
	});
	jQuery("div.scrollable").scrollable({
		vertical:true,
		size:3,
		next: "#next-client",
		prev: "#previous-client"
		//api: true,
		//onSeek: function() { 
			//var location = new String();
			//location = jQuery("div.scrollable .items a").eq(this.getPageIndex()).attr("href");
			//document.location = "http://wa.net.ua" + location.substr(location.indexOf("#") + 1);
    	//}
	}).mousewheel();
	/*api.onClick(function(event) {
		var location = new String();
		alert("aaaa");
		
	});*/
	jQuery("#next-client").click(function() {return false;});
	jQuery("#previous-client").click(function() {return false;});
	
	jQuery("ul.tabs").tabs("div.panes > div",{effect: 'default', onClick: function() {return false;},onBeforeClick: function(event, tabIndex) {
        //i = this.getCurrentTab(); 
		jQuery("ul.tabs a").removeClass("current").eq(tabIndex).addClass("current");
    }}); 
	//jQuery("ul.tabs a").click(function() {return false;});
	jQuery("div.tabs-holder > div").scrollable({item:"li", size:3, clickable: true }).mousewheel();
});