//jQuery.noConflict();

$(document).ready(function() {
    $('.blog_slder').ulslide({
        width: 562,
        height: 253,
        navigator: '.blog_slder_nav a',
        effect: {
            type: 'slide', // slide or fade
            axis: 'x',     // x, y
            distance: 0   // Distance between frames
        },
        autoslide: 7000// false
    });

    $('.a_touch_of_slder').ulslide({
        width: 562,
        height: 255,
        navigator: '.a_touch_of_slder_nav a',
        effect: {
            type: 'slide', // slide or fade
            axis: 'x',     // x, y
            distance: 0   // Distance between frames
        },
        autoslide: 7000//false
    });

	/* script codaSlider */
    $('#coda-slider-1').codaSlider({
        dynamicArrows: false,
        dynamicTabs: false,
        autoHeight: false,
        /*autoSlide: true,*/
        autoSlide: true,//false,
        autoSlideInterval: 7000
    });

	/* script jScrollPane */
    $('.desc, .events ul, .inter_container').jScrollPane({showArrows:true, arrowSize:10, scrollbarWidth:7, dragMaxHeight:74});
	
	/* footer caroucel */
    $('.footer_slider').jcarousel({
        scroll: 4,
		wrap: 'circular',
        buttonPrevHTML: '<div><span class="f_prev"></span></div>',
        buttonNextHTML: '<div><span class="f_next"></span></div>'
    });
    
	/* script for open photo in  fancybox */
    $(".footer_slider_wrapp ul li a").fancybox();
	
	/* script for hover topmenu */
	$('ul.topnav > li > ul, ul.bottommenu > li > ul').hover(
		function () {
			$(this).parent().children().css('color', '#E4A11B');
			$(this).parent().addClass('hover');
		}, 
		function () {
			$(this).parent().children().css('color', '');
			$(this).parent().removeClass('hover');
		}
	);
	$('ul.topnav  > li a, ul.bottommenu  > li a').hover(
		function () {
			$(this).parent().addClass('hover');
		}, 
		function () {
			$(this).parent().removeClass('hover');
		}
	);
	
	/* video caroucel */
	$('#video-carousel').jcarousel({
		vertical: true,
		scroll: 1
	});
/*
	if ( (navigator.userAgent.indexOf('Safari') != -1) 
		&& (navigator.userAgent.indexOf('Chrome') == -1) 
		&& ( (navigator.userAgent.indexOf('Version/5') != -1) && (navigator.userAgent.indexOf('Mac Os') != -1) )
		|| ( (navigator.userAgent.indexOf('Version/5') != -1) && (navigator.userAgent.indexOf('Windows') != -1) ) ) {
		//alert(navigator.userAgent);
		$('li.rightpart').css({"margin-left":"120px"});
	}
	if ( navigator.userAgent.indexOf('MSIE 9.0') != -1 ) {
		$('li.rightpart').css({"margin-left":"230px"});
	}*/
	jQuery("ul li:first-child").addClass("first-child");
});


