$(document).ready(function(){

jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
}; 

// Toggle Member Area
    // Hide First
        $(".login-wrap").hide();
            // Start Toggle
            $(".subnav-login-lock").click(function () {$(".login-wrap").fadeToggle();});

// Kwicks
$().ready(function() {  
    $('.kwicks').kwicks({  
        max : 310,  
        spacing : 9,
        duration: 250
    });  
});     

// Nav Follow
$( '#nav-wrap' ).scrollFollow({
    offset: 145,
    easing: 'easeOutBack'
});

// Login Tooltip
$("a.login-tooltip").easyTooltip({
	tooltipId: "easyTooltip1",
	content: '<img src="http://intrinsicnature.org/in/images/inv2/nav_login_bg.png" />',
	xOffset: -50,
	yOffset: -20,
	clickRemove: true
});

// Logout Tooltip
$("a.logout-tooltip").easyTooltip({
	tooltipId: "easyTooltip2",
	content: '<img src="http://intrinsicnature.org/in/images/inv2/nav_logout_bg.png" />',
	xOffset: -50,
	yOffset: -20,
	clickRemove: true
});

// Click Form Hide Value
    $('.inputCLICK').click(
        function() {
            if (this.value == this.defaultValue) {
                this.value = '';
            }
        }
    );
    $('.inputCLICK').blur(
        function() {
            if (this.value == '') {
                this.value = this.defaultValue;
            }
        }
    );

});


	// Fullscreen Popup
	var win = null;
	function fullwin(targeturl){window.open(targeturl,"","fullscreen,scrollbars")}

