
/*--------------------------------------------------------------------------------------------------------
											global variables
----------------------------------------------------------------------------------------------------------*/
var file_name=jQuery.url.attr("file");
var source_name=jQuery.url.attr("source");
var source_anchor=jQuery.url.attr("anchor");
var source_query=jQuery.url.attr("query");
/*--------------------------------------------------------------------------------------------------------
											global variables
----------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------
											fix png for ie
----------------------------------------------------------------------------------------------------------*/
/*img png transperency*/
$(document).ready
(
	function() 
	{
		$(".top_navigation, .right_navigation ,.bottom_navigation ,.left_navigation ,.left_page_shadow, .right_page_shadow").pngfix
		(
			{
				sizingMethod: "scale"
			}
		);
	}
);
/*img png transperency*/
/*--------------------------------------------------------------------------------------------------------
											fix png for ie
----------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------
											round corners
----------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------
											round corners
----------------------------------------------------------------------------------------------------------*/



/*--------------------------------------------------------------------------------------------------------
																			some page dependent functions
----------------------------------------------------------------------------------------------------------*/
$(document).ready
(
	function() 
	{
		/*file_name.substr(7);
		//alert(file_name.substr(0,5));
		if(file_name.substr(0,5) == "servi")
		{
			$(".Services")
				.addClass("sel");
		}*/
		$(".accordian")
			.click
			(
			 	function()
				{
					$(".acc_data_container")	
						.hide();
					$(".accordian")
						.removeClass("")
						.addClass("");
					$(this)
						.next()
						.show();
					$(this)	
						.removeClass("")
						.addClass("");
				}
			);
		
		$(".feedback_selector_cols_placeholder li a")
			.hoverIntent
			(
				{
					sensitivity: 10, 
					interval: 0, 
					over: anim_over, 
					timeout: 100, 
					out: anim_out
				}
			);
		$(".menu")
			.hoverIntent
			(
				{
					sensitivity: 4, 
					interval: 100, 
					over: menu_over, 
					timeout: 100, 
					out: menu_out
				}
			);
		$(".menuh")
			.hoverIntent
			(
				{
					sensitivity: 4, 
					interval: 100, 
					over: menuh_over, 
					timeout: 100, 
					out: menuh_out
				}
			);
		$(".tab_ul li")
			.click
			(
			 	function()
				{
					var get_id = $(this).attr("id");
					$(".panel")
						.hide();
					$("."+get_id)
						.show();
					$(".tab_ul li")
						.removeClass("sel");
					$(this)
						.addClass("sel");
					
				}
			);
		$(".feedback_portfolio_placeholders")
			.click
			(
			 	function()
				{
					var portfolio_no = $(".feedback_portfolio_placeholders").index(this);
					$(".feedback_portfolio_content").hide();
					$(".feedback_aboutUs_placeholder_cols_ful_right div:eq("+portfolio_no+")").fadeIn();
				}
			);
	}
);
function anim_over()
{
	$(this)
		.css
		(
		 	{
				color:'#f51a3a',
				'font-weight':'bold'
			}
		);
	$(this)
		.parent()
		.addClass("sel");
}
function anim_out()
{
	$(this)
		.css
		(
		 	{
				color:'#000000',
				'font-weight':'normal'
			}
		);
	$(this)
		.parent()
		.removeClass("sel");
}
function menu_over()
{
	var find_id = $(this).attr("id");
	var width_id = $(this).width();
	var s= "29px";
	$(".fb_dp_container")
		.hide();
	$("."+find_id)
		.fadeIn();
	$(".menu")
		.removeClass("sel");
	$(this)
		.css
		(
		 	{
		 		width: width_id
			}
		)
		.addClass("sel");
		
}
function menu_out()
{
	$(".fb_dp_container")
		.hide();
	$(".menu")
		.removeClass("sel");
}
function menuh_over()
{
	//alert("a");
	$(".menuh")
		.addClass("sel");
}
function menuh_out()
{
	$(".menuh")
		.removeClass("sel");
}
function open_win(url_add)
{
   window.open(url_add,'welcome','width=850,height=750,menubar=yes,status=yes,location=yes,toolbar=no,scrollbars=yes');
}

