jQuery.noConflict();// Initiate Main MenujQuery(document).ready(function() { 	jQuery('#menu-wrapper .menu').superfish({	delay:       500,                            // one second delay on mouseout             animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation             speed:       'fast',                          // faster animation speed             autoArrows:  true,                           // disable generation of arrow mark-up             dropShadows: false                            // disable drop shadows         });     }); // Dynamic Footer Class AdditionsjQuery(document).ready(function(){									jQuery("#footer-widget-area .widget h3").eq(0).addClass("footer-header-text-1");	jQuery("#footer-widget-area .widget h3").eq(1).addClass("footer-header-text-2");	jQuery("#footer-widget-area .widget h3").eq(2).addClass("footer-header-text-3");	jQuery("#footer-widget-area .widget h3").eq(3).addClass("footer-header-text-4");	jQuery("#footer-widget-area .widget h3").eq(4).addClass("footer-header-text-5");	});							// Scroll to Top  jQuery(document).ready(function() {      jQuery('li a').smoothScroll({        afterScroll: function() {          /* location.hash = this.hash; */        }      });            jQuery('.totop .totoplink').click(function() {        jQuery.smoothScroll({          scrollElement: jQuery('body'),          scrollTarget: '#top'        });        return false;      });    });//Hover grow ImagejQuery(document).ready(function(){								jQuery(".thumbnail ").hover(function() {    jQuery(this).css({'z-index' : '10'});    jQuery(this).find('img').addClass("hover").stop()        .animate({            marginTop: '-20px',             marginLeft: '-20px',             top: '50%',             left: '50%',             width: '210px',             height: '210px',            padding: '5px'         }, 200);        } , function() {    jQuery(this).css({'z-index' : '0'});    jQuery(this).find('img').removeClass("hover").stop()        .animate({            marginTop: '0',             marginLeft: '0',            top: '0',             left: '0',             width: '175px',             height: '175px',             padding: '5px'        }, 400);	}); });//News Scroller (Widget)jQuery(document).ready(function() {  	jQuery('.news-scroller').cycle({ 	    fx: 'scrollVert',		speed: 1500,		rev: true,		timeout: 4000,		next: '.news-next', 	    prev: '.news-previous',	    easing: 'easeInOutQuint',	    cleartypeNoBg: true	 });       });//Contact FormjQuery(document).ready(function() {	//Define URL to PHP mail file	url = jQuery("meta[name=template_url]").attr('content') + "/sendmail.php";		//Activate jQuery form validation	jQuery("#erd-contact").validate({			submitHandler: function() {					//Define data string			var datastring = jQuery("#erd-contact").serialize();						//Submit form			jQuery.ajax({				type: "POST",				url: url,				data: datastring,				success: function(){					jQuery('#erd-contact').slideUp();					jQuery('#sent').fadeIn();				}			});		}		});			});//Comments FormjQuery(document).ready(function() {		//Activate jQuery form validation	jQuery(".comments-form").validate();			});//Portfolio thumbnailjQuery(document).ready(function(){		jQuery('.portfolio-box a.thumb').each(function(){	    if(this.href.match(/\.(jpe?g|png|bmp|gif|tiff?)$/i)){	        jQuery(this).addClass('image');	    } else {	    	jQuery(this).addClass('video');	    }	});	jQuery('.portfolio-box a').hover(function() {				//Show darkened hover over thumbnail image		jQuery(this).find('img').stop(true, true).animate({opacity:0.5},400);	}, function() {				//Hide darkened hover over thumbnail image		jQuery(this).find('img').stop(true, true).animate({opacity:1},400);				});});//Wordpress Gallery Lightbox IntegrationjQuery(document).ready(function(){		jQuery('.gallery-item a').each(function(){	    if(this.href.match(/\.(jpe?g|png|bmp|gif|tiff?)$/i)){	        jQuery(this).attr('rel','lightbox');		}	});});//Image ButtonsjQuery(document).ready(function(){	jQuery('.image-button').css({opacity:.75});	jQuery('.image-button').hover(function() {				jQuery(this).stop(true, true).animate({opacity:1},100);	}, function() {		jQuery(this).stop(true, true).animate({opacity:.75},100);				});});//Innititate Pretty PhotojQuery(document).ready(function(){	jQuery("a[rel^='lightbox']").prettyPhoto({theme:'light_square'});});//Twitter Widget(function(jQuery) {	/*		jquery.twitter.js v1.5		Last updated: 08 July 2009		Created by Damien du Toit		http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter		Licensed under a Creative Commons Attribution-Non-Commercial 3.0 Unported License		http://creativecommons.org/licenses/by-nc/3.0/	*/	jQuery.fn.getTwitter = function(options) {		jQuery.fn.getTwitter.defaults = {			userName: null,			numTweets: 5,			loaderText: "Loading tweets...",			slideIn: true,			slideDuration: 750,			showHeading: true,			headingText: "Latest Tweets",			showProfileLink: true,			showTimestamp: true		};		var o = jQuery.extend({}, jQuery.fn.getTwitter.defaults, options);		return this.each(function() {			var c = jQuery(this);			// hide container element, remove alternative content, and add class			c.hide().empty().addClass("twitted");			// add heading to container element			if (o.showHeading) {				c.append("<h2>"+o.headingText+"</h2>");			}			// add twitter list to container element			var twitterListHTML = "<ul id=\"twitter_update_list\"><li></li></ul>";			c.append(twitterListHTML);			var tl = jQuery("#twitter_update_list");			// hide twitter list			tl.hide();			// add preLoader to container element			var preLoaderHTML = jQuery("<p class=\"preLoader\">"+o.loaderText+"</p>");			c.append(preLoaderHTML);			// add Twitter profile link to container element			if (o.showProfileLink) {				var profileLinkHTML = "<p class=\"profileLink\"><a href=\"http://twitter.com/"+o.userName+"\">http://twitter.com/"+o.userName+"</a></p>";				c.append(profileLinkHTML);			}			// show container element			c.show();			jQuery.getScript("http://twitter.com/javascripts/blogger.js");			jQuery.getScript("http://twitter.com/statuses/user_timeline/"+o.userName+".json?callback=twitterCallback2&count="+o.numTweets, function() {				// remove preLoader from container element				jQuery(preLoaderHTML).remove();				// remove timestamp and move to title of list item				if (!o.showTimestamp) {					tl.find("li").each(function() {						var timestampHTML = jQuery(this).children("a");						var timestamp = timestampHTML.html();						timestampHTML.remove();						jQuery(this).attr("title", timestamp);					});				}				// show twitter list				if (o.slideIn) {					// a fix for the jQuery slide effect					// Hat-tip: http://blog.pengoworks.com/index.cfm/2009/4/21/Fixing-jQuerys-slideDown-effect-ie-Jumpy-Animation					var tlHeight = tl.data("originalHeight");					// get the original height					if (!tlHeight) {						tlHeight = tl.show().height();						tl.data("originalHeight", tlHeight);						tl.hide().css({height: 0});					}					tl.show().animate({height: tlHeight}, o.slideDuration);				}				else {					tl.show();				}				// add unique class to first list item				tl.find("li:first").addClass("firstTweet");				// add unique class to last list item				tl.find("li:last").addClass("lastTweet");			});		});	};})(jQuery);
