$(function() {
        
        if($("#accordion").hasClass("has-index"))
        {
         $("#accordion").tabs("#accordion div.pane", {tabs: 'h2'}); 
        }
        else
        {
         $("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex: null});
        }// if
        
        // Old locations page results that filled the .location div
       // $(".webappsearchresults li a").click(function(){
//        	var currentLink = $(this).attr("href");
//        	$('.location').load(currentLink + ' .location');
//            return false;
//        }, function(){
//        	$('.location').focus();
//        });
        
    	var zoneName = ""
        var zoneName = $('li.zoneName a').html();
        if(zoneName == "Franchisees") {
        	$('ul#nav_1223689').prepend('<li class="dutchcomm-link"><a href="/DutchComm/">DutchComm</a></li>');
            $('body#dutchbros ul#navsub_1223694_678723').append('<li class="sub-link-8"><a href="/ShirtOfTheMonth">Monthly Shirt</a></li><li class="sub-link-9"><a href="/_catalog_119344/Stand_Marketing">Stand Marketing</a></li>');
            $('body#dutchcomm ul#navsub_1223694_678723').append('<li class="sub-link-8"><a href="/ShirtOfTheMonth">Monthly Shirt</a></li><li class="sub-link-9"><a href="/_catalog_119344/Stand_Marketing">Stand Marketing</a></li>');
            $('body#dutch-wear ul#navsub_1223694_678723').append('<li class="sub-link-8"><a href="/ShirtOfTheMonth">Monthly Shirt</a></li><li class="sub-link-9"><a href="/_catalog_119344/Stand_Marketing">Stand Marketing</a></li>');
            
            // resize to fit new buttons
            $('body#dutchbros ul.nav-sub').css('width', '794px');
        }
        
        var catalogueName = ""
        var catalogueName = $('div.breadcrumbs > a:first-child').html();
        if(catalogueName == "Dutch Wear") {
        	$('div.catalogueList').show();
        }
        
        $("#wizard ul.tabs").tabs("div.panes > div.pane"); 
        
        
        var webbAppNew = ""
        var webbAppNew = $('div#web-app-list').html();
        if(webbAppNew == "No items found.") {
        	$('div.first-time').append('Please fill this form out to create your first order.');
            $('div#new-item').show();
        }
        
        
});// JavaScript Document
