$(document).ready
(
	function() 
	{
		$("img[@src$=png], .bluetextleft, .menu_cont_bottom_left, .searchtextleft , .poll_tooltip_placeholder").pngfix
		(
			{
				sizingMethod: "scale"
			}
		);
	}
);
$(".Wipro_Technologies").ready
(
 	function()
	{
		/*$(".home_news_new")
			.css
			(
				{
					backgroundColor:'#012D55', 
					opacity:0.8
				}
			);
		$('.home_news_new_bdr')
			.css
			(
				{
					backgroundColor:'#012D55', 
					opacity:0.8
				}
			);*/
		/*worldwide menu section*/
		/*table row color chenge*/
		$(".worldwide_menu table tr").hover
		(
			function() 
			{
				$('td', this)
					.css({backgroundColor: '#d9d9d9' , cursor: 'pointer'})
			},
			function() 
			{
				$('td', this)
					.css({backgroundColor: '#ffffff' , cursor: 'pointer'})
			}
		);
		/*table row color chenge*/
		/*menu show/hide*/
		$(".Worldwidelink")
			.hoverIntent
				(
				 	{
						sensitivity: 100, 
						interval: 500, 
						out: WorldwidelinkOff,
						over: WorldwidelinkOn, 
						timeout: 500
				
					}
				);
		/*menu show/hide*/
		/*worldwide menu section*/
		/*menu section*/
		/*menu/search roiund corners*/
		DD_roundies.addRule('.menu_place', '5px 0 0 5px', true);
		DD_roundies.addRule('.menu_place_blue', '5px 0 0 5px', true);
		DD_roundies.addRule('.menu_place_gray', '0 0 0 5px', true);
		DD_roundies.addRule('.gray_sq_cir', '5px 0 0 5px', true);
		DD_roundies.addRule('.gray_cir', '5px 0 0 5px', true);
		DD_roundies.addRule('.search_place_gray', '5px 0 0 5px', true);
		//DD_roundies.addRule('.Choose_your_Path_tab_IT', '3px 3px 0 0', true);
		/*menu roiund corners*/
		/*menu mouseover/out action*/
		$("div.menu_place")
			.hoverIntent
				(
				 	{
						sensitivity: 100, 
						interval: 550, 
						out: mouseOff,
						over: mouseOn, 
						timeout: 100
					}
				);
		$(".search_place")
			.toggle
			(
				function () 
				{
					//alert($(".search_place").css({"zIndex"}))
					$(".search_content_place_holder")
						.css
						(
							{
								zIndex	: 	"6",
								width	:	"218px"
							}
						);
					$(".search_place")
						.css
						(
							{
								zIndex	: "5"
							}
						);
					$(".search_place_gray")
						.css
						(
							{
								width	: "270px"
							}
						);
					$(this)
					.animate
					(
						{
							width: "270px" ,
							left: "0px" 
						}, 
						{
							duration: '0',
							easing: 'easeInOutQuad',
							complete: 
								function () 
								{
									jQuery.each
									(
										jQuery.browser, function(i) 
										{
											if($.browser.msie)
											{
												$(".search_content_place_holder")
													.css
													(
													 	{
															marginLeft	:"-13px"
														}
													);
											}
										}
									)	
									DD_roundies.addRule('.search_content', '0 0 0 10px', true);
									DD_roundies.addRule('.search_textbox_placeholder', '5px 0 0 5px', true);
									$(".search_content_place_holder")
										.css
										(
											{
												borderTop	:"1px solid #71849a"
											}
										);

									$(".search_content")
										.animate
										(
											{
												marginTop: "0"  
											}, 
											{
												duration: '0',
												easing: 'easeInOutBounce',
												complete: 
													function()
													{
														//alert($(".search_place_gray").outerWidth());
													}
											}
										);
								} 
						}
					);
				},
				function () 
				{
					$(".search_content_place_holder")
						.css
						(
							{
								borderTop	:"none"
							}
						);
					$(".search_content")
						.animate
						(
							{
								marginTop: "-71px"  
							}, 
							{
								duration: '0',
								easing: 'easeInOutBounce',
								complete: 
									function()
									{
										$(".search_content_place_holder")
											.css
											(
												{
													zIndex	: "5"
												}
											);
										$(".search_place")
											.css
											(
												{
													zIndex	: "6"
												}
											);
										$(".search_place")
											.animate
											(
												{
													width: "117px" ,
													left: "0px" 
												}, 
												{
													duration: '700',
													easing: 'easeInOutQuad',
													complete: 
														function () 
														{	
															$(".search_place_gray")
																.css
																(
																	{
																		width	: "117px"
																	}
																);
														} 
												}
											);
									}
							}
						);
				}
    		);
		/*menu mouseover/out action*/
		/*menu mouseover/out action*/
		$("div.menu_place")
			.hoverIntent
				(
				 	{
						sensitivity: 100, 
						interval: 550, 
						out: mouseOff,
						over: mouseOn, 
						timeout: 100
					}
				);
		/*menu mouseover/out action*/
		/*z-Index chenge in menu_left mouse over*/
		$("table.ri_trends_pad_menu")
			.hoverIntent
				(
				 	{
						sensitivity: 100, 
						interval: 0, 
						out: menu_left_expan,
						over: menu_left_squiz, 
						timeout: 100
					}
				);
		/*z-Index chenge in menu_left mouse over*/
		/*worldwide menu*/
		/*fade effect for menu,search buttion*/
		$(".menu_left top").fadeIn(1000);
		$(".menu_place").fadeIn(1000);
		$(".search_place").fadeIn(1000);
		/*fade effect for menu,search buttion*/
		$(".Campus_link")
		.mouseover
		(
			function()
			{
				$(".Experience_menu")
					.fadeOut
					(
						500,
						function()
						{
							$(".Leadership_Role_menu")
								.fadeOut
								(
									500,
									function()
									{ 
										$(".Campus_menu")
											.fadeIn();
									}
								);
						}
					);
			}
		);
		$(".Experience_link")
		.mouseover
		(
			function()
			{
				$(".Campus_menu")
					.fadeOut
					(
						500,
						function()
						{
							$(".Leadership_Role_menu")
							.fadeOut
							(
								500,
								function()
								{ 
									$(".Experience_menu")
										.fadeIn();
								}
							);
						}
					);
			}
		);
		$(".Leadership_Role_link")
		.mouseover
		(
			function()
			{
				$(".Campus_menu")
					.fadeOut
					(
						500,
						function()
						{
							$(".Experience_menu")
								.fadeOut
								(
									500,
									function()
									{
										$(".Leadership_Role_menu")
											.fadeIn();
									}
								);
						}
					);
			}
		);
		$(".Permanent_Staffing_link")
		.mouseover
		(
			function()
			{
				//alert("a");
				$(".Contract_Staffing_menu")
					.fadeOut
					(
						500,
						function()
						{
							$(".Permanent_Staffing_menu")
								.fadeIn();
						}
					);
			}
		);
		$(".Contract_Staffing_link")
		.mouseover
		(
			function()
			{
				//alert("a");
				$(".Permanent_Staffing_menu")
					.fadeOut
					(
						500,
						function()
						{
							$(".Contract_Staffing_menu")
								.fadeIn();
						}
					);
			}
		);
	}
);
/*World wide menu */
function WorldwidelinkOn()
{
	$(".worldwide_menu").stop().slideDown("slow");
}
function WorldwidelinkOff()
{
	$(".worldwide_menu").stop().slideUp("slow");
}
/*World wide menu */
/*menu mouse over*/
function mouseOn() 
{	
	
	$(this)
		.animate
		(
			{
				width: "210px" ,
				left: "0px", 
				height: parseInt($(".menu_place_gray",this).height()) + 32
			}, 
			{
				duration: '700',
				easing: 'easeInOutQuad',
				complete: 
					function () 
					{
					} 
			}
		);
	$(".menu_place_gray",this)
		.animate
		(
			{
				height: $(".menu_place_gray",this).outerHeight()
			}, 
			{
				duration: '700',
				easing: 'easeInOutQuad',
				complete: 
					function () 
					{
						$(".Choose_your_Path_tab_placeHolder")
							.fadeIn(0);
						$("table",this)
							.fadeIn(1000,function(){});

					} 
			}
		);
	$(".menu_place_blue_malfun",this)
		.css
		(
			{
				visibility: "visible"
			}
		);
}
/*menu mouse over*/
/*menu mouse out*/
function mouseOff() 
{
	$(".menu_place_blue_malfun")
		.css
		(
			{
				visibility: "hidden"
			}
		);
	$(".Campus_menu")
		.fadeOut(0);
	$(".Experience_menu")
		.fadeOut(0);
	$(".Leadership_Role_menu")
		.fadeOut(0);
	$(".Permanent_Staffing_menu")
		.fadeOut(0);
	$(".Contract_Staffing_menu")
		.fadeOut(0);
	$("table",this)
		.fadeOut
		(
			500,
			function()
			{
				$(this).parent().parent()
					.animate
					(
						{
							width: "117px" ,
							left: "0px", 
							height: "30px"
						}, 
						{
							duration: '700',
							easing: 'easeInOutQuad',
							complete: 
								function () 
								{
									//$(".hidden_menu")
										//.fadeOut();
								} 
						}
					);
			}
		);
}
/*menu mouse out*/
/*search mouse on*/
 function searchOn() 
{
	$(this)
		.animate
		(
			{
				width: "270px" ,
				left: "0px", 
				height: parseInt($(".menu_place_gray",this).height()) + 32
			}, 
			{
				duration: '700',
				easing: 'easeInOutQuad',
				complete: 
					function () 
					{
					} 
			}
		);
	$(".menu_place_gray",this)
		.animate
		(
			{
				height: $(".menu_place_gray",this).outerHeight()
			}, 
			{
				duration: '700',
				easing: 'easeInOutQuad',
				complete: 
					function () 
					{
						

					} 
			}
		);
	$(".menu_place_blue_malfun",this)
		.css
		(
			{
				visibility: "visible"
			}
		);
}
/*search mouse on*/
/*search mouse off*/
function searchOff() 
{
	$(".searchtextbox").fadeOut("fast");
	$(this)
		.animate
		(
		 	{ 
				width: "113px" ,
				left: "0px" ,
				height: "30px"  
			}, 
			{ 
				duration: 500, 
				easing: 'easeInOutQuad',
				complete: 
				function () 
				{
					//do somthing
            	} 
			}
		)
		.parent().parent().animate
		(
		 	{ 
				width: "113px" ,
				left: "0px" ,
				height: "30px" 
			}, 
			{ 
				duration: 500, 
				easing: 'easeInOutQuad',
				complete: 
				function () 
				{
					//do somthing
            	} 
			}
		);
	$(".gray_area",this)
		.animate
		(
		 	{ 
				width: "109px" ,
				left: "0px" 
			}, 
			{ 
				duration: 500, 
				easing: 'easeInOutQuad',
				complete: 
				function () 
				{
					//do somthing
            	}
			}
		);
	$(".gray_sq_cir",this)
		.css
			(
			 	{ 
					backgroundImage: "url(http://67.218.96.186/images/menu/gray_round.gif)" 
				}
			);
}
/*search mouse off*/
/*left menu did width increase decrease*/
function menu_left_squiz()
{
	//alert($(".search_place_gray").outerWidth());
	if($(".search_place_gray").outerWidth() == 270 )
	{
		$(".search_content_place_holder")
			.css
			(
				{
					borderTop	:"none"
				}
			);
		$(".search_content")
			.animate
			(
				{
					marginTop: "-71px"  
				}, 
				{
					duration: '0',
					easing: 'easeInOutBounce',
					complete: 
						function()
						{
							$(".search_content_place_holder")
								.css
								(
									{
										zIndex	:  	"5",
										width	:	"88px"
									}
								);
							$(".search_place")
								.css
								(
									{
										zIndex	: "6"
									}
								);
							$(".search_place")
								.animate
								(
									{
										width: "117px" ,
										left: "0px" 
									}, 
									{
										duration: '700',
										easing: 'easeInOutQuad',
										complete: 
											function () 
											{	
												$(".search_place_gray")
													.css
													(
														{
															width	: "117px"
														}
													);
											} 
									}
								);
						}
				}
			);
		/*close search*/	
	}
	else if($(".Choose_your_Path table").css("display") == "none" && $(".Why_Wipro table").css("display") == "none" && $(".Applying_Wipro table").css("display") == "none" && $(".Candidate_Login table").css("display") == "none" && $(".Career_Center table").css("display") == "none" && $(".Staffing_Partners table").css("display") == "none" && $(".Subscribe table").css("display") == "none")
	{
		//alert("a1");
		$(".search_place") 
			.css 
			( 
			 	{ 
					width		: 	"117px" 
				} 
			); 
		$(".search_content_place_holder") 
			.css 
			( 
			 	{ 
					marginLeft 	: 	"51px", 
					width 		: 	"88px" 
				} 
			);
		$(".menu_left") 
			.css 
			( 
			 	{ 
					marginLeft	: "862px", 
					width		: "140px" 
				} 
			);
	}
	//no option left go for this
	else
	{
		//alert("a");
		t=setTimeout('$(".search_place") .css ( { width	: "117px" } ); $(".search_content_place_holder") .css ( { marginLeft : "51px", width : "88px" } ); $(".menu_left") .css ( { marginLeft	: "862px", width : "140px" } );',1500);

	}
}
function menu_left_expan()
{
	$(".search_place") 
		.css 
		( 
			{ 
				width	: 	"117px" 
			} 
		); 
	$(".search_content_place_holder") 
		.css 
		( 
		 	{ 
				marginLeft 	: "-12px", 
				width 		: "218px" 
			} 
		);
		$(".menu_left") 
			.css 
			( 
			 	{ 
					marginLeft	: "732px", 
					width		: "270px" 
				} 
			);
}
/*left menu did width increase decrease*/