$(document).ready(function(){
	//header
   	jQuery(".nav a").each(function(){
   	    jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("hotel") >= 0){
   	        	//var getNewLink = getLink.replace(jtbHttpURL,'');
				//$li.attr("href", jtbHttpURL + getNewLink);
				if(document.location.protocol == "https:" && getLink.indexOf("/hotel") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}else if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("/info") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}else if(getLink.indexOf("air") >= 0){
                if(document.location.protocol == "https:" && getLink.indexOf("/air") == 0){
                    $li.attr("href", jtbHttpURL + getLink);
                }
            }
   	    });
   	});
   	//footer
   	jQuery(".linkbox a").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("hotel") >= 0){
   	        	if(document.location.protocol == "https:" && getLink.indexOf("/hotel") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}else if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("/info") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}
   	    });
   	});
   	//sitemap
   	jQuery(".sitemap a").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("hotel") >= 0){
   	        	if(document.location.protocol == "https:" && getLink.indexOf("/hotel") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}else if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("/info") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}else if(getLink.indexOf("map") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("/map") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}
   	    });
   	});

   	//mapflash
   	jQuery(".mapflash area").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("../info") == 0){
					$li.attr("href", jtbHttpURL + getLink.substring(2, getLink.length));
				}
			}
   	    });
   	});

   	//map_tab
   	jQuery(".map_tab a").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("../info") == 0){
					$li.attr("href", jtbHttpURL + getLink.substring(2, getLink.length));
				}
			}
   	    });
   	});

   	//area_c 
   	jQuery(".area_c a").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("../info") == 0){
					$li.attr("href", jtbHttpURL + getLink.substring(2, getLink.length));
				}
			}
   	    });
   	});

   	//area_c1 
   	jQuery(".area_c1 a").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("info") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("../info") == 0){
					$li.attr("href", jtbHttpURL + getLink.substring(2, getLink.length));
				}
			}
   	    });
   	});

   	//china_navi 
   	jQuery(".china_navi a").each(function(){
   		jQuery(this).mousemove(function(){
   	        var $li = jQuery(this);
   	        var getLink = $li.attr("href");
   	        if(getLink.indexOf("hotel") >= 0){
				if(document.location.protocol == "https:" && getLink.indexOf("/hotel") == 0){
					$li.attr("href", jtbHttpURL + getLink);
				}
			}
   	    });
   	});

   	//nav1 
    jQuery(".nav1").mousemove(function(){
   	    var $li = jQuery(this);
   	    var getLink = $li.attr("href");
		if(document.location.protocol == "https:" && getLink.indexOf("http") < 0){
		  $li.attr("href", jtbHttpURL + "info/" + getLink);
		}
   	});

});