
//Fade content
	$(function() { 
	   var $sequence = $('[class$=fadeMe]').hide(), div = 0; 
	   (function(){ 
		   $($sequence[div++]).fadeIn('fast', arguments.callee); 
	   })(); 
	});
	
	
	
	/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2010 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 254 2010-07-23 05:14:44Z emartin24 $
 */

jQuery(function ($) {
	// Load dialog on page load
	//$('#basic-modal-content').modal();

	// Load dialog on click
	$('#basic-modal .basic').click(function (e) {
		$("#basic-modal-content").modal({onOpen: function (dialog) {
		dialog.overlay.fadeIn('fast', function () {
			dialog.data.hide();
			dialog.container.fadeIn('fast', function () {
			dialog.data.fadeIn('fast');
			});
		});
	}});
		
		return false;
	});
	
	
// If Image Null
    $("img").each(function(){
        if($(this).attr("src") == null || $(this).attr("src") == '')
         {
             $(this).remove();
          }
    });
	

// nav current
	$(document).ready(function(){
		$(".qLinks a").each(function() {
			if(this.href == window.location) $(this).addClass("active");
		});
	});
		
// Side nav current
	$("ul.arrow-sub > li > a").each(function() {
		if(this.href == window.location) $(this).addClass("active");
	});
		
	
//NEW li hover spans
	$("ul.tabs > li > span").css({display: "none"}); // Opera Fix
	$("ul.tabs > li").hover(
			function(){
			$(this).find('span').stop().fadeTo('fast', .94).show();
			},
			function(){
		    $(this).find('span').stop().animate({ opacity: 0 }, 500, function() {
			$(this).hide();
		  });
		});
	
	//NEW hover

	$(".m-over").hover(
			function(){
			$(this).find('.panel').stop().fadeTo('fast', .94).show();
			},
			function(){
		    $(this).find('.panel').stop().animate({ opacity: 0 }, 500, function() {
			$(this).hide();
		  });
		});	
	
	

	
	
}); // End 



