//============ FLOATING BUBBLE ===========//

$('#floatingBubble').click(function(){
	$('#stretchBanner').css('left','-1000px');
})

$('#floatingBubble').hover(
	function(){
		$(this).css('-webkit-transform', 'scale(1.2,1.2) rotate(5deg)');
		$(this).css('-moz-transform', 'scale(1.2,1.2) rotate(5deg)');

	},
	function(){
		$(this).css('-webkit-transform', 'scale(1,1) rotate(0deg)');
		$(this).css('-moz-transform', 'scale(1,1) rotate(0deg)');
	}
)

//============ END BUBBLE ================//

//============ HOME ARROW ===========//

$('#stretchBannerimage').hover(function(){
	$('#home-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#home-arrow').hover(function(){
	$(this).show();
},
function(){
	$('.arrow').hide();
}
)

$('#home-arrow').click(function(){
	$(this).hide();
	$('#stretchBanner').css('left','-1000px');
})

//============ END HOME ARROW ==============//

//============ CLEAR BOX INFO & ARROW ===========//

$('#clearbox-info').hover(function(){
	$('#clearbox-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#clearbox-arrow').hover(function(){
	$('#clearbox-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#clearbox-arrow').click(function(){
	$(this).hide();
	$('#stretchBanner').css('left','0px');
})

//============ END CLEARBOX ==============//


//============ THE BOX INFO & ARROW ===========//

$('#clearbox-info').hover(function(){
	$('#box-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#box-arrow').hover(function(){
	$('#box-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#box-arrow').click(function(){
	$(this).hide();
	$('#stretchBanner').css('left','-2000px');
})

//============ END THE BOX ==============//

//============ BACK TO CLEAR BOX INFO & ARROW ===========//

$('#box-slide').hover(function(){
	$('#boxback-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#boxback-arrow').hover(function(){
	$('#boxback-arrow').show();
},
function(){
	$('.arrow').hide();
}
)

$('#boxback-arrow').click(function(){
	$(this).hide();
	$('#stretchBanner').css('left','-1000px');
})

//============ END THE BOX ==============//

//============ SEARCH BOX ===============//

if (Modernizr.input.placeholder) {
  //Placeholder shown
} else {
 $('#search_input').val('Search the site');
}

$('#searchbar').focus(function(){
	$(this).css("width","150px");
	$('#searchit').css("left","700px");
})

$('#search_input').keypress(function(e){
	if(e.keyCode == 13) {
		var searchTerm = $('#search_input').val();
		var location = "/search/node/" + searchTerm;
		window.location.href = location;
	}
})



