jQuery(function($) { if ($.cookie("login") == "1") { $.ajax({ url: "/include/login/logout_static.html", cache: false, success: function(html) { $("div#loginIncludeArea").append(html); $.ajax({ type: "GET", url: "/js/common/eposPoint.js", dataType: "script" }); $.ajax({ type: "GET", url: "/js/common/menuFunction.js", dataType: "script" }); } }); } else { $.ajax({ url: "/include/login/login_static.html", cache: false, success: function(html) { $("div#loginIncludeArea").append(html); $.ajax({ type: "GET", url: "/js/common/menuFunction.js", dataType: "script" }); } }); } });