$(function() {
	 
		// if the function argument is given to overlay,
		// it is assumed to be the onBeforeLoad event listener
		$("a[rel]").overlay({
	 
			expose: '#162230',
			effect: 'apple',
	 
			onBeforeLoad: function() {
	 
				// grab wrapper element inside content
				var wrap = this.getContent().find(".contentWrap");
	 
				// load the page specified in the trigger
				wrap.load(this.getTrigger().attr("href"));
			}
	 
		})
		$("#form :input").tooltip({ 
 
                // place tooltip on the right edge 
                position: "center right", 
             
                // a little tweaking of the position 
                offset: [-2, 10], 
             
                // use the built-in fadeIn/fadeOut effect 
                effect: "fade", 
             
                // custom opacity setting 
                opacity: 0.7, 
             
                // use this single tooltip element 
                tip: '.tooltip' 
             
                })
                $("[title]").tooltip({ 
     
		// use single tooltip element for all tips 
		tip: '#dynatip',  
		 
		// tweak the position 
		offset: [10, 2], 
		 
		// use "slide" effect 
		effect: 'slide' 
		 
	    // add dynamic plugin  
	    }).dynamic( { 
	     
		// customized configuration on bottom edge 
		bottom: { 
		 
		    // slide downwards 
		    direction: 'up', 
		     
		    // bounce back when closed 
		    bounce: true 
		} 
	    });
	});