if(jQuery().jquery === "1.7.1"){ // 1.7.1 = $ /* ------------------------------------------- * @init ------------------------------------------- */ $(window).load(function(){ if($('header').children().is('#wrapH1')){ var $cookie = $.cookie('login'); if($cookie === '1'){ $.ajax({ url : '/smp/include/login/login_static.html', dataType : 'html', success : function(html){ $('header').children().remove(); $('header').append(html); } }); } else { $.ajax({ url : '/smp/include/login/logout_static.html', dataType : 'html', success : function(html){ $('header').children().remove(); $('header').append(html); } }); } } else { return false; } }); } else { // not 1.7.1 = j$ /* ------------------------------------------- * @noConflict ------------------------------------------- */ jqNew = jQuery.noConflict(); if($ === undefined){ $ = jQuery; } j$ = jQuery || jqNew; /* ------------------------------------------- * @init ------------------------------------------- */ j$(window).load(function(){ if(j$('header').children().is('#wrapH1')){ var $cookie_J = j$.cookie('login'); if($cookie_J === '1'){ j$.ajax({ url : '/smp/include/login/login_static.html', dataType : 'html', success : function(html){ j$('header').children().remove(); j$('header').append(html); } }); } else { j$.ajax({ url : '/smp/include/login/logout_static.html', dataType : 'html', success : function(html){ j$('header').children().remove(); j$('header').append(html); } }); } } else { return false; } }); }