/************
News slider
*************/
jQuery(window).load(function()
{ //jQuery(window).load() must be used instead of jQuery(document).ready() because of Webkit compatibility							
// News slider > Horizontal
jQuery(".newslider-horizontal").sliderkit({
auto:true,
shownavitems:7,
panelfx:"sliding",
panelfxspeed:500,
panelfxeasing: "easeOutCirc", //"easeInOutExpo", "easeOutExpo", etc.
mousewheel:false,//true,
keyboard:true,
fastchange:true,//false
});

});

/************
10prichin 
*************/
$(document).ready(function(){

$(".accordion h4:first").addClass("active");
$(".accordion p:not(:first)").hide();

$(".accordion h4").click(function(){
$(this).next("p").slideToggle("slow")
.siblings("p:visible").slideUp("slow");
$(this).toggleClass("active");
$(this).siblings("h4").removeClass("active");
});

});
/************
FAQ 
*************/
$(function(){
	$("div dd.answer")
		.hide();
	$("div dl.faq dt")
		.append("<br /><a href='#' title='Нажать - получить ответ' class='answer-tab'>Ответ</a>");
	$("div .answer-tab")
		.click(function(){
			$(this)
				.parent().parent()
				.find("dd.answer")
				.slideToggle();
            return false;
		});
});

/************
tooltip 
************
	 function simple_tooltip(target_items, name){
	 $(target_items).each(function(i){
	 $("div.cpt_maincontent #catalog").append("<p class='"+name+"' id='"+name+i+"'>"+$(this).attr('title')+"</p>");
	 var my_tooltip = $("#"+name+i);

	 $(this).removeAttr("title").mouseover(function(){
	 my_tooltip.css({opacity:0.8, display:"none"}).fadeIn(1000);
	 }).mousemove(function(kmouse){
	 my_tooltip.css({left:kmouse.pageX-10, top:kmouse.pageY-10});
	 }).mouseout(function(){
	 my_tooltip.fadeOut(0);
	 });
	 });
	}

$(document).ready(function(){
 simple_tooltip("a[title]","tooltip");
});
*/
