
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_11_page50
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_11_page50 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_11_page50 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
stacks.myMenuFHStackID = 'stacks_in_11_page50';
var $myMenuFH = jQuery.noConflict(); 
$myMenuFH(document).ready(function() {
	$myMenuFH('.nimblehost_myMenuOuterWrapper_stacks_in_11_page50 script').remove();
	$myMenuFH('.nimblehost_myMenuOuterWrapper_stacks_in_11_page50').appendTo('body');
	$myMenuFH('.nimblehost_myMenuOuterWrapper_stacks_in_11_page50').css({position:'absolute'});
	
	var myMenuFHOffset = $myMenuFH('.nimblehost_myMenuOuterWrapper_stacks_in_11_page50').offset();
	var myMenuFHPosition = (myMenuFHOffset.left / $myMenuFH(window).width()) * 100;
	if (myMenuFHPosition > 50) {
		var subMenuOffset = $myMenuFH('.nimblehost_myMenu_stacks_in_11_page50 ul').width() + 1;
		$myMenuFH('.nimblehost_myMenu_stacks_in_11_page50 ul ul').css({left: 'auto', right: subMenuOffset + 'px'});
		$myMenuFH('.nimblehost_myMenu_stacks_in_11_page50 ul li a').css({paddingLeft: '15px'});
		$myMenuFH(window).load(function(){
			$myMenuFH('.nimblehost_myMenu_stacks_in_11_page50 ul li.ddarrow .childIndicator').css({right: 'auto', left: '2px', backgroundImage: 'url(index_files/ddarrowLeft.png)'});
		});
	}
	
	var myMenuLinkHeight = $myMenuFH('.nimblehost_myMenuOuterWrapper_stacks_in_11_page50').height() + 6;
	$myMenuFH(window).load(function(){
		$myMenuFH('.nimblehost_myMenu_stacks_in_11_page50 ul li.ddarrow .childIndicator').css({height: myMenuLinkHeight + 'px', top: '0'});
	});
});




	return stack;
})(stacks.stacks_in_11_page50);



