//	PLACEHOLDER PLUGIN v1.1
(function($){var phClass="placeholder",pluginName="html5Forms",fieldsToCheck="input[type='text'], input[type='email'], input[type='search'], input[type='tel'], input[type='url'], input[type='password'], textarea",methods={init:function(o,callback){return this.each(function(){var $this=$(this),data=$this.data(pluginName);if(!data){var fieldTypes=$this.find(fieldsToCheck),settings={placeholderClass:phClass,alertText:"test this mutha"};if(o){$.extend(settings,o);};$.each(fieldTypes,function(i,f){var ph=$(f).attr("placeholder"),parent=$(f).parents("form:first");if(ph==$(f).val()||$.trim($(f).val())==""){$(f).val(ph).addClass(phClass);};$(f).bind("focus",function(){methods.fieldFocus.call($(this),ph);});$(f).bind("blur",function(){methods.fieldBlur.call($(this),ph);});$(f).bind("submit",function(){methods.clearValue.call($(this),ph);});});var instanceObj={settings:settings};$this.data(pluginName,instanceObj);};if(typeof callback!="undefined"){callback();};});},fieldFocus:function(ph){return this.each(function(){var $this=$(this);$this.removeClass(phClass);methods.clearValue.call($this,ph);});},fieldBlur:function(ph){return this.each(function(){var $this=$(this);if($.trim($this.val())==""){$this.addClass(phClass).val(ph);};});},clearValue:function(ph){return this.each(function(){var $this=$(this);if($this.val()==ph){$this.val("");};});}};$.fn.html5Forms=function(m){var fakeInput=document.createElement("input"),isNative=!!("placeholder"in fakeInput);if(!isNative){if(methods[m]){return methods[m].apply(this,Array.prototype.slice.call(arguments,1));}else if(!m||typeof m=="object"){return methods.init.apply(this,arguments);}else{$.error("Invalid method passed");};};}})(jQuery);

//QUOVOLVER PLUGIN
(function($){$.fn.quovolver=function(speed,delay){if(!speed)speed=500;if(!delay)delay=6000;var quaSpd=(speed*4);if(quaSpd>(delay))delay=quaSpd;var quote=$(this),firstQuo=$(this).filter(':first'),lastQuo=$(this).filter(':last'),wrapElem='<div id="quote_wrap"></div>';$(this).wrapAll(wrapElem);$(this).hide();$(firstQuo).show();$(this).parent().css({height:$(firstQuo).height()});setInterval(function(){if($(lastQuo).is(':visible')){var nextElem=$(firstQuo);var wrapHeight=$(nextElem).height();}else{var nextElem=$(quote).filter(':visible').next();var wrapHeight=$(nextElem).height();}
$(quote).filter(':visible').fadeOut(speed);setTimeout(function(){$(quote).parent().animate({height:wrapHeight},speed);},speed);if($(lastQuo).is(':visible')){setTimeout(function(){$(firstQuo).fadeIn(speed*2);},speed*2);}else{setTimeout(function(){$(nextElem).fadeIn(speed);},speed*2);}},delay);};})(jQuery);

//jQuery Text Overflow v0.7
(function(c){var b=document.documentElement.style,d=("textOverflow" in b||"OTextOverflow" in b),a=function(f,i){var h=0,e=[],g=function(j){var l=0,k;if(h>i){return}for(l=0;l<j.length;l+=1){if(j[l].nodeType===1){k=j[l].cloneNode(false);e[e.length-1].appendChild(k);e.push(k);g(j[l].childNodes);e.pop()}else{if(j[l].nodeType===3){if(h+j[l].length<i){e[e.length-1].appendChild(j[l].cloneNode(false))}else{k=j[l].cloneNode(false);k.textContent=c.trim(k.textContent.substring(0,i-h));e[e.length-1].appendChild(k)}h+=j[l].length}else{e.appendChild(j[l].cloneNode(false))}}}};e.push(f.cloneNode(false));g(f.childNodes);return c(e.pop().childNodes)};c.extend(c.fn,{textOverflow:function(g,e){var f=g||"&#x2026;";if(!d){return this.each(function(){var l=c(this),m=l.clone(),p=l.clone(),k=l.text(),h=l.width(),n=0,o=0,j=k.length,i=function(){if(h!==l.width()){l.replaceWith(p);l=p;p=l.clone();l.textOverflow(g,false);h=l.width()}};l.after(m.hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"}));if(m.width()>h){while(n<j){o=Math.floor(n+((j-n)/2));m.empty().append(a(p.get(0),o)).append(f);if(m.width()<h){n=o+1}else{j=o}}if(n<k.length){l.empty().append(a(p.get(0),n-1)).append(f)}}m.remove();if(e){setInterval(i,200)}})}else{return this}}})})(jQuery);

$(function() {
		   		//PLACEHOLDER 
				$("form").html5Forms();
		
			   //TESTIMONIALS 
			   $('#testimonialsBox blockquote').quovolver(600, 12000);
});		
