
function RedirectToDestinationURL(requestCtl)
{

    var indexValue = requestCtl.selectedIndex;
    var redirectURL = requestCtl.options[indexValue].value;

    if(redirectURL != "#")
            window.location.href = redirectURL;

}


function changeimagesol(d)
	{
	  var img_sol_arr = new Array("",'forhome.png','small.png','enterprise.png','government.png','Defense.jpg','service.png','global_services.JPG');

	  imagesr = '/_layouts/HughesCorporateSiteBranding/Images/'+img_sol_arr[d];
	document.getElementById('sol_image').src= imagesr;

	}

	function changeimagetech(d)
	{
	  var img_tech_arr = new Array("",'BB_Sat_Systems.jpg','MobileSatTerminals.jpg','SPWY.jpg','Jupiter.jpg','portal-screen-3.png','lobby_weather.JPG','Content-delivery-software.jpg','BB-WirelessAccess.jpg','MobileSatSystems.jpg','Publications.jpg');

	  imagesr = '/_layouts/HughesCorporateSiteBranding/Images/'+img_tech_arr[d];

	  document.getElementById('tech_image').src= imagesr;

	}

	function changeimagecomp(d)
	{
	var img_comp_arr = new Array("",'aboutus.png','investor.png','news.png','careers.png','reseller.png','supplier.png','tech_training_services.jpg');

	imagesr = '/_layouts/HughesCorporateSiteBranding/Images/'+img_comp_arr[d];

	document.getElementById('comp_image').src= imagesr;

	}
	
	$(document).ready(function(){
		$('li.headlink').hover(
		function() { $('#hughes_hughes_outerdiv1').css('display', 'block');$('#solut').css('color', '#001F5C');$('#solut').css('background', 'url(/_Layouts/HughesCorporateSiteBranding/Images/top_hover.png) no-repeat'); $('#techpipe').css('color', '#FFFFFF');},
		function() { $('#hughes_hughes_outerdiv1').css('display', 'none'); $('#solut').css('color', '#7a7a7a');$('#solut').css('background', 'none'); $('#techpipe').css('color', '#DEDEDE');}
			);

					$('li.headlink1').hover(
		function() { $('#hughes_outerdiv2').css('display', 'block');$('#tech1').css('color', '#001F5C');$('#tech').css('background', 'url(/_Layouts/HughesCorporateSiteBranding/Images/top_hover.png) no-repeat') ; $('#techpipe').css('color', '#FFFFFF');$('#comppipe').css('color', '#FFFFFF'); },
		function() { $('#hughes_outerdiv2').css('display', 'none'); $('#tech1').css('color', '#7a7a7a');$('#tech').css('background', 'none');  $('#techpipe').css('color', '#DEDEDE');$('#comppipe').css('color', '#DEDEDE');}
			);
							$('li.headlink2').hover(
		function() { $('#hughes_outerdiv3').css('display', 'block');$('#comp').css('color', '#001F5C');$('#comp').css('background', 'url(/_Layouts/HughesCorporateSiteBranding/Images/top_hover.png) no-repeat');  $('#comppipe').css('color', '#FFFFFF'); },
		function() { $('#hughes_outerdiv3').css('display', 'none'); $('#comp').css('color', '#7a7a7a');$('#comp').css('background', 'none'); $('#comppipe').css('color', '#DEDEDE');}
			);

							$('tr.headsublink').hover(
		function() { $('#hughes_headsublink').css('display', 'block');$('#sub').css('color', '#485ba1');$('#sub').css('background', '#FFF');  $('#comppipe').css('color', '#FFFFFF'); },
		function() { $('#hughes_headsublink').css('display', 'none'); $('#sub').css('color', '#485ba1');$('#sub').css('background', 'none'); $('#comppipe').css('color', '#FFFFFF');}
			);

	});
	    function HideBreadCrumbDiv(status)
        {
                if(status == 'True')
                {
                    document.getElementById('ctl00_PlaceHolderTitleBreadcrumb_siteMapPath').style.display = "none";
                   document.getElementById('RightContainterDiv').style.width=920;
                }
                else
                {

                    document.getElementById('ctl00_PlaceHolderTitleBreadcrumb_siteMapPath').style.display = "block";
                    
                }
        }
        function HideBlueBarDiv(status)
        {
                if(status == 'True')
                {
                    document.getElementById('hughes_management').style.display = "none";
                   
                }
                else
                {

                    document.getElementById('hughes_management').style.display = "block";
                    
                }
        }
        function HideTreeViewDiv(status)
        {
       
                if(status == 'True')
                { 
                    document.getElementById('LeftContainterTreeViewDiv').style.display = "none";                    
                }
                else
                {
                    document.getElementById('LeftContainterTreeViewDiv').style.display = "block";
                }
        }
        

/* MODAL POPUP WINDOW CODE : START */
 function playthevideo(videoFile){
 
	emailwindow=dhtmlmodal.open('EmailBox', 'iframe', '/HughesTVPlayer/HughesTVPlayer.aspx?videoFile=' + videoFile, 'Hughes TV Player', 'width=592px,height=340px,center=1,resize=0,scrolling=1')

emailwindow.onclose=function(){ //Define custom code to run when window is closed
	var theform=this.contentDoc.forms[0] //Access first form inside iframe just for your reference
	}
}
/* MODAL POPUP WINDOW CODE : END */

function OpenNewWindow(newWindow)
{
    window.open (newWindow,"mywindow"); 
}


