var fun_stuff={sub_categories:["Videos","Music","Screenshots","Wallpaper","Polls"],urls:["/FunStuff/VideoList.aspx","/FunStuff/MusicList.aspx","/FunStuff/Screenshots.aspx","/FunStuff/WallPaper.aspx","/FunStuff/Poll.aspx"],track:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Heading');",tracks:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Composer');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.StyleStudio');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Videos');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Music');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Screenshots');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Wallpaper');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.FunStuff.Polls');".split("{")},
site_map=[{main_category:"News",sub_categories:["Notices","Events","Updates","Maintenance"],urls:["/News/List.aspx?boardNo=101&amp;pageIndex=1","/News/List.aspx?boardNo=200&amp;pageIndex=1","/News/List.aspx?boardNo=102&amp;pageIndex=1","/News/List.aspx?boardNo=103&amp;pageIndex=1"],track:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.News.Heading');",tracks:["nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.News.Notices');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.News.Events');",
"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.News.Updates');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.News.Maintenance');"]},{main_category:"Guide",sub_categories:"Game Intro,Getting Started,Game Info,Beginner's Guide,Lorna & Pan,Housing Guide,Strategy Guide,Strategy FAQ".split(","),urls:"/Guide/Intro.aspx{/Guide/GettingStarted.aspx{/Guide/GameInfo.aspx{javascript:void window.open('/Guide/Beginner.aspx','popup','width=768,height=600');{/Guide/LornaPan.aspx{javascript:void window.open('/Guide/Housing/housingC2.html','popup','width=1000,height=700');{/Guide/StrategyGuide.aspx?boardNo=700&pageIndex=1{/Guide/StrategyFAQ.aspx".split("{"),
track:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.Heading');",tracks:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.GameIntro');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.GettingStarted');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.GameInfo');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.BeginnersGuide');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.LornaAndPan');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.HousingGuide');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.StrategyGuide');{nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Guide.StrategyFAQ');".split("{")},
{main_category:"Shop",sub_categories:["Web Shop","Cash Shop Guide","NX Guide","Review Purchases"],urls:["/Shop/","/Shop/Guide_Premium.aspx","javascript:void window.open('http://www.nexon.net/nx/guide','popup');","javascript:void window.open('http://www.nexon.net/nx/review-purchases','popup');"],track:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.WebShop.Heading');",tracks:["nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.WebShop.WebShop');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.WebShop.CashShopGuide');",
"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.WebShop.NxGuide');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.WebShop.ReviewPurchases');"]},{main_category:"Community",sub_categories:["Forums","Guild","Erinn Walker","Regulation Policy"],urls:["/Community/Default.aspx","/Community/GuildCommunity.aspx","javascript:void window.open('/ErinnWalker/08/index.htm','popup','width=1000,height=700');","/Forums/Regulations.aspx"],track:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Community.Heading');",
tracks:["nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Community.MabinogiForums');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Community.Guild');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Community.ErinnWalker');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.Community.RegulationPolicy');"]},{main_category:"Support",sub_categories:["Client &amp; <br/> Driver Downloads","FAQ","User Abuse",
"Security","Customer Support"],urls:["/Support/client.aspx","/Support/FAQList.aspx?boardNo=410&amp;pageIndex=1","/Support/UserAbuse.aspx","/Support/Security.aspx","javascript:void window.open('http://support.nexon.net','popup');"],track:"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.support.Heading');",tracks:["nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.support.ClientAndDriverDownloads');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.support.FAQ');",
"nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.support.UserAbuse');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.support.Security');","nexon.ga.recordOutboundLink(this, event, 'Navigation_Tracking', 'MB_Menu.support.CustomerSupport');"]}],formatImageName=function(a){return a.toLowerCase().replace(/\s|[-]/g,"_").replace(/[^\w_]/g,"")};function getCookie(a){return null!==$.cookie(a)?$.cookie(a):""}
function getDownloadLinks(a){$.ajaxSetup({cache:!1});return $.getScript("http://nxcache.nexon.net/mabinogi/web/js/download_data.js",function(){"undefined"==typeof dl&&(dl={pandoLink:"#",manualLink:"#",npcMusic:"#",noMusic:"#",patch:"#"});a.apply(dl)})}function commaFormat(a){var b=a.length;if(4>b)return a;for(var d=b%3,b=Math.floor((b-1)/3),a=a.split(""),c=0;c<b;c++)0==d&&0==c?a.splice(0,0," "):a.splice(3*c+d+c,0,",");return a=a.join("")}
function startGameCheck(){$.getScript("http://nxcache.nexon.net/publisher/mabinogi/publisher_startGame.js",function(){if("undefined"==typeof Data_startGame)return!1;var a=Data_startGame;if("3"==a[0].content_category||"1"==a[0].content_category&&"1"==a[0].progress_type)$("#m-ticker").text(a[0].content_title).removeClass("dn"),$("#m-play").addClass("maintenance").unbind("click").css("cursor","default")})}
function gaTrackEvent(a,b){_gaq="undefined"!=typeof _gaq?_gaq:[];_gaq.push(["cdt._trackEvent",a,b]);_gaq.push(["sdt._trackEvent",a,b])}function NxLaunchGame(){gaTrackEvent("MBWebLaunch","StartGame");nexon.play("33563141")}
function NxLaunchGameMain(){$.getScript("http://nxcache.nexon.net/publisher/mabinogi/publisher_startGame.js",function(){if("undefined"==typeof Data_startGame)return!1;var a=Data_startGame;switch(a[0].content_category){case "1":"1"!=a[0].progress_type?NxLaunchGame():alert(a[0].content_title);break;case "2":NxLaunchGame();break;case "3":alert(a[0].content_title)}})}
function IsLogin(){var a=!1;$.ajax({async:!1,type:"POST",url:"/WebService/Billing.asmx/CheckAuth",dateType:"json",contentType:"application/json; charset=utf-8",success:function(b){b="string"==typeof b.d?eval("("+b.d+")"):b.d;switch(b.response_code){case 0:a=b.data.IsAuthenticated;break;default:alert(b.response_message)}}});return a}
function globalLoad(){$("#popuptrigger").popup({height:256,width:455,top:100,contents:redir});startGameCheck();$("#nav").navBuilder(site_map);$("#fun").navBuilder(fun_stuff,{listID:"fun-links",buildMenu:!1});$("#fun-exp").funexpand({oHeight:158,eHeight:44,timeout:200,expandThese:"#fun"});$("#main, #drop").hoverdropdown({oHeight:0,eHeight:188,expandThese:"#drop"});$("#drop > li").pseudohover({hover:"#drop > li",pseudo:"#main li",className:"active"});$("#backtotop").backtotop({tophide:400,speed:500,
easing:"easeOut",offset:100});$("#m-play a").bind("click",function(a){a.preventDefault();NxLaunchGameMain()});$("#m-nxlinks-cards").flash({swf:"http://nxcache.nexon.net/mabinogi/swf/banner_nx_card.swf",width:278,height:59,wmode:"transparent",allowScriptAccess:"always"});$("#m-nxlinks-games").flash({swf:"http://nxcache.nexon.net/mabinogi/swf/banner_nx_games.swf",width:278,height:59,wmode:"transparent",allowScriptAccess:"always"});$("#legal .legal-popup").click(function(a){a.preventDefault();window.open($(this).attr("href"),
"legal","width=600, height=400, resizable=no, scrollbars=yes")||alert("Your browser's pop-up blocker is currently enabled.  If you wish to view the legal information, please disable the pop-up blocker temporarily and try again.  Thank you.")})};

