﻿// JScript File
function switchTab(tabName) {
                document.getElementById("home").className = "none";
                document.getElementById(tabName).className = "current";
            }
         
            
            window.onload = function() {
            
            
                var screenSize = screen.width;
	            if(screenSize < 1024) {
        	        
	                document.body.style.margin = 0;
        	        
	            }
            
                if(location.href.indexOf("flightinformation") != -1 ) {
                    switchTab('flight');
                }            
                
                if(location.href.indexOf("toandfromairport") != -1 ) {
                    switchTab('route');
                }            

                if(location.href.indexOf("yourtrip") != -1 ) {
                    switchTab('trip');
                }    
                
                          
                if(location.href.indexOf("airportguide") != -1 ) {
                    switchTab('airportGuide');
                }
                
                if(location.href.indexOf("destinations") != -1 ) {
                    switchTab('destGuide');
                }

                if(location.href.indexOf("visitorsguide") != -1 ) {
                    switchTab('visitGiude');
                }
                
                if(location.href.indexOf("utility") != -1 ) {
                    document.getElementById("home").className = "none";
                }      
                
            
            }

