$(document).ready(function(){

	/***Enterprise Mobility drop down**/
	$('.emobsub').hide();
	$('.subnav').hover(function() {
		$(this).children("a").addClass("hover");
		$('.emobsub').stop(true, true).slideDown();
		
	}, function(){
		$(this).children("a").removeClass("hover");
		$('.emobsub').stop(true, true).slideUp();
	});
	
	/***Services drop down**/
	$('.service_submenu').hide();
	$('.service_subnav').hover(function() {
		$(this).children("a").addClass("hover");
		$('.service_submenu').stop(true, true).slideDown();
		
	}, function(){
		$(this).children("a").removeClass("hover");
		$('.service_submenu').stop(true, true).slideUp();
	});
	
	/***About Us drop down**/
	$('.about_submenu').hide();
	$('.about_subnav').hover(function() {
		$(this).children("a").addClass("hover");
		$('.about_submenu').stop(true, true).slideDown();
		
	}, function(){
		$(this).children("a").removeClass("hover");
		$('.about_submenu').stop(true, true).slideUp();
	});
	
	/*******for accordion (show / hide)**********************/
	 	$('.shhdContainer').hide();
		$('.shhdContainer:first').show();
		$('.accorborder h3').click(function(){
			$(this).next('.shhdContainer').slideToggle(100);
			$(this).toggleClass("active");
			$(this).children().toggleClass("active");
			//$('.accorborder h3').children().toggleClass("active");
		});
	
	/****************for career page*************************************/
	
	$("#rest").hide();
	$("#show").click(function()
	{
		$("#show").hide();
		$("#rest").show();
	});
	
	$("#rest1").hide();
	$("#show1").click(function()
	{
		$("#show1").hide();
		$("#rest1").show();
	});
	
	
	$("#rest2").hide();
	$("#show2").click(function()
	{
		$("#show2").hide();
		$("#rest2").show();
	});
	
	/*****for lightbox*****/
	$('.popbox').hide();
	$('.overlay_shadow').hide();
	$('.viewbox').click(function(){
		var centerDiv = $('.popbox');
		var height = $(window).height();
    	var width = $(window).width();
		var left=width/2 - (centerDiv.width() / 2);
		var top = height/2 - (centerDiv.height() / 2)
		centerDiv.css({'left' : left ,'top' : top});
		$('.popbox').fadeIn();
		$('.overlay_shadow').fadeIn();
	});
	
	$('.closebtn, .overlay_shadow').click(function(){
		$('.popbox').fadeOut();
		$('.overlay_shadow').fadeOut();
	});
});

