// ===================
// = AddThis =
// ===================
     var addthis_config = {
        data_ga_property: 'UA-16418865-1',
        data_track_clickback: true
     };

// ============
// = Slider & RSS Feed =
// ============

$(document).ready(function() {

	$(".slidetabs").tabs("#slider > div", {
		// enable "cross-fading" effect
		effect: 'fade',
		fadeOutSpeed: "slow",
		// start from the beginning after the last tab
		rotate: true
	// use the slideshow plugin. It accepts its own configuration
	}).slideshow({ autoplay: true, interval: 5000, clickable: false});
	
	//rss feed
	$(".scrollable-v").scrollable({circular: true, vertical: true, easing: 'linear' }).navigator().autoscroll({
		interval: 6000		
	});
	
// ============
// = Flowplayer =
// ============

	// a tags with class "video" are transformed into video players
    flowplayer("a.video", "http://eii-javascript.s3.amazonaws.com/flowplayer-3.2.7/flowplayer.unlimited-3.2.7.swf", {
        // product key from your account
        	key: '9b6d5d74e60fd9aaf15',
    	// this is the player configuration. You'll learn on upcoming demos.
    	plugins:  {
    		controls:  {
    			volume: false,
    			opacity: 0.85		
    		}
    	}
    });


});



// ============
// = Slickbox =
// ============
$(function() {
	//Hides the slickbox as soon as the DOM is ready
	$('#slickbox').hide();

	//Shows the slickbox on clicking the noted link
	$('a#slick-down').click(function()
	{
		$('#slickbox').slideDown('slow');
		return false;
	});

	//Hides the slickbox on clicking the noted link
	$('a#slick-up').click(function() {
		$('#slickbox').slideUp('slow');
		return false;
	});
});



// ===================
// = Form Validation =
// ===================

$(function() {
						
			//Form Validation
			$("#contact-quick, #cform").validator();
					  	  	
			
			//Hides the slickbox as soon as the DOM is ready
			//(a little sooner than page load)
			$('#slickbox').hide();

			//Shows the slickbox on clicking the noted link  
			$('p#slick-down').click(function() 
			{
				jQuery('#slickbox').slideDown('slow');
				return false;
			});

			//Hides the slickbox on clicking the noted link  
			$('a#slick-up').click(function() {
				jQuery('#slickbox').slideUp('slow');
				return false;
			});
		});
		


