	// Code Expandable
	jQuery(document).ready(function(){
		jQuery(".wp_syntax").hover(function() {
		var width = jQuery("table", this).width();
		var pad = width + 5;
		if (width > 600) {
			jQuery(this)
				.stop(true, false)
				.css({
					zIndex: "100",
					position: "relative"
				})
				.animate({
					width: pad + "px"
				});
			}
		}, function() {
				jQuery(this).stop(true, false).animate({
					width: 600
			});
		});
	});

	
	//Toggle ul.sub (Social Bar)
	jQuery(document).ready(function(){
	
	jQuery("ul.sub").hide();
	
		jQuery("a.toggle-menu").toggle(function(){
			jQuery(this).addClass("active"); 
			}, function () {
			jQuery(this).removeClass("active");
		});
		
		jQuery("a.toggle-menu").click(function(){
			jQuery(this).next("ul.sub").slideToggle("slow,");
		});
	
	});

	//Toggle Social Bar
	jQuery(document).ready(function(){

		jQuery("#social-content").hide();
	
		jQuery("a.toggle-bar").toggle(function(){
			jQuery(this).addClass("active"); 
			}, function () {
			jQuery(this).removeClass("active");
		});
	
		jQuery("a.toggle-bar").click(function(){
			jQuery("#social-content").slideToggle("slow");
		});

	});
	
	//Toggle Admin Options
	jQuery(document).ready(function () {	
		
		jQuery('#menu li.admin-options').hover(
		
			function () {
			jQuery(this).addClass("active");
				//show its submenu
				jQuery('ul', this).slideDown(100);
	
			}, 
			function () {
			jQuery(this).removeClass("active");
				//hide its submenu
				jQuery('ul', this).slideUp(100);			
			}
		);
		
	});
	
	//Toggle Post Share (Social Bar)
	jQuery(document).ready(function(){
	
	//jQuery(".share-more-social").hide();
	
		jQuery("a.toggle-share").toggle(function(){
			jQuery(this).addClass("active"); 
			}, function () {
			jQuery(this).removeClass("active");
		});
		
		jQuery("a.toggle-share").click(function(){
			jQuery(".share-more-social").slideToggle("slow");
		});
	
	});
	
/*
 * Tooltip script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */

	this.tooltip = function(){	
	/* CONFIG */		
		xOffset = 10;
		yOffset = 20;		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result		
	/* END CONFIG */		
	jQuery("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		jQuery("body").append("<span id='tooltip'>"+ this.t +"</h5>");
		jQuery("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	
	function(){
		this.title = this.t;		
		jQuery("#tooltip").remove();
		});	
		jQuery("a.tooltip").mousemove(function(e){
			jQuery("#tooltip")
				.css("top",(e.pageY - xOffset) + "px")
				.css("left",(e.pageX + yOffset) + "px");
		});			
	};

	// starting the script on page load
	jQuery(document).ready(function(){
		tooltip();
	});
	

<!-- testing purposes --->
	
	function featureSlider(){
		
		var curtarget = 0;
		var currenta;
		var curli = 'li:eq(0)';
		var nextli = 'li:eq(1)';
		var totalSlides = jQuery("#slider li").length;
		var slideWidth = jQuery("#slider li").width() + 5;	// 5px right margin
		var interval = 7000;
		var interval_obj;
		jQuery("#slider").after('<ol id="controls"></ol>');
				
		for(var i=0;i<totalSlides;i++){
			jQuery(document.createElement("li"))
			.attr('id',"controls" + (i+1))
			.html('<a rel='+ i +' href=\"javascript:void(0);\">'+ (i+1) +'</a>')
			.appendTo(jQuery("#controls")).
			click(function(){
				clearInterval(interval_obj);
				curtarget = jQuery(this).find('a').attr("rel");


			   /*
				* Hover State Control
				*/
				
				jQuery('ol#controls li').each(function() {
			   		jQuery(this).removeClass('current');
			   	});
				
				current_li = jQuery(this).find('a').parent();
				jQuery(current_li).addClass('current');
			   
			   /*
				* End Hover State Control
				*/
				
				if(curtarget >= totalSlides){
					curtarget = 0;	
				}
								
				nexli = 'li:eq('+curtarget+')';
				if(curli != nexli){
					var html = jQuery('#slider').find(nexli).find('.read-more-content').html();
					jQuery('#reatured-read-more').html(html);
					jQuery('#slider').animate( { marginLeft: (curtarget*slideWidth*-1)  },"slow" );
					jQuery('#slider2').find(curli).fadeOut("slow", function() {
						jQuery('#slider2').find(nexli).fadeIn("slow");
					});
				}
				curli = nexli;
			});;
		}
		
		var html = jQuery('#slider li:eq(0) .read-more-content').html();
		jQuery('#reatured-read-more').html(html);
		
		jQuery('ol#controls li#controls1').addClass('current');
			
		jQuery("#intro-content").css('overflow','hidden');
		jQuery("li", jQuery("#slider")).css({'float':'left','width':slideWidth});
		jQuery("#slider").css('width', totalSlides * slideWidth);
		jQuery("#slider2").find("li:not(:first)").hide();
		
		function gotoNext(){
			curtarget++;
			if(curtarget >= totalSlides){
				curtarget = 0;	
			}
			
			jQuery('ol#controls li').each(function() {
				jQuery(this).removeClass('current');
			});
				
			li_id = curtarget + 1;
			jQuery('ol#controls li#controls'+li_id+'').addClass('current');
			
			nexli = 'li:eq('+curtarget+')';
			if(curli != nexli){
				var html = jQuery('#slider').find(nexli).find('.read-more-content').html();
				jQuery('#reatured-read-more').html(html);
				jQuery('#slider').animate( { marginLeft: (curtarget*slideWidth*-1)  },"slow" );
				jQuery('#slider2').find(curli).fadeOut("slow", function() {
					jQuery('#slider2').find(nexli).fadeIn("slow");
				});
			}
			curli = nexli;
		}
		
		interval_obj = setInterval(gotoNext,interval);
		
	}
	
	jQuery(document).ready(function(){	
		featureSlider();
		/*jQuery("#slider2").easySlider({
			loop: true,
			orientation: 'fade',
			autoplayDuration: 7000
		});*/
	});	
	


	


	
