// JavaScript Document
//Author : Amjith PS, Anoop V
$(document).ready(function() {
	$('#contact_us').click(function() {
		$('#contact_us_div').show("slow");
	});
	$('#contact_us2').click(function() {
		$('#contact_us_div').show("slow");
	});
	$('#contact_us_div').click(function() {
		$('#contact_us_div').hide("slow");
	});
	$('#about_us').click(function() {
		$('#about_us_show').show("slow");
		document.getElementById('close_about_us').focus();
	});
	
	$('#current_opening').click(function() {
		var html = $.ajax({
		 url: "current_openings.php",
		 async: false
		}).responseText;
		
		$('#job_content').html(html);
	});
	

	$('#work_culture').click(function() {
		var html = $.ajax({
		 url: "work_culture.php",
		 async: false
		}).responseText;
		
		$('#job_content').html(html);
	});
	
	
	$('#close_about_us').click(function() {
		$('#about_us_show').hide("slow");
	});
	$('#news').innerfade({
			animationtype: 'slide',
			speed: 750,
			timeout: 2000,
			type: 'random',
			containerheight: '1em'
	});
		
	$('ul#portfolio').innerfade({
			speed: 2000,
			timeout: 10000,
			type: 'sequence',
			containerheight: '200px'
	});
					
	$('.fade').innerfade({
			speed: 1000,
			timeout: 6000,
			type: 'random_start',
			containerheight: '1.5em'
	});
					
	$('.adi').innerfade({
			speed: 'slow',
			timeout: 5000,
			type: 'random',
			containerheight: '150px'
	});
	
	
});


