$("html").addClass("js");
$.fn.accordion.defaults.container = false; 
$(function(){
	$("html").addClass("js");
	var showM = "slideFadeDown";
	var hideM = "slideFadeUp";
	var int = 200;
	if($.browser.msie && $.browser.version == 7) {	
		showM = "fadeIn";
		hideM = "fadeOut";
		int = 800;
	}
	if($.browser.msie && $.browser.version == 6) {
		location.href = "http://go1c.com.ua/ie6/";
	}
	$("#accordion").accordion({	
		  wrapper: "div",
	      el: ".h", 
	      head: "h3", 
	      next: "div", 
	      showMethod: showM,
	      hideMethod: hideM,
	      initShow : "div.shown",
	      hideSpeed: 400,
	      interval: int
	    });
	if($(".left-active").size() == 0) {
		$(".first:first").addClass("open").parent().next(".outer:first").show();
	} else {
		$(".left-active:first").addClass("open").parent().next(".outer:first").show();
	}
	/*var carouselW = 0;
	for(i=0;i<$("#mycarousel img").size();i++){
	carouselW += $("#mycarousel img:eq("+i+")").width();
	}
	alert(carouselW);*/
    $('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'circular',
        size: 54
    })
   $('#mycarousel').width(11509);//из-за бага в хроме
	$('.left-sub-menu').dcVerticalMegaMenu({
		rowItems: '3',
		speed: 'fast',
		effect: 'slide',
		direction: 'right'
	});
    $("html").removeClass("js");
	$(".dc-mega").click(function(e){
		e.preventDefault();
	});
	$("a").focus(function(){
		this.blur();
	});
})
