function initialize(){new Date($(this).attr("startTimer")),new Date($(this).attr("endTimer"));$.ajax({type:"GET",url:"",cache:!1,success:function(a,b,c){nowdate=new Date(c.getResponseHeader("Date")),xmlLoadMain()}})}function xmlLoadMain(){$.ajax({url:xmlPassIndex,type:"get",dataType:"xml",timeout:1e3,success:parse_xmlMain})}function parse_xmlMain(a,b){"success"==b&&(mainLength=$(a).find("main").length,$("#mainVisual").hide(),$(a).find("main").each(initMain))}function xmlLoadEvent(){$.ajax({url:xmlPassEvent,type:"get",dataType:"xml",timeout:1e3,success:parse_xmlEvent})}function parse_xmlEvent(a,b){"success"==b&&($(a).find("event").each(initEvent),$("#content .event li").each(function(){var a=85,b=$(this).find("dd").innerHeight(),c=(a-b)/2;$(this).find("dd").css("paddingTop",c+"px")}))}function xmlLoadPickup(){$.ajax({url:xmlPassPickup,type:"get",dataType:"xml",timeout:1e3,success:parse_xmlPickup})}function parse_xmlPickup(a,b){"success"==b&&$(a).find("pickup").each(initPickup)}function initMain(){var a=$(this).attr("img"),b=$(this).attr("url"),c=$(this).attr("pc"),d=new Date($(this).attr("startTimer")),e=new Date($(this).attr("endTimer"));d>nowdate?(mainNum++,mainLength==mainNum&&animationMain()):e>nowdate?($("#slide").append(""!=b?""!=c?'
':'
':'
'),mainNum++,mainLength==mainNum&&animationMain()):(mainNum++,mainLength==mainNum&&animationMain())}function animationMain(){$("#mainVisual").show();var a=["shop","pickup","event","recruit","leaflet"],b=window.location.href.split("/").reverse(),c=$("#pcSite a");""!=b[0]&&-1==b[0].indexOf("index")?"fulltime.php"==b[0]?$("#pcSite a").attr("href",c[0]+b[1]+"/"+b[0]):"parttime.php"==b[0]?$("#pcSite a").attr("href",c[0]+b[1]):-1!=a.indexOf(b[1])&&$("#pcSite a").attr("href",c[0]+b[1]+"/"+b[0]):-1!=a.indexOf(b[1])&&$("#pcSite").attr("href",c[0]+b[1]),$.switchPc2Sp({mode:"sp",anchorToPcInSp:"#anchorToPcInSp",anchorToPcInSp2:".anchorToPcInSp2"}),$("#slide").bxSlider({auto:!0,speed:300,pause:4e3,controls:!1})}function initEvent(){var a=$(this).attr("id"),b=$(this).find("date").text(),c=($(this).find("campaign").text(),$(this).find("title").text()),d=$(this).find("image").text(),e=($(this).find("comment").text(),$(this).find("CustomLayout").text()),f=new Date($(this).find("startTimer").text()),g=new Date($(this).find("endTimer").text());f>nowdate||g>nowdate&&$(".event ul").append(e?'":'")}function initPickup(){var a=$(this).attr("id"),b=($(this).find("date").text(),$(this).find("title").text()),c=$(this).find("image").text(),d=($(this).find("comment").text(),$(this).find("CustomLayout").text()),e=new Date($(this).find("startTimer").text()),f=new Date($(this).find("endTimer").text());e>nowdate||f>nowdate&&$(".pickup ul").append(d?'
':'
')}var mainNum=0,mainLength,xmlPassIndex="../xml/index.xml",xmlPassEvent="../xml/event.xml",xmlPassPickup="../xml/pickup.xml",nowdate;