function openPopUp(popurl, mywidth, myheight) { var winpops = window.open(popurl, "", "width=" + mywidth + ",height=" + myheight + ",status,scrollbars,resizable"); }
function SelectMenuItem() { var myV = document.getElementById('menuid_' + js_mypageid); if (myV != null) myV.className = "on"; }
Cufon.replace('.neoSansStyle, .neoSansBoldStyle, h1, h2, h4', { fontFamily: 'NeoSans' }); Cufon.replace('.neoSansMediumStyle, #ctl00_mainarea_content1 h3, .tour_right_element h3, #tabs ul li a', { fontFamily: 'NeoSansMedium', textShadow: '#fff 0px 1px' }); Cufon.replace('.neoSansItalicStyle, p.shop_price, #shop_top h2,  p.payment_heading', { fontFamily: 'NeoSans', textShadow: '#fff 0px 1px' }); Cufon.replace('#navigation ul#nav > li > a, .refFont', { fontFamily: 'NeoSans', textShadow: '#28851c -1px -1px', hover: { color: '#ace994'} }); $(document).ready(function() { $('ul#slideshow').after('<div id="slideshowNav">').cycle({ fx: 'fade', speed: 3000, timeout: 5500, pager: '#slideshowNav' }); /*$('ul#nav li > :first').addClass('first_item'); $('ul#nav li:last-child').addClass('last_item');*/$("#dialog, #genericContact, #brochureRequest, #newsSignup").dialog({ bgiframe: true, autoOpen: false, position: 'center', width: 440, modal: true, open: function(type, data) { $(this).parent().appendTo(jQuery("form:first")); } }); $('a.conactGeneric').click(function() { $('#genericContact').dialog('open'); return false; }); $('a.brochureRequest').click(function() { $('#brochureRequest').dialog('open'); return false; }); $('a.newsSignup').click(function() { $('#newsSignup').dialog('open'); return false; }); $('a.contactManager').click(function() { $('#dialog').dialog('open'); return false; }); $("#chooseMoreCnt, #chooseMoreCat, #chooseMorePr").dialog({ bgiframe: true, autoOpen: false, width: 640, modal: true, open: function(type, data) { $(this).parent().appendTo(jQuery("form:first")); } }); $('a.chooseMoreCnt').click(function() { $('#chooseMoreCnt').dialog('open'); return false; }); $('a.chooseMoreCat').click(function() { $('#chooseMoreCat').dialog('open'); return false; }); $('a.chooseMorePr').click(function() { $('#chooseMorePr').dialog('open'); return false; }); $("#detailedMap").dialog({ bgiframe: true, autoOpen: false, width: 574, modal: true }); $(".expandable_box").css("display", "none"); }); $(document).ready(function() {
    $('a.MenuTop').click(function() { $(this).toggleClass("MenuTopon"); var id = $(this).attr("id"); var number = id.substring(6, id.length); $("#myDiv" + number).slideToggle("slow"); }); $('a.detailedMap').click(function() { $('#detailedMap').dialog('open'); return false; }); $("input.signup_email").focus(function() {
        if ($(this).val() == "Enter Email...")
            $(this).val('');
    }); $("input.signup_email").blur(function() {
        if ($(this).val() == "")
            $(this).val('Enter Email...');
    }); $("input.signup_name").focus(function() {
        if ($(this).val() == "Enter Name...")
            $(this).val('');
    }); $("input.signup_name").blur(function() {
        if ($(this).val() == "")
            $(this).val('Enter Name...');
    }); $("input.dobYear").focus(function() {
        if ($(this).val() == "YYYY")
            $(this).val('');
    }); $("input.dobYear").blur(function() {
        if ($(this).val() == "")
            $(this).val('YYYY');
    }); $("input.refDate").focus(function() {
        if ($(this).val() == "dd/mm/yyyy")
            $(this).val('');
    }); $("input.refDate").blur(function() {
        if ($(this).val() == "")
            $(this).val('dd/mm/yyyy');
    }); $("input.tourcode").focus(function() {
        if ($(this).val() == "Country/Code ...")
            $(this).val('');
    }); $("input.tourcode").blur(function() {
        if ($(this).val() == "")
            $(this).val('Country/Code ...');
    }); var $tabs = $('.tabbed').tabs(); 
    
    $('.my-text-link').click(function() { $tabs.tabs('select', 4); $('.my-text-link').hide(); return false; });    
    
     $('li.five a').click(function() { $('.my-text-link').hide(); }); $('li.one a, li.two a, li.three a, li.four a').click(function() { $('.my-text-link').show(); }); $(".tweet").tweet({ username: "naturetrektours", count: 1, loading_text: "loading tweets..." });


         function megaHoverOver() { $(this).find(".sub").stop().fadeTo('fast', 1).show(); }
         function megaHoverOut() {
             $(this).find(".sub").stop().fadeTo('fast', 0, function() {
                 $(this).hide();
             });
         }
         var config = {
             sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
             interval: 100, // number = milliseconds for onMouseOver polling interval    
             over: megaHoverOver, // function = onMouseOver callback (REQUIRED)    
             timeout: 500, // number = milliseconds delay before onMouseOut    
             out: megaHoverOut // function = onMouseOut callback (REQUIRED)    
         };
         $("ul#nav li .sub").css({ 'opacity': '0' });
         $("ul#nav li").hoverIntent(config);






});
