////////////////////////////////////////////////////////////////////////////////////////////////
//			PLUGIN:		ARMY KNIFE
//			VERSION:	1.4
//			AUTHOR:		ROMAN D. PACHECO
////////////////////////////////////////////////////////////////////////////////////////////////
(function(a){var b="armyKnife",c={cssProps:{active:{marginLeft:"0%"},above:{zIndex:100},below:{zIndex:10},hiddenR:{marginLeft:"100%"},hiddenL:{marginLeft:"-100%"},fadeOut:{opacity:0},fadeIn:{opacity:1}},regex:{transition:{fadeIn:new RegExp("fade(,|$|In)","i"),fadeOut:new RegExp("fade(,|$|Out)","i"),slideIn:new RegExp("slide(,|$|In)","i"),slideOut:new RegExp("slide(,|$|Out)","i"),none:new RegExp("none(,|$)","i")}}},d={button:a("<a />",{href:"#"})},e={speed:300,sections:"> *",startingSection:0,easing:"swing",transition:"none",autoResize:false,resizeSpeed:200,autoRotate:false,autoRotateDelay:5e3,generateNav:false,navType:"empty",navItemSource:function(a){return" "},navItemCode:function(a){var b=d.button.clone();b.html(a);return b},navID:false,navClass:b+"-Nav",itemsPerNav:0,activeNavItemClass:"active",showSectionButtons:false,sectionButtonClass:b+"-Btn",sectionButtonCodeNext:d.button.clone(),sectionButtonCodePrev:d.button.clone(),sectionOnEnter:false,sectionOnExit:false,sectionBeforeEnter:false,sectionBeforeExit:false},f={init:function(d,g){return this.each(function(){var h=a(this),i=h.data(b);if(!i){var j=a.extend(true,{},e);j=d?a.extend(true,j,d):j;a.extend(true,j,{sectionList:[],navItems:[],currentSection:j.startingSection,targetSection:false});h.data(b,j);i=h.data(b);var k=h.find(i.sections);if(i.generateNav){f.generateNav.call(h,k)}a.each(k,function(b,d){if(b==i.startingSection){a(d).css(c.cssProps.active)}else{a(d).css(c.cssProps.hiddenR)}if(i.showSectionButtons){if(b>0){var e=i.sectionButtonCodePrev.clone();e.html()==""&&e.html("Prev");e.addClass(i.sectionButtonClass).bind("click",function(){f.prev.call(h);return false}).appendTo(a(d))}if(b<k.length-1){var g=i.sectionButtonCodeNext.clone();g.html()==""&&g.html("Next");g.addClass(i.sectionButtonClass).bind("click",function(){f.next.call(h);return false}).appendTo(a(d))}}i.sectionList.push(a(d))})}if(i.autoRotate){f.setAutoRotate.call(h)}if(i.autoResize){i.targetSection=i.currentSection;f.resizeView.call(h,g)}else{if(typeof g=="function"){g()}}if(typeof i.sectionBeforeEnter=="function"){i.sectionBeforeEnter.call(i.sectionList[i.currentSection],i.currentSection,i.currentSection,i.sectionList)}if(typeof i.sectionOnEnter=="function"){i.sectionOnEnter.call(i.sectionList[i.currentSection],i.currentSection,i.currentSection,i.sectionList)}})},generateNav:function(c){var e=this,g=e.data(b);if(g){g.nav=a("<div />");var h=g.itemsPerNav,i=a("<ul />",{"class":g.navClass}),j=c;if(g.itemsPerNav==0){h=c.length}var k=0;while(j.length){var l=i.clone();c=j;a.each(c,function(b,i){if(b>=h){return false}var m=a("<li />"),n=d.button.clone(),i=c[b];switch(g.navType){case"numeric":n.html(parseFloat(b+1));break;case"text":var o=g.navItemSource(a(i))||g.navItemSource;n.html(o);break;case"custom":var o=g.navItemSource(a(i))||g.navItemSource,p=g.navItemCode(o)||g.navItemCode;n=p;break;default:n.html(" ")}l.append(m);m.append(n);n.bind("click",{i:k},function(a){f["goto"].call(e,a.data.i);return false});if(b==g.startingSection){m.addClass(g.activeNavItemClass)}g.navItems.push(m);j=j.filter(function(a){return j[a]!=i});k++});g.nav.append(l)}if(g.nav.children().length==1){g.nav=a(g.nav.children()[0])}if(g.navID){if(a("#"+g.navID).length){a("#"+g.navID).replaceWith(g.nav)}else{e.after(g.nav)}g.nav.attr("id",g.navID)}else{e.after(g.nav)}}},setAutoRotate:function(){return this.each(function(){var c=a(this),d=c.data(b);if(d){clearTimeout(d.autoRotateInterval);d.autoRotateInterval=setTimeout(function(){if(typeof d.isAnimating=="undefined"||d.isAnimating.isResolved()){f.next.call(c)}else{if(!d.isAnimating.isResolved()){a.when(d.isAnimating).then(function(){f.next.call(c)})}}},d.autoRotateDelay)}})},resizeView:function(c){return this.each(function(){var d=a(this),e=d.data(b);if(e){var f=d.height(),g=e.sectionList[e.targetSection].outerHeight();if(f!=g){d.animate({height:g},e.resizeSpeed,function(){if(typeof c=="function"){c()}})}else{if(typeof c=="function"){c()}}}})},"goto":function(c){return this.each(function(){var d=a(this),e=d.data(b);if(e&&c!=e.currentSection&&(typeof e.isAnimating=="undefined"||e.isAnimating.isResolved())){e.isAnimating=new a.Deferred;if(e.autoRotate){f.setAutoRotate.call(d)}e.targetSection=c;var g=c<e.currentSection?"right":"left";if(e.autoResize){f.resizeView.call(d,function(){f.animate.call(d,g)})}else{f.animate.call(d,g)}}})},next:function(){return this.each(function(){var c=a(this),d=c.data(b);if(d&&d.sectionList[d.currentSection]&&(typeof d.isAnimating=="undefined"||d.isAnimating.isResolved())){d.isAnimating=new a.Deferred;if(d.autoRotate){f.setAutoRotate.call(c)}d.targetSection=d.sectionList[d.currentSection+1]?d.currentSection+1:0;if(d.autoResize){f.resizeView.call(c,function(){f.animate.call(c)})}else{f.animate.call(c)}}})},prev:function(){return this.each(function(){var c=a(this),d=c.data(b);if(d&&d.sectionList[d.currentSection]&&(typeof d.isAnimating=="undefined"||d.isAnimating.isResolved())){d.isAnimating=new a.Deferred;if(d.autoRotate){f.setAutoRotate.call(c)}d.targetSection=d.sectionList[d.currentSection-1]?d.currentSection-1:d.sectionList.length-1;if(d.autoResize){f.resizeView.call(c,function(){f.animate.call(c,"right")})}else{f.animate.call(c,"right")}}})},animate:function(d,e){e=!!e?e:function(){};return this.each(function(){var f=a(this),g=f.data(b);d=!!d?d:"left";if(g&&g.sectionList[g.currentSection]&&g.sectionList[g.targetSection]){if(typeof g.sectionBeforeExit=="function"){g.sectionBeforeExit.call(g.sectionList[g.currentSection],g.currentSection,g.targetSection,g.sectionList)}if(typeof g.sectionBeforeEnter=="function"){g.sectionBeforeEnter.call(g.sectionList[g.targetSection],g.targetSection,g.currentSection,g.sectionList)}g.sectionList[g.currentSection].css(c.cssProps.below);var h=c.cssProps.active;if(g.transition.match(c.regex.transition.slideOut)||g.transition.match(c.regex.transition.none)){h=d=="left"?c.cssProps.hiddenL:c.cssProps.hiddenR}var i=a.extend(true,{},h);!!g.transition.match(c.regex.transition.fadeOut)&&a.extend(true,i,c.cssProps.fadeOut);if(g.transition.match(c.regex.transition.none)){g.sectionList[g.currentSection].css(i);e()}else{g.sectionList[g.currentSection].animate(i,g.speed,g.easing,e)}if(g.transition.match(c.regex.transition.fadeIn)){g.sectionList[g.targetSection].css(c.cssProps.fadeOut)}else{g.sectionList[g.targetSection].css(c.cssProps.fadeIn)}g.sectionList[g.targetSection].css(c.cssProps.above);var j=c.cssProps.active;if(g.transition.match(c.regex.transition.slideIn)||g.transition.match(c.regex.transition.none)){j=d=="left"?c.cssProps.hiddenR:c.cssProps.hiddenL}g.sectionList[g.targetSection].css(j);var k=a.extend(true,{},c.cssProps.active);!!g.transition.match(c.regex.transition.fadeIn)&&a.extend(true,k,c.cssProps.fadeIn);if(g.transition.match(c.regex.transition.none)){g.sectionList[g.targetSection].css(k);g.isAnimating.resolve();e();if(typeof g.sectionOnExit=="function"){g.sectionOnExit.call(g.sectionList[g.currentSection],g.currentSection,g.targetSection,g.sectionList)}if(typeof g.sectionOnEnter=="function"){g.sectionOnEnter.call(g.sectionList[g.targetSection],g.targetSection,g.currentSection,g.sectionList)}}else{g.sectionList[g.targetSection].animate(k,g.speed,g.easing,function(){g.isAnimating.resolve();e();if(typeof g.sectionOnExit=="function"){g.sectionOnExit.call(g.sectionList[g.currentSection],g.currentSection,g.targetSection,g.sectionList)}if(typeof g.sectionOnEnter=="function"){g.sectionOnEnter.call(g.sectionList[g.targetSection],g.targetSection,g.currentSection,g.sectionList)}})}if(g.nav){g.nav.find("."+g.activeNavItemClass).removeClass(g.activeClass);g.navItems[g.targetSection].addClass(g.activeNavItemClass)}g.currentSection=g.targetSection}})}};a.fn[b]=function(b){if(f[b]){return f[b].apply(this,Array.prototype.slice.call(arguments,1))}else if(!b||typeof b=="object"){return f.init.apply(this,arguments)}else{a.error(c.pluginName+": Invalid method passed")}}})(jQuery);

/*---------->>> jQuery SWFObject v1.1.1 MIT/GPL @jon_neal <<<----------*/
/*---------->>>   http://jquery.thewikies.com/swfobject   <<<----------*/
(function(f,h,i){function k(a,c){var b=(a[0]||0)-(c[0]||0);return b>0||!b&&a.length>0&&k(a.slice(1),c.slice(1))}function l(a){if(typeof a!=g)return a;var c=[],b="";for(var d in a){b=typeof a[d]==g?l(a[d]):[d,m?encodeURI(a[d]):a[d]].join("=");c.push(b)}return c.join("&")}function n(a){var c=[];for(var b in a)a[b]&&c.push([b,'="',a[b],'"'].join(""));return c.join(" ")}function o(a){var c=[];for(var b in a)c.push(['<param name="',b,'" value="',l(a[b]),'" />'].join(""));return c.join("")}var g="object",m=true;try{var j=i.description||function(){return(new i("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}()}catch(p){j="Unavailable"}var e=j.match(/\d+/g)||[0];f[h]={available:e[0]>0,activeX:i&&!i.name,version:{original:j,array:e,string:e.join("."),major:parseInt(e[0],10)||0,minor:parseInt(e[1],10)||0,release:parseInt(e[2],10)||0},hasVersion:function(a){a=/string|number/.test(typeof a)?a.toString().split("."):/object/.test(typeof a)?[a.major,a.minor]:a||[0,0];return k(e,a)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(a){if(!a.swf||this.expressInstallIsActive||!this.available&&!a.hasVersionFail)return false;if(!this.hasVersion(a.hasVersion||1)){this.expressInstallIsActive=true;if(typeof a.hasVersionFail=="function")if(!a.hasVersionFail.apply(a))return false;a={swf:a.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:a.swf,type:"application/x-shockwave-flash",id:a.id||"flash_"+Math.floor(Math.random()*999999999),width:a.width||320,height:a.height||180,style:a.style||""};m=typeof a.useEncode!=="undefined"?a.useEncode:this.encodeParams;a.movie=a.swf;a.wmode=a.wmode||"opaque";delete a.fallback;delete a.hasVersion;delete a.hasVersionFail;delete a.height;delete a.id;delete a.swf;delete a.useEncode;delete a.width;var c=document.createElement("div");c.innerHTML=["<object ",n(attrs),">",o(a),"</object>"].join("");return c.firstChild}};f.fn[h]=function(a){var c=this.find(g).andSelf().filter(g);/string|object/.test(typeof a)&&this.each(function(){var b=f(this),d;a=typeof a==g?a:{swf:a};a.fallback=this;if(d=f[h].create(a)){b.children().remove();b.html(d)}});typeof a=="function"&&c.each(function(){var b=this;b.jsInteractionTimeoutMs=b.jsInteractionTimeoutMs||0;if(b.jsInteractionTimeoutMs<660)b.clientWidth||b.clientHeight?a.call(b):setTimeout(function(){f(b)[h](a)},b.jsInteractionTimeoutMs+66)});return c}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject);

/*---------->>> HTML5 Form "Placeholder" <<<----------*/
/*---------->>>  VERSION 1.0 (01/21/11)  <<<----------*/
$(a);function a(){var b=$("input[type='text'], input[type='email'], input[type='search'], input[type='tel'], input[type='url'], input[type='password'], textarea");if(b.length==0){return false}var d=document.createElement("input"),c=!!("placeholder"in d),e=function(f,p){if(f.val()==p){f.val("")}};if(!c){$(b).each(function(i,g){var f=$(g).attr("placeholder");if(f==$(g).val()||$.trim($(g).val())==""){$(g).val(f).addClass("placeholder")}$(g).focus(function(){$(g).removeClass("placeholder");e($(g),f)});$(g).blur(function(){if($.trim($(g).val())==""){$(g).addClass("placeholder").val(f)}});$(g).parents("form").submit(function(){e($(g),f)})})}}

/*---------->>> Custom "Exists" function <<<----------*/
jQuery.fn.exists=function(){return jQuery(this).length>0;}

/*---------->>> Slideshow Plugin <<<----------
(function($){var pluginName="tnt_imageRotation",activeImgClass=pluginName+"_active",nextImgClass=pluginName+"_next",methods={init:function(o,callback){return this.each(function(){var $this=$(this),data=$this.data(pluginName);if(!data){var settings={speed:1000,delay:4000,startImg:0,enableBg:false,bgColor:"#fff"},images=$this.find("img"),container={width:0,height:0};if(o){$.extend(settings,o);};if($this.css("position")!="relative"&&$this.css("position")!="absolute"){$this.css({position:"relative"});}else{$this.css({position:$this.css("position")});};$this.css({display:"block",width:"0px",height:"0px",overflow:"hidden"});if(settings.enableBg){$this.css({backgroundColor:settings.bgColor});};$.each(images,function(i,e){$(e).show();container.width=Math.max(container.width,$(e).width());container.height=Math.max(container.height,$(e).height());$(e).css({display:"none",position:"absolute",top:"0px",left:"0px",margin:"0px",padding:"0px",border:"none",zIndex:"1"}).addClass(pluginName+"_"+i);});$.each(images,function(i,e){$(e).css({marginLeft:(container.width-parseFloat($(e).width()))/2,marginTop:(container.height-parseFloat($(e).height()))/2});});$this.css({width:container.width,height:container.height});if(settings.enableBg){var overlay=$("<div />",{css:{position:"absolute",display:"block",top:"0px",right:"0px",bottom:"0px",left:"0px",margin:"0px",padding:"0px",width:"auto",height:"100%",backgroundColor:settings.bgColor,zIndex:"9"}});$this.prepend(overlay);$.extend(settings,{overlay:overlay});};$this.data(pluginName,settings);};methods.rotate.call($this);});},rotate:function(o){return this.each(function(){var $this=$(this),data=$this.data(pluginName);if(data){var delayTime=data.delay,overlay=data.overlay;if(o){$.extend(data,o);};if(typeof data.activeImg!="number"){data.nextImg=data.startImg;delayTime=0;};if(!$this.find("."+pluginName+"_"+data.nextImg).length){data.nextImg=0;};var nextImg=$this.find("."+pluginName+"_"+data.nextImg);if(overlay){overlay.css({display:"none"});};nextImg.siblings("img").css({zIndex:1});nextImg.css({zIndex:10}).delay(delayTime).fadeIn(data.speed,function(){nextImg.siblings("img").hide();data.activeImg=data.nextImg;data.nextImg=parseInt(data.nextImg+1);methods.rotate.call($this);});if(overlay){overlay.delay(delayTime).fadeIn(data.speed);};}});}};$.fn.tnt_imageRotation=function(m){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);*/















