//strictly for 3rd Party Page Call only!. var canUseCSSTransitions = Modernizr.csstransitions; var menu_items; var menu_site_id = "1"; jQuery(document).ready(function() { if( jQuery ) { var $ = jQuery; } menu_items = json_file.razer_menu; if( canUseCSSTransitions ) {} else { $("div#community-sub-menu div#community-main-section").css( {"bottom": "200"} ); $("div#sub-menu div#main-section").css( {"bottom": "200"} ); clearIe9Menu(); } clearMenuToggle(); $(function(){ // Bind an event to window.onhashchange that, when the hash changes, gets the // hash and adds the class "selected" to any matching nav link. $(window).hashchange( function(){ var hash = location.hash; $( "div.specifics ul li" + hash + "-item").click(); }) // Since the event is only triggered when the hash changes, we need to trigger // the event now, to handle the hash the page may have loaded with. $(window).hashchange(); }); function clearMenuToggle() { $("a.product-menu-toggle").removeClass("text-selected"); $("a.community-menu-toggle").removeClass("text-selected"); } function clearIe9Menu() { $("div#sub-menu").animate({ "height" : '0px', "opacity" : 1, "z-index" : 1 }, 200, function() { $("div#headerContainer div#sub-menu div#mini-section").css({"opacity":"0", "z-index":"-999"}); $("div#headerContainer div#sub-menu div#main-section").css({"opacity":"0", "z-index":"-999"}); }); $("div#community-sub-menu").animate({ "height" : '0px', "opacity" : 1, "z-index" : 1 }, 200, function() { $("div#headerContainer div#community-sub-menu div#community-main-section").css({"opacity":"0", "z-index":"-999"}); }); $("div#sub-menu").removeClass("show"); $("div#community-sub-menu").removeClass("show"); } $('#sub-menu img').preload({ find: '.png', replace: '-over.png' }); $('#community-sub-menu img').preload({ find: '.png', replace: '-over.png' }); $('html').click(function() { if( canUseCSSTransitions ) { $("div#sub-menu").removeClass("show"); $("div#community-sub-menu").removeClass("show"); } else {clearIe9Menu();} clearMenuToggle(); }); $('#headerContainer').click(function(event){event.stopPropagation();}); //Product Menu $( "a.razer-menu-toggle" ).click( function () { var main_link = $(this).attr("href"); var sub_items; var me = $(this); $("div#sub-menu").removeClass("show").delay(200).promise().done( function() { $("div#sub-menu").addClass("show").promise().done( function() { $("div#sub-menu").removeClass("sub-section-bg"); $("a.product-menu-toggle").removeClass("text-selected"); $("a.community-menu-toggle").removeClass("text-selected"); if(me.hasClass('product-menu-toggle')){$("a.product-menu-toggle").addClass("text-selected");} $("div#community-sub-menu").removeClass("show"); if(me.hasClass('community-menu-toggle')){$("a.community-menu-toggle").addClass("text-selected");} if( main_link == "#products") { sub_items = menu_items[0].sub_items; } else { sub_items = menu_items[1].sub_items; } var items = []; var mini_items = []; var title; $( "#main-section ul.one" ).children().remove(); $( "#mini-section ul" ).children().remove(); var holder = ""; $.each( sub_items, function(i, item) { main_image_url = "http://assets.razerzone.com/eeimages/assets/images/site-menu/main/"; image_url = "http://assets.razerzone.com/eeimages/assets/images/site-menu/"; image = ""; title = "" + item.title + ""; if(item.title =="Razer ID" || item.title ==" Razer Social" || item.title =="Insider Rewards" || item.title =="Team Razer" || item.title =="Razer Insights" || item.title =="Downloads" || item.title =="Razer Arena" ) { items.push('
  • ' + image + title + '
  • '); } else items.push('
  • ' + image + title + '
  • '); mini_items.push( '
  • ' + item.title + '
  • ' ); holder = holder + "
    "; //end_group }); // close each category //console.log( holder ); $( "#sub-sections").html( holder ); $( "#main-section ul.one" ).append( items.join('') ); $( "#mini-section ul" ).append( mini_items.join('') ); }); }); $( "div#sub-menu div#main-section" ).removeClass("hide"); $( "div#sub-menu div#mini-section" ).removeClass( "show"); $( "div#sub-sections ul.show" ).removeClass("show"); }); var base_url = "http://www.razerzone.com"; //toggle between sub categories $( "div#sub-menu #main-section" ).on( 'click', "ul li a", function () { var section = $(this).attr("class"); //special cases if( section == "systems" && menu_site_id == "1" ) { window.location = base_url + "/gaming-systems"; } else if( section == "systems" && menu_site_id == "6" ) { window.location = base_url + "/gb-en/gaming-systems"; } else if( section == "systems" && menu_site_id == "7" ) { window.location = base_url + "/eu-en/gaming-systems"; } else if( section == "systems" && menu_site_id == "9" ) { window.location = base_url + "/ca-en/gaming-systems"; } else if( section == "gaming-systems" && menu_site_id == "10" ) { window.location = base_url + "/hk-zh/gaming-systems"; } else if( section == "gaming-systems" && menu_site_id == "15" ) { window.location = base_url + "/au-en/gaming-systems"; } else if( section == "gaming-systems" && menu_site_id == "16" ) { window.location = base_url + "/sg-en/gaming-systems"; } else if( section == "gaming-systems" && menu_site_id == "20" ) { window.location = base_url + "/tw-zh/gaming-systems"; } else if( section == "systems" && menu_site_id == "19" ) { window.location = base_url + "/br-pt/gaming-systems"; } else if( section == "gaming-gear-1" && menu_site_id == "1") { window.location = base_url + "/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "14") { window.location = base_url + "/ap-en/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "15") { window.location = base_url + "/au-en/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "19") { window.location = base_url + "/br-pt/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "9") { window.location = base_url + "/ca-en/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "7") { window.location = base_url + "/eu-en/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "5") { window.location = base_url + "/fr-fr/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "2") { window.location = base_url + "/de-de/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "6") { window.location = base_url + "/gb-en/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "10") { window.location = base_url + "/hk-zh/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "3") { window.location = base_url + "/it-it/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "13") { window.location = base_url + "/jp-jp/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "16") { window.location = base_url + "/sg-en/gaming-accessories/gear"; } else if( section == "gaming-gear-1" && menu_site_id == "4") { window.location = base_url + "/es-es/gaming-accessories/gear"; } else if( section == "software-temp" && menu_site_id == "1" && global_last_segment !== "") { window.location = base_url + "/software"; } else if( section == "software-temp" && menu_site_id == "14" && global_last_segment !== "") { window.location = base_url + "/ap-en/software"; } else if( section == "software-temp" && menu_site_id == "15" && global_last_segment !== "") { window.location = base_url + "/au-en/software"; } else if( section == "software-temp" && menu_site_id == "9" && global_last_segment !== "") { window.location = base_url + "/ca-en/software"; } else if( section == "software-temp" && menu_site_id == "6" && global_last_segment !== "") { window.location = base_url + "/gb-en/software"; } else if( section == "software-temp" && menu_site_id == "7" && global_last_segment !== "") { window.location = base_url + "/eu-en/software"; } else if( section == "software-temp" && menu_site_id == "16" && global_last_segment !== "") { window.location = base_url + "/sg-en/software"; } else if( section == "arena") { window.location = base_url + "/arena"; } else if ( section == 'insights') { window.location = 'http://insights.razerzone.com'; } else if( section == "razer-id") { window.location = base_url + "/razer-id"; } else if( section == "insider-rewards") { window.location = base_url + "/be-rewarded-on-razer-insider"; } else if( section == "wearables" && (menu_site_id == "200"||menu_site_id == "500" )) { if(menu_site_id == "100"){ window.location = base_url + "/de-de/nabu"; } else if(menu_site_id == "100"){ window.location = base_url + "/fr-fr/nabu"; } else{ window.location = base_url + "/nabu"; } } else { if( canUseCSSTransitions ) { $( "div#sub-menu div#main-section" ).addClass( "hide" ).promise().done(function() { $( "div#sub-menu div#mini-section" ).addClass( "show" ).promise().done( function() { $("div#sub-menu").addClass("sub-section-bg"); toggle_section( section ); }); }); } else { //hide main-section div $("div#main-section").animate({ "opacity" : 0, "top" : '-180px', "bottom" : "200px", "z-index" : -990 }, { "duration" : 150 }); //$("div#sub-menu div#main-section").css( {"bottom": "200px" } ); //load mini sections $( "div#sub-menu div#mini-section" ).animate({ "opacity" : 1, "top" : '1px', "z-index" : 1 }, { "duration" : 200 }); toggle_section( section ); $("div#sub-menu").addClass("show"); } } }); //click between mini menus $( "div#sub-menu div#mini-section" ).on( "click", "a" ,function () { var elm_class = $(this).attr("class"); //special case if( elm_class == "systems" && menu_site_id == "1" ) { window.location = base_url + "/gaming-systems"; } else if( elm_class == "systems" && menu_site_id == "9" ) { window.location = base_url + "/ca-en/gaming-systems"; } else if( elm_class == "gaming-systems" && menu_site_id == "10" ) { window.location = base_url + "/hk-zh/gaming-systems"; } else if( elm_class == "gaming-systems" && menu_site_id == "15" ) { window.location = base_url + "/au-en/gaming-systems"; } else if( elm_class == "gaming-systems" && menu_site_id == "16" ) { window.location = base_url + "/sg-en/gaming-systems"; } else if( elm_class == "gaming-systems" && menu_site_id == "20" ) { window.location = base_url + "/tw-zh/gaming-systems"; } else if( elm_class == "systems" && menu_site_id == "19" ) { window.location = base_url + "/br-pt/gaming-systems"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "1") { window.location = base_url + "/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "14") { window.location = base_url + "/ap-en/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "15") { window.location = base_url + "/au-en/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "19") { window.location = base_url + "/br-pt/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "9") { window.location = base_url + "/ca-en/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "7") { window.location = base_url + "/eu-en/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "5") { window.location = base_url + "/fr-fr/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "2") { window.location = base_url + "/de-de/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "6") { window.location = base_url + "/gb-en/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "10") { window.location = base_url + "/hk-zh/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "3") { window.location = base_url + "/it-it/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "13") { window.location = base_url + "/jp-jp/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "16") { window.location = base_url + "/sg-en/gaming-accessories/gear"; } else if( elm_class == "gaming-gear-1" && menu_site_id == "4") { window.location = base_url + "/es-es/gaming-accessories/gear"; } else if( elm_class == "software" && menu_site_id == "1" && global_last_segment !== "") { window.location = base_url + "/software"; } else if( elm_class == "software" && menu_site_id == "14" && global_last_segment !== "") { window.location = base_url + "/ap-en/software"; } else if( elm_class == "software" && menu_site_id == "15" && global_last_segment !== "") { window.location = base_url + "/au-en/software"; } else if( elm_class == "software" && menu_site_id == "9" && global_last_segment !== "") { window.location = base_url + "/ca-en/software"; } else if( elm_class == "software" && menu_site_id == "6" && global_last_segment !== "") { window.location = base_url + "/gb-en/software"; } else if( elm_class == "software" && menu_site_id == "7" && global_last_segment !== "") { window.location = base_url + "/eu-en/software"; } else if( elm_class == "software" && menu_site_id == "16" && global_last_segment !== "") { window.location = base_url + "/sg-en/software"; } else if( elm_class == "arena") { window.location = base_url + "/arena"; } else if ( elm_class == 'insights') { window.location = "http://insights.razerzone.com"; } else if( elm_class == "razer-id") { window.location = base_url + "/razer-id"; } else if( elm_class == "insider-rewards") { window.location = base_url + "/be-rewarded-on-razer-insider"; } else if( elm_class == "wearables" && (menu_site_id == "200"||menu_site_id == "500" )) { if(menu_site_id == "200"){ window.location = base_url + "/de-de/nabu"; } else if(menu_site_id == "500"){ window.location = base_url + "/fr-fr/nabu"; } else{ window.location = base_url + "/nabu"; } } else { toggle_section( $(this).attr("class") ); } }); var original; $(document).on('mouseenter', 'div#sub-menu div#main-section ul li a', function() { var source = $(this).children("img").attr("src"); var file = new File( source ); original = file ; $(this).children("img").attr("src", file.path + file.name + "-over." + file.ext ); }).on('mouseleave', 'div#sub-menu div#main-section ul li a', function() { $(this).children("img").attr("src", original.path + original.name + "." + original.ext ); }); $(document).on('mouseenter', 'div#sub-sections div ul a img', function() { var file = new File( $(this).attr("src") ); original = file ; $(this).attr("src", file.path + file.name + "-over." + file.ext ); }).on('mouseleave', 'div#sub-sections div ul a img', function() { $(this).attr("src", original.path + original.name + "." + original.ext ); }); var File = function(fname){ if (typeof fname === "undefined") { console.log("You need to pass a filename or path to file"); return false; } // Correct slashes //fname = fname.replace("\\", "/", fname); this.org = fname; if (fname.lastIndexOf("/")) { this.path = fname.substr(0,fname.lastIndexOf("/")+1); fname = fname.substr(fname.lastIndexOf("/")+1); } this.ext = fname.substr(fname.lastIndexOf(".")+1); this.name = fname.substr(0, fname.lastIndexOf(".")); } function toggle_section( elm ) { $( "div#sub-sections ul.show" ).fadeIn(200).removeClass("show"); if( canUseCSSTransitions ) { $( "div#sub-sections ul" ).promise().done( function() { $( "div#sub-sections ul." + elm ).fadeIn(200).addClass("show"); } ); } else { $( "div#sub-sections ul" ).animate({ "opacity" : 1 }, 200, function(){ $( "div#sub-sections ul." + elm ).fadeIn(100).addClass("show"); }); } /* take's care of the mini-selection styling */ $( "div#mini-section ul li").removeClass("selected"); $( "div#mini-section ul li span a." + elm ).parent().parent().addClass("selected"); } }); var json_file = { "razer_menu": [ {"title":"Products", "id":"products", "sub_items":[ { "id": "systems", "title": "Systems", "image": "systems.png", "items":[ { "id": "Razer Blade Pro", "title": "Razer Blade Pro", "image": "blade_pro_v2.png", "url": "http://www.razerzone.com/gaming-systems/razer-blade-pro" } , { "id": "Razer Blade", "title": "Razer Blade", "image": "blade_v3.png", "url": "http://www.razerzone.com/gaming-systems/razer-blade" } , { "id": "Razer Edge Pro", "title": "Razer Edge Pro", "image": "razer-edge-pro.png", "url": "http://www.razerzone.com/gaming-systems/razer-edge-pro" } , { "id": "Razer Edge", "title": "Razer Edge", "image": "razer-edge.png", "url": "http://www.razerzone.com/gaming-systems/razer-edge" } , { "id": "Concept: Switch Blade", "title": "Concept: Switch Blade", "image": "switchblade.png", "url": "http://www.razerzone.com/switchblade" } ]} , { "id": "peripherals", "title": "Peripherals", "image": "peripherals.png", "items":[ { "id": "Fan Exclusive", "title": "Fan Exclusive", "image": ".png", "url": "http://www.razerzone.com" } , { "id": "Razer Chroma", "title": "Razer Chroma", "image": ".png", "url": "http://www.razerzone.com" } , { "id": "Weekly Highlights", "title": "Weekly Highlights", "image": ".png", "url": "http://www.razerzone.com" } , { "id": "Special Promotion", "title": "Special Promotion", "image": ".png", "url": "http://www.razerzone.comspecial-promotion" } , { "id": "Mice", "title": "Mice", "image": "mice.png", "url": "http://www.razerzone.com/gaming-mice" } , { "id": "Keyboards & Keypads", "title": "Keyboards & Keypads", "image": "keyboardschroma.png", "url": "http://www.razerzone.com/gaming-keyboards-keypads" } , { "id": "Audio", "title": "Audio", "image": "audio.png", "url": "http://www.razerzone.com/gaming-audio" } , { "id": "Controllers", "title": "Controllers", "image": "controllerwildcat.png", "url": "http://www.razerzone.com/gaming-controllers" } , { "id": "Broadcaster", "title": "Broadcaster", "image": "boardcaster_v1.png", "url": "http://www.razerzone.com/gaming-broadcaster" } , { "id": "Licensed & Team", "title": "Licensed & Team", "image": "licensed-and-team.png", "url": "http://www.razerzone.com/licensed-and-team-peripherals" } , { "id": "Mouse Mats", "title": "Mouse Mats", "image": "mousemats.png", "url": "http://www.razerzone.com/gaming-mouse-mats" } , { "id": "VR", "title": "VR", "image": ".png", "url": "http://www.razerzone.com" } ]} , { "id": "wearables", "title": "Wearables", "image": "wearables.png", "items":[ { "id": "Product line", "title": "Product line", "image": ".png", "url": "http://www.razerzone.com" } , { "id": "Design specific", "title": "Design specific", "image": ".png", "url": "http://www.razerzone.com" } , { "id": "OSVR", "title": "OSVR", "image": "osvr.png", "url": "http://www.razerzone.com/osvr" } , { "id": "Razer Nabu Watch", "title": "Razer Nabu Watch", "image": "nabu-watch-sprite.png", "url": "http://www.razerzone.com/nabu-watch" } , { "id": "Razer Nabu", "title": "Razer Nabu", "image": "nabu2015.png", "url": "http://www.razerzone.com/nabu" } , { "id": "Razer Nabu X", "title": "Razer Nabu X", "image": "nabux-1.png", "url": "http://www.razerzone.com/nabu-x" } ]} , { "id": "software", "title": "Software", "image": "software.png", "items":[ { "id": "Arena", "title": "Arena", "image": "arena.png", "url": "http://www.razerzone.com/arena" } , { "id": "Cortex", "title": "Cortex", "image": "cortex.png", "url": "http://www.razerzone.com/cortex" } , { "id": "Comms", "title": "Comms", "image": "comms1.5-sprite.png", "url": "http://www.razerzone.com/comms" } , { "id": "Synapse", "title": "Synapse", "image": "synapse.png", "url": "http://www.razerzone.com/synapse2" } , { "id": "Surround", "title": "Surround", "image": "surround-sprite.png", "url": "http://www.razerzone.com/surround" } , { "id": "Switchblade UI", "title": "Switchblade UI", "image": "sbui.png", "url": "http://www.razerzone.com/switchblade-ui" } ]} , { "id": "gaming-gear", "title": "Gear", "image": "gear.png", "items":[ { "id":"T-shirts", "title":"T-shirts", "image":"nav-icon_tshirts.png", "url": "http://www.razerzone.com/gaming-accessories/gear#tshirts" }, { "id":"Jackets", "title":"Jackets", "image":"nav-icon_jackets.png", "url": "http://www.razerzone.com/gaming-accessories/gear#jackets" }, { "id":"Hoodies", "title":"Hoodies", "image":"nav-icon_hoodies.png", "url": "http://www.razerzone.com/gaming-accessories/gear#hoodies" }, { "id":"Caps & Accessories", "title":"Caps & Accessories", "image":"nav-icon_caps.png", "url": "http://www.razerzone.com/gaming-accessories/gear#headgear" }, { "id":"Bags & Cases", "title":"Bags & Cases", "image":"bags.png", "url": "http://www.razerzone.com/gaming-accessories/gear#bagsandcases" }, { "id":"Gaming Eyewear", "title":"Gaming Eyewear", "image":"gaming-eyewear.png", "url": "http://www.razerzone.com/razer-x-gunnar" } ] }, { "id": "gaming-accessories", "title": "Accessories", "image": "accessories.png", "items":[ { "id": "Cord Management", "title": "Cord Management", "image": "bungee.png", "url": "http://www.razerzone.com/gaming-accessories#cord-management" } , { "id": "Power Adapters", "title": "Power Adapters", "image": "adapter.png", "url": "http://www.razerzone.com/gaming-accessories#power-adapters" } , { "id": "Replacement Parts", "title": "Replacement Parts", "image": "mouse-feet.png", "url": "http://www.razerzone.com/gaming-accessories#replacement-parts" } , { "id": "System Accessories", "title": "System Accessories", "image": "blade-acc_135x65.png", "url": "http://www.razerzone.com/gaming-accessories#blade-accessories" } ]} ], "variable": { "attr1":"String", "attr2":12345 } }, { "title":"Community", "id":"community", "sub_items":[ { "id": "razer-id", "title": "Razer ID", "image": "razer-id-5.png", "items":[ {} ] }, { "id": "cult", "title": " Razer Social", "image": "cult.png", "items":[ { "id": "insider-razer", "title": "Razer Insider", "image": "nav-icon-insider_135x65.png", "url": "http://insider.razerzone.com" },{ "id": "fb-razer", "title": "Razer", "image": "nav-icon-facebook_135x65.png", "url": "https://www.facebook.com/razer" },{ "id": "twitter-razer", "title": "@Razer", "image": "nav-icon-twitter_135x65.png", "url": "https://twitter.com/razer" },{ "id": "youtube-cultofrazer", "title": "Razer Social", "image": "nav-icon-youtube_135x65.png", "url": "http://www.youtube.com/cultofrazer" },{ "id": "fb-minliangtan", "title": "CEO, Min-Liang Tan", "image": "nav-icon-facebook_135x65.png", "url": "https://www.facebook.com/minliangtan" },{ "id": "twitter-minliangtan", "title": "@minliangtan", "image": "nav-icon-twitter_135x65.png", "url": "https://www.twitter.com/minliangtan" }] }, { "id": "insider-rewards", "title": "Insider Rewards", "image": "insider_rewards.png", "items":[ {} ] }, { "id": "team", "title": "Team Razer", "image": "team.png", "items":[{ "id": "team-razer", "title": "Team Razer", "image": "nav-icon-team_135x65.png", "url": "http://www.razerzone.com/team" },{ "id": "facebook-teamrazer", "title": "Team Razer", "image": "nav-icon-facebook_135x65.png", "url": "https://www.facebook.com/teamrazer" },{ "id": "twitter-teamrazer", "title": "@TeamRazer", "image": "nav-icon-twitter_135x65.png", "url": "https://www.twitter.com/teamrazer" },{ "id": "Team Razer", "title": "Team Razer", "image": "nav-icon-twitchtv_135x65.png", "url": "http://www.twitch.tv/razer_esports" }] }, { "id": "insights", "title": "Razer Insights", "image": "insight2.png", "items":[ {} ] }, { "id": "downloads", "title": "Downloads", "image": "downloads.png", "items":[{ "id": "software-download", "title": "Software", "image": "software_download_icon1.png", "url": "http://www.razerzone.com/downloads#software" },{ "id": "desktop-wallpapers", "title": "Desktop Wallpapers", "image": "nav-icon-desktopwallpapers_135x65.png", "url": "http://www.razerzone.com/downloads#desktop-wallpapers" },{ "id": "mobile-wallpapers", "title": "Mobile Wallpapers", "image": "nav-icon-mobilewallpapers_135x65.png", "url": "http://www.razerzone.com/downloads#mobile-wallpapers" },{ "title": "Screensavers", "image": "nav-icon-screensavers_135x65.png", "url": "http://www.razerzone.com/downloads#screensavers" },{ "id": "videos", "title": "Videos", "image": "nav-icon-videos_135x65.png", "url": "http://www.razerzone.com/downloads#videos" }] }, { "id": "arena", "title": "Razer Arena", "image": "arena3.png", "items":[{ "id": "software-download", "title": "Razer Arena", "image": "arena.png", "url": "http://www.razerzone.com/arena" }] } ], "variable": { "attr1":"String", "attr2":12345 } } ]}