
jQuery(function( $ ){
				

// This changes the images on the front page.   
//=========================================================================

$ ('#slideshowmain').cycle();


//  portfollio 
//==================================================================
$('#portfilioff').hide();
$('#interiors').hide();
$('#window').hide();
$('#xmas').hide();
$('#planting').hide();
$('#gardens').show();


// This section does all the scrolling of the main window 
//========================================================

$.localScroll.defaults.axis = 'xy';
$.localScroll({
target: '#content', // could be a selector or a jQuery object too.
queue:true,
duration:1500,
hash:true,
onBefore:function( e, anchor, $target ){
 // The 'this' is the settings object, can be modified
 },
onAfter:function( anchor, settings ){
 // The 'this' contains the scrolled element (#content)
 } 
   });

// This is menu drop down for services
//========================================================================

$('#subnavigation').css('display','none') ;
$('#tag').click(function() {   // selects services item on menu 
$('#subnavigation2').slideUp(1000);	
$('#tag2').removeClass('dropdown');
$('#subnavigation').slideToggle(1000);  // toggle display attribute 
$('#tag').toggleClass('dropdown');  
});

// This is menu drop down for portfolio
//========================================================================

$('#subnavigation2').css('display','none') ;
$('#tag2').click(function() {   // selects services item on menu 
$('#subnavigation').slideUp(1000);
$('#tag2').addClass('dropdown'); 
$('#tag').removeClass('dropdown');
$('#subnavigation2').slideDown(1000);  // toggle display attribute 
});

// This is menu drop down for portfolio from about & contact page
//========================================================================

$('.openp').click(function() {   // selects services item on menu 
$('#subnavigation2').slideDown(1000);// toggle display attribute 
$('#tag2').addClass('dropdown'); 
$('#tag').removeClass('dropdown');
$('#subnavigation').slideUp(1000);
});
 
// This is to close portfolio submenu when navigating away from page
//========================================================================

$('.closep').click(function() {   // selects all links away from portfolio page
$('#subnavigation2').slideUp(1000);// toggle display attribute 						   
$('#tag2').removeClass('dropdown');
});

// This is to close services submenu when navigating away from pages
//========================================================================

$('.closes').click(function() {   // selects all links away from portfolio page
$('#subnavigation').slideUp(1000);// toggle display attribute 						   
$('#tag').removeClass('dropdown');
});

 
// This is portfolio pages - garden page 
//========================================================================


$("#gardensli").click(function() {
$("#interiors").hide();
$("#window").hide();
$("#xmas").hide();
$("#planting").hide();
$("#gardens").show();
return false;
});

$("#windowli").click(function() {
$("#interiors").hide();
$("#window").show();
$("#xmas").hide();
$("#planting").hide();
$("#gardens").hide();
return false;
});

$("#interiorsli").click(function() {
$("#interiors").show();
$("#window").hide();
$("#xmas").hide();
$("#planting").hide();
$("#gardens").hide();
return false;
});

$("#xmasli").click(function() {
$("#interiors").hide();
$("#window").hide();
$("#xmas").show();
$("#planting").hide();
$("#gardens").hide();
return false;
});

$("#plantingli").click(function() {
$("#interiors").hide();
$("#window").hide();
$("#xmas").hide();
$("#planting").show();
$("#gardens").hide();
return false;
});


});