$(document).ready( function(){


$(function() {
    $(".horizont_slide").jCarouselLite({
        btnNext: ".nextb",
        btnPrev: ".prevb",
		circular: true,
		visible: 5,
		speed: 500
    });
});



$(window).load(function() {
    $('.slider_block_container').nivoSlider({
	prevText: '', 
	nextText: '',
	effect: 'sliceUpDown',
	pauseTime: 6000,
	animSpeed: 900,
	directionNav: true,
	directionNavHide: false,
	manualAdvance: false,
	controlNav: false
	});
});

if ($('.right_content').find('a img'))
{
$('.right_content').find('a img').parent().fancybox({'titlePosition' : 'over', 'centerOnScroll' : 'true', 'padding': 7, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic'});
}

$('.maplink').fancybox({'titlePosition' : 'over', 'centerOnScroll' : 'true', 'transitionIn' : 'elastic', 'padding': 7, 'transitionOut' : 'elastic'});


$('.certificate_item a[rel=cert]').fancybox({'titlePosition' : 'over', 'centerOnScroll' : 'true', 'transitionIn' : 'elastic', 'padding': 7, 'transitionOut' : 'elastic'});

if ($(document).find('table.shkafy a'))
{
$('table.shkafy a').attr('rel', 'group');
$('table.shkafy a[rel=group]').fancybox({'titlePosition' : 'over', 'centerOnScroll' : 'true', 'transitionIn' : 'elastic', 'padding': 7, 'transitionOut' : 'elastic'});
}

$('a.h_slider[rel=gallery]').fancybox({'titlePosition' : 'over', 'centerOnScroll' : 'true', 'transitionIn' : 'elastic', 'padding': 7, 'transitionOut' : 'elastic'});

$(".call_link").fancybox({'titlePosition' : 'over', 'centerOnScroll' : 'true', 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'padding': 7});


});


$(document).ready(function() {
    var options = { 
        target:        '.call_form_container',   // target element(s) to be updated with server response 
        beforeSubmit:  function() { },  // pre-submit callback 
        success:      function() { 
 
		} 
 
        // other available options: 
        //url:       url         // override for form's 'action' attribute 
        //type:      type        // 'get' or 'post', override for form's 'method' attribute 
        //dataType:  null        // 'xml', 'script', or 'json' (expected server response type) 
        //clearForm: true        // clear all form fields after successful submit 
        //resetForm: true        // reset the form after successful submit 
 
        // $.ajax options can be used here too, for example: 
        //timeout:   3000 
    }; 
 
    // bind form using 'ajaxForm' 
	$('.send_button input').live('click', function(){
	
	$('#callForm').ajaxForm(options);
	});
     
}); 



