window.log = function(){
  log.history = log.history || [];  
  log.history.push(arguments);
  arguments.callee = arguments.callee.caller;  
  if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});


/* 
 jQuery Tools 1.2.5 Tabs- The basics of UI design.
 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 http://flowplayer.org/tools/tabs/
 Since: November 2008
 Date:    Wed Sep 22 06:02:10 2010 +0000 
*/
(function(c){function p(d,b,a){var e=this,l=d.add(this),h=d.find(a.tabs),i=b.jquery?b:d.children(b),j;h.length||(h=d.children());i.length||(i=d.parent().find(b));i.length||(i=c(b));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(a.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(j>=0)return e;f=a.initialIndex;k=h.eq(f)}if(f===j)return e;
g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[a.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});j=f;h.removeClass(a.current);k.addClass(a.current);return e}},getConf:function(){return a},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return e.click(j+1)},prev:function(){return e.click(j-1)},destroy:function(){h.unbind(a.event).removeClass(a.current);
i.find("a[href^=#]").unbind("click.T");return e}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(a[g])&&c(e).bind(g,a[g]);e[g]=function(k){k&&c(e).bind(g,k);return e}});if(a.history&&c.fn.history){c.tools.history.init(h);a.event="history"}h.each(function(f){c(this).bind(a.event,function(g){e.click(f,g);return g.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(f){e.click(c(this).attr("href"),f)});if(location.hash&&a.tabs=="a"&&d.find("[href="+location.hash+"]").length)e.click(location.hash);
else if(a.initialIndex===0||a.initialIndex>0)e.click(a.initialIndex)}c.tools=c.tools||{version:"1.2.5"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,b){o[d]=b}};var o={"default":function(d,b){this.getPanes().hide().eq(d).show();b.call()},fade:function(d,b){var a=this.getConf(),e=a.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(a.fadeInSpeed,b)},slide:function(d,
b){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,b)},ajax:function(d,b){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),b)}},m;c.tools.tabs.addEffect("horizontal",function(d,b){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();b.call()})});c.fn.tabs=function(d,b){var a=this.data("tabs");if(a){a.destroy();this.removeData("tabs")}if(c.isFunction(b))b=
{onBeforeClick:b};b=c.extend({},c.tools.tabs.conf,b);this.each(function(){a=new p(c(this),d,b);c(this).data("tabs",a)});return b.api?a:this}})(jQuery);

/* 
 jQuery Tools 1.2.5 Slideshow - Extend it.
 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 http://flowplayer.org/tools/tabs/slideshow.html
 Since: September 2009
 Date:    Wed Sep 22 06:02:10 2010 +0000 
*/
(function(c){function p(g,a){function m(f){var e=c(f);return e.length<2?e:g.parent().find(f)}var b=this,i=g.add(this),d=g.data("tabs"),h,j=true,n=m(a.next).click(function(){d.next()}),k=m(a.prev).click(function(){d.prev()});c.extend(b,{getTabs:function(){return d},getConf:function(){return a},play:function(){if(h)return b;var f=c.Event("onBeforePlay");i.trigger(f);if(f.isDefaultPrevented())return b;h=setInterval(d.next,a.interval);j=false;i.trigger("onPlay");return b},pause:function(){if(!h)return b;
var f=c.Event("onBeforePause");i.trigger(f);if(f.isDefaultPrevented())return b;h=clearInterval(h);i.trigger("onPause");return b},stop:function(){b.pause();j=true}});c.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(f,e){c.isFunction(a[e])&&c(b).bind(e,a[e]);b[e]=function(q){return c(b).bind(e,q)}});a.autopause&&d.getTabs().add(n).add(k).add(d.getPanes()).hover(b.pause,function(){j||b.play()});a.autoplay&&b.play();a.clickable&&d.getPanes().click(function(){d.next()});if(!d.getConf().rotate){var l=
a.disabledClass;d.getIndex()||k.addClass(l);d.onBeforeClick(function(f,e){k.toggleClass(l,!e);n.toggleClass(l,e==d.getTabs().length-1)})}}var o;o=c.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3E3,clickable:false,api:false}};c.fn.slideshow=function(g){var a=this.data("slideshow");if(a)return a;g=c.extend({},o.conf,g);this.each(function(){a=new p(c(this),g);c(this).data("slideshow",a)});return g.api?a:this}})(jQuery);



/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);

/**
 * nmcFormHelper plugin - v1.0.5
 * Author: Eli Van Zoeren
 * Copyright (c) 2009 New Media Campaigns
 * http://www.newmediacampaigns.com
 **/
/**
 * More info: http://www.gethifi.com/blog/nmcformhelper
 * licensed under MIT: http://www.opensource.org/licenses/mit-license.php
 **/
var nmcFormHelper={init:function(){nmcFormHelper.input_classes.init();var a=document.createElement("input");"placeholder"in a||nmcFormHelper.placeholder.init();"autofocus"in a||nmcFormHelper.autofocus.init();"required"in a&&"pattern"in a||nmcFormHelper.validation.init()},input_classes:{init:function(){j$(":input").each(function(){var a=j$(this).attr("type");if(a=="undefined")a="text";j$(this).addClass("input-"+a)})}},placeholder:{styling:{color:"#aaa"},init:function(){j$("[placeholder]").focus(nmcFormHelper.placeholder.hide).blur(nmcFormHelper.placeholder.show).each(nmcFormHelper.placeholder.show);
j$("form").submit(function(){j$("[placeholder]",this).each(function(){j$input=j$(this);j$input.val()==j$input.attr("placeholder")&&j$input.val("");return true})});j$(window).unload(function(){j$("[placeholder]").each(nmcFormHelper.placeholder.hide)})},show:function(){j$input=j$(this);if(j$input.val()==""){if(j$input.attr("type")=="password")j$input=nmcFormHelper.placeholder.replacePassword(j$input,true);j$input.css(nmcFormHelper.placeholder.styling);j$input.val(j$input.attr("placeholder"))}},hide:function(){j$input=
j$(this);if(j$input.val()==j$input.attr("placeholder")){if(j$input.data("type")=="password")j$input=nmcFormHelper.placeholder.replacePassword(j$input,false);j$input.val("");j$input.attr("style",null);j$input.focus()}},replacePassword:function(a,b){newHtml=j$("<div>").append(a.clone()).remove().html();newHtml=newHtml.replace(/type=["']?(.+?)["']?/i,"");newHtml=b==true?newHtml.replace("input",'input type="text"'):newHtml.replace("input",'input type="password"');return j$(newHtml).replaceAll(a).data("type","password").focus(nmcFormHelper.placeholder.hide).blur(nmcFormHelper.placeholder.show)}},
autofocus:{init:function(){j$("[autofocus]").slice(0,1).focus()}},validation:{init:function(){j$("form").submit(nmcFormHelper.validation.check)},check:function(){j$form=j$(this);j$invalidElements=j$([]);var a=j$("input, textarea",j$form);a.removeClass("requiredError patternError");nmcFormHelper.validation.hideErrors(a);j$("input[required], textarea[required]",j$form).each(function(){var b=j$(this);if(b.val()==""||b.val()==b.attr("placeholder")){b.addClass("requiredError");j$invalidElements=j$invalidElements.add(b)}});
j$("input[pattern], textarea[pattern]",j$form).each(function(){var b=j$(this);if(!(new RegExp("^(?:"+b.attr("pattern")+")j$")).test(b.val())){b.addClass("patternError");j$invalidElements=j$invalidElements.add(b)}});if(j$invalidElements.length>0){nmcFormHelper.validation.displayErrors(j$invalidElements);return false}},hideErrors:function(a){a.removeClass("hasError");a.siblings("label.errorMsg").remove()},displayErrors:function(a){a.each(function(){j$this=j$(this);var b=j$this.attr("title")?j$this.attr("title"):
"There was an error with this field";j$this.after('<label for="'+j$this.attr("id")+'" class="errorMsg">'+b+"</label>")}).addClass("hasError")}}};

j$(document).ready(function() {
    nmcFormHelper.init();
 });


//Text Shadow Support 
/* Created by Martin Hintzmann 2008 martin [a] hintzmann.dk
 * MIT (http://www.opensource.org/licenses/mit-license.php) licensed.
 *
 * Version: 0.2
 * Requires: jQuery 1.2+
 * http://plugins.jquery.com/project/textshadow
 *
 */
(function($){$.fn.textShadow=function(option){if(!$.browser.msie)return;var IE6=$.browser.version<7;return this.each(function(){var el=$(this);var shadow=el.textShadowParse(this.currentStyle["text-shadow"]);shadow=$.extend(shadow,option);el.textShadowRemove();if(shadow.x==0&&shadow.y==0&&shadow.radius==0)return;if(el.css("position")=="static"){el.css({position:"relative"});}
el.css({zIndex:"0"});if(IE6){el.css({zoom:"1"});}
var span=document.createElement("span");$(span).addClass("jQueryTextShadow");$(span).html(el.html());$(span).css({padding:this.currentStyle["padding"],width:el.width(),position:"absolute",zIndex:"-1",color:shadow.color!=null?shadow.color:el.css("color"),left:(-parseInt(shadow.radius)+parseInt(shadow.x))+"px",top:(-parseInt(shadow.radius)+parseInt(shadow.y))+"px"});if(shadow.radius!=0){if(shadow.opacity!=null){$(span).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(shadow.radius)+", enabled='true', makeShadow='true', ShadowOpacity="+shadow.opacity+")").css("-ms-filter","'progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(shadow.radius)+", enabled='true', makeShadow='true', ShadowOpacity="+shadow.opacity+")'");}else{$(span).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(shadow.radius)+", enabled='true')");}}
el.append(span);});};$.fn.textShadowParse=function(value)
{value=String(value).replace(/^\s+|\s+$/gi,'').replace(/\s*!\s*important/i,'').replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,'($1/$2/$3/$4)').replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,'($1/$2/$3)')
var shadow={x:0,y:0,radius:0,color:null};if(value.length>1||value[0].toLowerCase()!='none'){value=value.replace(/\//g,',');var color;if(value.match(/(\#[0-9a-f]{6}|\#[0-9a-f]{3}|(rgb|hsb)a?\([^\)]*\)|\b[a-z]+\b)/i)&&(color=RegExp.$1)){shadow.color=color.replace(/^\s+/,'');value=value.replace(shadow.color,'');}
value=value.replace(/^\s+|\s+$/g,'').split(/\s+/).map(function(item){return(item||'').replace(/^0[a-z]*$/,'')?item:0;});switch(value.length)
{case 1:shadow.x=shadow.y=value[0];break;case 2:shadow.x=value[0];shadow.y=value[1];break;case 3:shadow.x=value[0];shadow.y=value[1];shadow.radius=value[2];break;}
if((!shadow.x&&!shadow.y&&!shadow.radius)||shadow.color=='transparent'){shadow.x=shadow.y=shadow.radius=0;shadow.color=null;}}
return shadow;};$.fn.textShadowRemove=function(){if(!$.browser.msie)return;return this.each(function(){$(this).children("span.jQueryTextShadow").remove();});};})(jQuery);if(typeof Array.prototype.map=='undefined'){Array.prototype.map=function(fnc){var a=new Array(this.length);for(var i=0;i<this.length;i++){a[i]=fnc(this[i]);}
return a;}}
 
