$(document).ready(function($){
	//set width of each video box (as we need it for horizontal scroller):
	$('.rgt_left_video_content ul.video').width(function(index,width){
		return $(this).children('li').outerWidth() * $(this).children('li').length;
	});
	
	//now define the parent of boxes as Scroller:
	$('.rgt_left_in_content, .rgt_left_video_content').jScrollPane({showArrows:true,scrollbarWidth:14, animateTo:false});
	$('.right_content .team').jScrollPane({showArrows:true,scrollbarWidth:14, animateTo:false});
	$('ul.home_sub_nav > li:first').addClass('first_li');
	
	/*if($('#map').length>0)
		showAddress();*/
	
	$('ul.side_bar li.select_bar').find('ul').show();		   
		   
	$('.news_rgt_left:last').addClass('bulding_news');
	
	$('ul.Technical_nav ul').each(function(){
		$(this).prev('a').attr('href', 'javascript:void(0);');
	});
	
	$('ul.Technical_nav li').find('a').click(function(){
		if(!$(this).parent('li').hasClass('color_show'))
			$(this).parent('li').addClass('color_show');
		else
			$(this).parent('li').removeClass('color_show');
		$(this).next('ul').stop(true, true).slideToggle();
	});
		
});

var gdir;

/*function showAddress(){
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"),
		{ size: new GSize(283,440) } );
		//map.setCenter(new GLatLng(37.4419, -122.1419), 13);
		geocoder1 = new GClientGeocoder();
	}
	address = "Pole Structural Engineers, Admel House, Wimbledon Village, London";
	if (geocoder1) {
		geocoder1.getLatLng(address, function(point) {
			if (!point) {
				alert(address + " not found");
				document.getElementById('map').innerHTML='';
			}else {
				map.setCenter(point, 12);
				var marker = new GMarker(point,'B');
				map.addOverlay(marker);
				//marker.openInfoWindowHtml(address);
			}
		});
	}
	var customUI = map.getDefaultUI();
	customUI.controls.scalecontrol = false;
	map.setUI(customUI);
}*/
