
jQuery.noConflict();
jQuery(document).ready(function()
{

     jQuery('#navig li').hover(
         function () {
            jQuery('ul',this).slideDown(50);
         },
         function () {
             jQuery('ul', this).slideUp(50);
         }
     );

    jQuery("#showr1").click(function () {
	    jQuery("div#sp1").hide(500);
	    jQuery("div#sp2").show(500);
	    jQuery("div#gray1").css('backgroundImage', 'url(/images/blbg3-1.jpg)');
    });

    jQuery("#hidr1").click(function () {
	    jQuery("div#sp2").hide(500);
	    jQuery("div#sp1").show(500);
        jQuery("div#gray1").css('backgroundImage', 'url(/images/blbg3.jpg)');
    });

    jQuery("#showr2").click(function () {
	    jQuery("div#np1").hide(500);
	    jQuery("div#np2").show(500);
	    jQuery("div#orange").css('backgroundImage', 'url(/images/blbg4-1.gif)');
    });

    jQuery("#hidr2").click(function () {
	    jQuery("div#np2").hide(500);
	    jQuery("div#np1").show(500);
        jQuery("div#orange").css('backgroundImage', 'url(/images/blbg4.gif)');
    });


        jQuery(".tweet").tweet({
            username: "lenalptours",
            join_text: "auto",
            avatar_size: 32,
            count: 3,
            auto_join_text_default: "we said,",
            auto_join_text_ed: "we",
            auto_join_text_ing: "we were",
            auto_join_text_reply: "we replied to",
            auto_join_text_url: "we were checking out",
            loading_text: "loading tweets..."
        });
		
		
        jQuery('#slider').nivoSlider({
        effect:'fade',
        slices:15,
        animSpeed:1100,
        pauseTime:5000,
		directionNav:false,
		controlNav:false
		});
		

		var OptionShadow = {
		  x:      0, 
		  y:      0, 
		  radius: 3,
		  color:  "white"
		}

});
//jQuery(document).ready(function(){prettyForms();});



function nav(id)
	{
	for(i=1; i<10; i++)
		{
		if(i == id)
			{
			if(document.getElementById('sn' + i).style.display == 'block')
				{
		    	document.getElementById('sn' + i).style.display = 'none';
		    	}
			else
				{
			    document.getElementById('sn' + i).style.display = 'block';
				}
			}
		else
			{
	        document.getElementById('sn' + i).style.display = 'none';
			}
		}
	}

function closenav2()
	{
	for(i=1; i<10; i++)
		{
		document.getElementById('sn' + i).style.display = 'none';
		}
	}
function closenav()
	{
	setTimeout("closenav2()",200);
	}







  function blockError(){return true;}
window.onerror = blockError;  
