jQuery(window).ready(function(){
    
    
    
      jQuery("div#injectForm").append("<form class='jQueryValidate'> <label>Name <span class='red'>*</span></label> <input id='qcName' class='input required' type='text' name='qcName' / > <label>Email <span class='red'>*</span></label> <input id='qcEmail' class='input required email' type='text' name='qcEmail' /> <label>Message <span class='red'>*</span></label> <textArea id='qcMessage' class='input required' name='qcMessage'></textArea> <input id='qcSubmit' type='button' value='submit' /><p id='qcErrorMessage'>Please check the values</p><p id='qcValidMessage'>Thank You!</p> <span class='clear'></span></form>");
      

    jQuery("#searchsubmit").attr("value", "go!"); 
    

		jQuery('a.top').click(function(){
      jQuery('html, body').animate({scrollTop: '0px'}, 300);
      return false;
    });


		jQuery('a.main_inquiry').click(function(){
      jQuery('html, body').animate({scrollTop: $(document).height()}, 500);
      jQuery('#qcName').focus();
      return false;
    });
    
    
 /* This is basic - uses default settings */ 
 $("a.lightbox").fancybox();

  
        jQuery(window).ready(function(){
                jQuery("<span class='firstBackground'></span><span class='secondBackground'></span>").insertBefore("a.myButton1");
                jQuery("span.secondBackground").css("opacity","0");
                jQuery("a.myButton1").mouseenter(function(){
                   jQuery(this).parent().find("span.secondBackground").animate({opacity: 1.0}, 1000);
                 });
                jQuery("a.myButton1").mouseleave(function(){
                   jQuery(this).parent().find("span.secondBackground").animate({opacity: 0}, 500);
                   jQuery(this).animate({marginTop: '0'}, 500);
                 });
         });




      jQuery.jGFeed('http://www.m2volt.com/blog/feed/',
      function(feeds){
        // Check for errors
        if(!feeds){
          // there was an error
          return false;
        }
        // do whatever you want with feeds here
        for(var i=0; i<feeds.entries.length; i++){
          var entry = feeds.entries[i];
          // Entry title
          jQuery("#injectRssFooterFeed").append("<p class='rss_heading'><a href='" + entry.link+ " '>" + entry.title + "</a></p><p class='rss_description'>" + entry.contentSnippet + "</p>");
        }
      }, 3);

 

jQuery.jGFeed('http://www.m2volt.com/blog/feed/',
function(feeds){
  // Check for errors
  if(!feeds){
    // there was an error
    return false;
  }
  // do whatever you want with feeds here
  for(var i=0; i<feeds.entries.length; i++){
    var entry = feeds.entries[i];
    // Entry title
    jQuery("#injectRssFeed").append("<h2 class='rss_heading'><a href='" + entry.link+ " '>" + entry.title + "</a></h2><p class='rss_description'>" + entry.contentSnippet + "</p>");
  }
}, 3);


 
 
 
 
});




