/**
 * Plura P Jquery Plugin Collection [http://plura.pt]
 * 
 * Copyright (c) 2011 Plura
 *
 * Date: 2011-06-04 12:00:00 (Tue, 04 June 2011)
 * Revision: 6246
 */
/**
 * Plura P Jquery Plugin Collection [http://plura.pt]
 * 
 * Copyright (c) 2011 Plura
 *
 * Date: 2011-06-04 12:00:00 (Tue, 04 June 2011)
 * Revision: 6246
 */
(function(e){e.fn.pCSS=function(d){var b,a=this;e.each(document.styleSheets,function(c,g){e.each(g.cssRules,function(c,i){RegExp(".*"+a.selector+"[^.:>].*{").test(i.cssText)&&i.cssText.match(RegExp("{.*"+d+":([^;]*)"))&&(b=i.cssText.match(RegExp("{.*"+d+":([^;]*)"))[1])})});return b};e.fn.pFXAccordion=function(d){var b=e.extend({},e.fn.pFXAccordion.defaults,d);return this.each(function(){e(this).children("ul").hide();e(this).children("a").click(function(){e(this).parent().children("ul").toggle(b.easing);
return false})})};e.fn.pFXAccordion.defaults={easing:"slow"};e.fn.pFXCorners=function(d){var b=e.extend({},e.fn.pFXCorners.defaults,d);e(this).each(function(a){b.single?e(this).wrap('<div class="pwp_corners_s"><div class="content img"></div></div>').before('<div class="t img"></div>').parent().after('<div class="b img"><div class="img"></div></div>'):e(this).wrap('<div class="pwp_corners_m"><div class="bd"><div class="c"><div class="s"></div></div></div></div>').prepend('<div class="hd"><div class="c"></div></div>').append('<div class="ft"><div class="c"></div></div>');
e(this).parent().parent().attr("id","pwp_corners_"+a)})};e.fn.pFXCorners.defaults={single:true};e.fn.pBookmark=function(){window.opera&&e(this).attr("rel")!==""&&e(this).attr("rel","sidebar");var d=document.location.href,b=document.title;if(window.sidebar.addPanel)window.sidebar.addPanel(b,d,"");else if(window.external)window.external.AddFavorite(d,b);else if(window.opera)return false;else alert("Unfortunately, this browser does not support the requested action, please bookmark this page manually.")};
jQuery.p={query:function(d,b){var a=RegExp("[\\?&]"+d+"=([^&#]*)").exec(b===void 0?window.location.href:b);return a===null?"":a[1]},send:function(){var d="mailto:?subject="+document.title;d+='&body=I thought you might be interested in this page, "'+document.title+'". ';d+="You can view it at: "+location.href;document.location.href=d},check:function(d,b,a){var c,g=!e.isArray(d)?[d]:d;for(c in d)if(b.match(g[c]))return a!==void 0?b.match(g[c]):b.match(g[c])[a];return false}}})(jQuery);
var plura={CONST:{PHP:$('script[src$="p.js"]').attr("src").replace(/p\.js$/,"p.php"),REGEX_EMAIL:/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,SWF:$('script[src$="p.js"]').attr("src").replace(/p\.js$/,"p.swf")},core:{loader:function(e){var d,b,a,c,g,k=function(a){a.dataType==="img"?(d[a.name]=$(new Image),d[a.name].error(function(){$(this).trigger("PLOADER_ERROR",h())}).load(function(){i(d[a.name])}).attr({src:a.path})):$.ajax({url:a.path,dataType:a.dataType,type:a.type,success:function(b){d[a.name]=
b;i(d[a.name])},error:function(){$(this).trigger("PLOADER_ERROR",h())}})},i=function(d){a[b]=d;c=Math.ceil((b+1)/g.length*100);$(this).trigger("PLOADER_COMPLETE_ITEM",h());b<g.length-1?j(++b):$(this).trigger("PLOADER_COMPLETE",h())},h=function(){return{content:d,index:b,items:a,item:$.extend({},g[b],{obj:d[g[b].name]}),progress:c}},j=function(a){k(g[a]);$(this).trigger("PLOADER_CHANGE",h())},e=$.extend(true,{},{data:null,log:false},e);content={};d={};a=[];b=0;g=function(a){var b,d=$.extend([],a);
for(b in a)if(a.hasOwnProperty(b)){if(!d[b].dataType)d[b].dataType=d[b].path.match(/\.(jpg|png|gif)$/i)?"img":"text";if(!d[b].label)d[b].label=d[b].path.match(/.*\/(.*\..*)$/)[1];if(!d[b].type)d[b].type="GET"}return d}(e.data);(function(){$(this).bind("PLOADER_CHANGE PLOADER_COMPLETE PLOADER_COMPLETE_ITEM PLOADER_ERROR",function(a,b){$(document).trigger(a.type,b)})})();this.data=d;this.items=a;j(b);return this}},form:{manager:function(e){var d,b,a,c=function(b){d.find("input[type=file]").each(function(c){a[c]=
new plura.form.upload($.extend({name:$(this).attr("name"),target:d},b));a[c].core.replaceAll($(this))})},g=function(b){var c=$.extend({},{not:":button, :submit, :reset",checked:true,selected:true,upload:true}),g=d.find(":input").not(c.not);g.val("");c.checked&&g.removeAttr("checked");c.selected&&g.removeAttr("selected");for(c=0;c<a.length;c++)a[c].reset(b||false)},k=function(){var a=d.serialize()+"&"+$.param(b.params||{});$.ajax({url:b.path,data:a,dataType:b.ajax.dataType,type:b.ajax.type,success:function(a){var c=
function(a,b){return typeof a==="string"?a:a.alert?a:$.extend(true,{},a,{alert:b})};d.trigger("PFORM_REQUEST_SUCCESS",c(a,b.alert.complete));a.success&&a.success==="true"?d.trigger("PFORM_PROCESS_SUCCESS",c(a,b.alert.success)):a.success&&a.success==="false"&&d.trigger("PFORM_PROCESS_ERROR",c(a,b.alert.error));b.reset&&g(true)},error:function(a,b,c){d.trigger("PFORM_REQUEST_ERROR",{xhr:a,textStatus:b,errorThrown:c,alert:c})}});d.trigger("PFORM_SUBMIT",{alert:b.alert.submit})};this.query=function(){return d.serialize()+
"&"+$.param(b.params||{})};this.reset=function(){g()};b=$.extend(true,{},{ajax:{dataType:"json",type:"GET"},alert:{complete:"Your form was submited.",error:"There was an error processing your form.",field:"Please correctly fill the % field. Thank you",submit:"Form is being submitted. Please wait.",success:"Your form was successfully processed! Thank you."},check:false,params:null,path:null,replace:true,reset:true,target:null,upload:{}},e);d=b.target.core||b.target;a=b.target.uploads||[];this.form=
d;(function(){b.replace&&c(b.upload);d.submit(function(a){a.preventDefault();if(!(a=!b.check))a:{var c,g,e;for(c=0;c<b.check.length;c++){a=b.check[c];e=a.rules?$.isArray(a.rules)?a.rules:[a.rules]:[{alert:a.alert||null}];for(g=0;g<e.length;g++){var m=plura.utils.test([/\./,/#/],a.id)?d.find(a.id):d.find("*[name="+a.id+"]");if(e[g].exp&&!plura.utils.test(e[g].exp,m.val())||m.val()===""){a=e[g].alert||b.alert.field.replace(/%/,a.id);d.trigger("PFORM_VALIDATION_ERROR",{alert:a});a=false;break a}}}a=
true}a&&k()}).find("input[type=reset]").click(function(a){a.preventDefault();g()})})();return this},obj:function(e){var d,b,a,c=window.location.href,g;this.populate=function(a){for(var b in a)a.hasOwnProperty(b)&&d.find("*[name="+b+"]").val(a[b])};this.refresh=function(b){var c,g,e,l;for(c in a.fields)if(a.fields.hasOwnProperty(c)&&a.fields[c].type==="select")for(g in l=d.find("*[name="+a.fields[c].name+"]").empty().append("<option/>"),e=b[a.fields[c].name],e)e.hasOwnProperty(g)&&$("<option/>").attr({value:e[g][a.fields[c].name]}).appendTo(l).text(e[g].name)};
this.reset=function(){b.reset()};a=$.extend(true,{},{alert:{success:"Success! Content updated!",error:"Error! Content not updated! :("},check:null,fields:null,params:null,submit:"Submit",upload:{path:"content/_temp/"}},e);d=$("<form/>").appendTo(a.target);g=[];(function(){var b,c;b=a.submit?a.fields.concat([{type:"submit",value:a.submit}]):a.fields;for(c=0;c<b.length;c++){var e=b[c],j=d,l=void 0;switch(e.type){case "select":l=$("<select/>");break;case "textarea":l=$("<textarea/>");break;case "file":l=
new plura.form.upload($.extend({name:e.name,target:j},a.upload));break;default:l=$("<input/>").attr({type:e.type||"text"})}e.value&&e.type.match(/(submit|text|textarea)/)&&l.val(e.value);e.label&&$("<label/>").text(e.label||e.name).appendTo(d);(!e.type||!e.type.match(/file/))&&l.attr({name:e.name}).appendTo(j);e.type&&e.type.match(/file/)&&g.push(l)}})();this.core=d;this.uploads=g;b=new plura.form.manager($.extend(true,{},{check:a.check||{},params:a.params||{},alert:a.alert||{}},{path:c,target:this,
type:"getJSON"}));return this},upload:function(e){var d,b,a=this,c,g,k,i=function(a,b,c){c.success==="true"&&d.instances["i"+a].files["i"+b].update(c)},h=function(a,b){var c=d.instances["i"+a],g=c.options,e=c.core.children(".files").length?c.core.children(".files"):$("<div/>").appendTo(c.core).addClass("files").css($.extend({},g.css.files,{"margin-top":g.margin,padding:g.margin+"px "+g.margin+"px 0 "+g.margin+"px",width:g.width-g.margin*2}));g.multiple||!g.multiple&&!c.files?(c.files=c.files||{},
c.files["i"+b]=new q($.extend(true,{},g.file,{id:b,name:g.name,path:g.path,process:g.process||plura.CONST.PHP,target:e,width:g.width})),c.files["i"+b].core.bind("PFORM_UPLOAD_CANCEL PFORM_UPLOAD_REMOVE",function(){e.children().length===1&&p()})):!g.multiple&&c.files&&c.files["i"+b].clean()},j=function(a,b,c){d.instances["i"+a].files["i"+b].refresh(c)},l=function(a){console&&console.log(a)},m=function(){b.children(".files").slideUp("slow",function(){$(this).remove()})},p=function(b){if(a.files){for(var c in a.files)a.files.hasOwnProperty(c)&&
(a.files[c].reset(b||false),delete a.files[c]);delete a.files}m()},q=function(a){var c={css:{button:{border:"none","float":"right","text-align":"center",width:50},file:{"float":"left",width:"100%"},progress:{"float":"left"}},height:20,label:{cancel:"Cancel",remove:"Delete"},margin:5,width:100},b,d,e,h,j=this,k,i,l=function(){d.slideUp("slow",function(){$(this).remove()});i.reset()},m=function(a){$.getJSON(k.process,{action:"delete",file:e.file,path:k.path,type:"upload"},function(b){b.success==="true"&&
a&&(l(),d.trigger("PFORM_UPLOAD_REMOVE"))})},q=function(a){if(e&&!a)m(true);else if(!e||e&&a)e||(g.cancel(k.id),d.trigger("PFORM_UPLOAD_CANCEL",{id:n})),l()};this.update=function(c){e=c;h=h||$("<input/>").attr({type:"hidden",name:a.name+"[]"}).appendTo(d);h.val(c.file+"|"+c.name);b.val(k.label.remove)};this.clean=function(){e&&m();b.val(k.label.cancel)};this.reset=function(a){q(a)};this.refresh=function(a){i.refresh(a)};(function(){k=$.extend(true,{},c,a);d=$("<div/>").addClass("file i"+k.id).appendTo(k.target);
i=new plura.layout.progressbar({target:d,css:{core:$.extend({},k.css.file,{width:k.width-k.margin*3-k.css.button.width})}});b=$("<input/>").attr({type:"button"}).val(k.label.cancel).addClass("delete").appendTo(d).click(function(){q()});j.core=d;d.css($.extend({},k.css.file,{"margin-bottom":k.margin}));b.css($.extend({},k.css.button,{height:k.height}))})();return this};this.reset=function(a){p(a)};d=plura.form.upload;d.count=d.count||0;c=$.extend(true,{},{css:{files:{"float":"left","background-color":"#e0e0e0"},
progress:{"float":"left"},trigger:{border:"none","float":"right","text-align":"center",width:70}},file:{},label:{cancel:"Cancel",remove:"Delete",upload:"Upload"},height:30,limit:0,margin:5,multiple:false,path:"",obj:"plura.form.upload",params:{allowscriptaccess:"always",menu:"false",wmode:"transparent"},process:null,version:"10.0",width:220},e);b=$("<div/>").css({position:"relative"}).addClass("upload i"+d.count).appendTo(c.target);new plura.layout.progressbar({target:b,css:{core:$.extend({},c.css.progress,
{width:c.width-c.css.trigger.width-c.margin,height:c.height})}});k=$("<input/>").attr({type:"button",value:c.label.upload}).addClass("trigger").appendTo(b);a.core=b;a.options=c;b.css({width:c.width});k.css($.extend({},c.css.trigger,{height:c.height}));(function(a){var d=$("<div/>").attr({id:"plura_form_upload_"+a}).appendTo(b),e=k.outerHeight(),a={id:a,limit:c.limit,multiple:c.multiple,obj:c.obj,path:c.path,process:c.process||plura.CONST.PHP,type:"upload"},h=$("<div/>");width=k.outerWidth();swfobject.embedSWF(plura.CONST.SWF,
d.attr("id"),width,e,c.version,null,a,c.params,null,function(a){g=swfobject.getObjectById(a.id);h.replaceAll(b);$("body").append(b);$("#"+a.id).css({left:k.position().left,position:"absolute",top:k.position().top,zIndex:100});b.replaceAll(h)})})(d.count);d.instances=d.instances||{};d.instances["i"+d.count]=a;d.complete=d.complete||i;d.init=d.init||h;d.refresh=d.refresh||j;d.test=d.test||l;++d.count;return this}},fx:{parallax:function(e){var d={enabled:{x:true,y:true},rectangle:{width:0,height:0,y:0,
x:0},restrict:{x:true,y:true},speed:8,target:null},b,a,c,g,k,i,h,j,l,m=function(){if(j&&!(!j.width&&j.enabled.x||!j.height&&j.enabled.y)){var d;c.x&&(j.width>b.width()&&!l.x||j.width<b.width()&&l.x)?(k=p()?g.x:k,d=-k*((b.width()-j.width)/j.width)+j.x,h.x+=(d-b.position().left)/a.speed,Math.abs(d-b.position().left)>1&&b.css({left:h.x})):c.x&&b.width();if(c.y&&(j.height>b.height()&&!l.y||j.height<b.height()&&l.y))i=p()?g.y:i,d=-i*((b.height()-j.height)/j.height)+j.y,h.y+=(d-b.position().top)/a.speed,
Math.abs(d-b.position().top)>1&&b.css({top:h.y});a.change&&a.change({mouse:g,rectangle:j,inside:p(),obj:b,position:h})}},p=function(){return j.x+g.x>j.x&&j.x+g.x<j.x+j.width&&j.y+g.y>j.y&&j.y+g.y<j.y+j.height?true:false};(function(){a=$.extend(true,{},d,e);b=a.target;c=a.enabled;j=a.rectangle;l=a.restrict;k=b.position().left;i=b.position().top;g={x:0,y:0};h={x:0,y:0};$(document).mousemove(function(a){g={x:a.pageX-b.parent().offset().left-j.x,y:a.pageY-b.parent().offset().top-j.y}});setInterval(m,
13)})();return this},resize:function(e){var d={height:null,target:null,width:null},b;(function(){b=$.extend({},d,e);b.target.each(function(){var a,c;a=$(this).width();c=$(this).height();var d=b.width,e=b.height,i,h;d!==null&&e===null?(h=d,i=d*c/a):d===null&&e!==null?(h=e*a/c,i=e):d===null&&e===null&&(h=(i=a/c<$(window).width()/$(window).height())?$(window).width()/a*a:$(window).height()/c*a,i=i?$(window).width()/a*c:$(window).height()/c*c);a=h;c=i;$(this).css({width:"auto",height:"auto"}).width(a).height(c)})})()}},
layout:{progressbar:function(e){var d={bottom:true,css:{core:{width:200,height:20,border:"2px solid #000"},bar:{backgroundColor:"#000"}},hide:false,horizontal:true,target:$("body")},b,a,c;this.refresh=function(d){a.height(b.height()).width(b.width()*d/100).show();d===100&&c.hide&&b.stop().fadeOut("slow")};this.reset=function(){a.fadeIn()};c=$.extend(true,{},d,e);b=$("<div/>").appendTo(c.target).addClass("plura progress").css(c.css.core);a=$("<div/>").appendTo(b).addClass("bar").css(c.css.bar).hide();
(function(a){a.height(a.height()-parseInt(a.css("border-top-width"),10)*2).width(a.width()-parseInt(a.css("border-top-width"),10)*2)})(b);this.core=b;this.bar=a},loaderbar:function(e){var d;(function(){d=new plura.layout.progressbar(e);$(document).bind("PLOADER_COMPLETE_ITEM",function(b,a){d.refresh(a.progress)})})()},refresh:function(e){var d={event:{change:false,refresh:function(a){return a}},data:false,fade:true,json:false,limit:1,refresh:true,speed:"slow",target:$("body"),time:1E4},b,a,c,g=0,
k,i,h=function(d){c.fade?b.fadeOut(c.speed,function(){b.html(c.event.refresh(d)).fadeIn(c.speed);c.event.change&&c.event.change(a)}):(a.html(d),c.event.change&&c.event.change(a));c.refresh&&(clearInterval(i),i=setInterval(l,c.time))},j=function(a,b){var d,e=[];for(d in c.data)if(c.data.hasOwnProperty(d)){var g=Math.floor(d/b);e[g]=e[g]||[];e[g].push(a[d])}return e},l=function(){typeof c.data==="string"?c.json?$.getJSON(c.data,null,function(a){h(a)}):$.get(c.data,null,function(a){h(a)}):typeof c.data===
"object"&&(h(k[g%k.length]),++g)};c=$.extend(true,{},d,e);a=c.target;b=$("<div/>").appendTo(a).addClass("holder");typeof c.data==="object"&&(k=j(c.data,c.limit));l()},slideshow:function(e){var d={auto:true,center:false,controls:false,css:{target:{position:"relative"}},data:null,height:null,navigation:{height:null,limit:0,margin:5,overflow:false,parallax:null,width:null},path:"",resize:false,target:$("body"),timer:4E3,width:null},b=this,a,c=1,g=0,k,i,h,j,l,m,p=function(b){h=b;a.navigation&&q(b);r()},
q=function(b){var c=$("<div/>").prependTo(i).addClass("nav").css({position:"absolute",zIndex:10}),d=$("<div/>").prependTo(c).addClass("holder").css({position:"absolute",zIndex:2});if(a.navigation.parallax){var e=$.extend(true,{rectangle:{x:0,y:0},target:d},a.navigation.parallax);$("<div/>").prependTo(c).addClass("parallax").css({position:"absolute",zIndex:1,width:e.rectangle.width,height:e.rectangle.height});plura.fx.parallax(e);a.navigation.overflow||c.css({overflow:"hidden",width:e.rectangle.width,
height:e.rectangle.height})}var h=$.extend({limit:a.navigation.limit||0,margin:a.navigation.margin||10},a.navigation);$(b).each(function(c){var e=$(new Image).appendTo(d).addClass("nav"+c).data({index:c}).hide().load(function(){(h.width||h.height)&&plura.fx.resize({width:a.navigation.width,height:a.navigation.height,target:$(this)});var d=c%h.limit!==0&&c>0?$(this).prev().width()+$(this).prev().position().left+h.margin:0,e=c%h.limit!==0&&c>0?$(this).prev().position().top:c%h.limit===0&&c>0?$(this).prev().position().top+
$(this).prev().height()+h.margin:0;$(this).css({position:"absolute",left:d,top:e});d=c>0&&$(this).prev().position().left+$(this).prev().width()>d+$(this).width()?$(this).prev().position().left+$(this).prev().width():d+$(this).width();e=c>0&&$(this).prev().position().top+$(this).prev().height()>e+$(this).height()?$(this).prev().position().top+$(this).prev().height():e+$(this).height();$(this).parent().width(d).height(e);$(this).fadeIn();$(this).next().length&&$(this).next().attr({src:a.path+b[c+1].thumb})}).click(function(){g=
$(this).data("index");r()});c===0&&e.attr({src:a.path+b[c].thumb})})},r=function(){s(i.find(".img"+c),true);c=c===1?2:1;l=g;g=g<h.length-1?g+1:0},s=function(c,b){b?(k!==void 0&&s(k,false),k=c,c.load(function(){$(this).css({width:"auto",height:"auto"}).fadeIn();a.resize&&plura.fx.resize({width:a.width,height:a.height,target:$(this)});a.center&&$(this).css({marginLeft:-$(this).width()/2,left:"50%"});a.auto&&h.length>1&&(clearTimeout(m),m=setTimeout(r,a.timer))}).attr({src:a.path+h[g].file}),a.navigation&&
i.find(".nav"+g).addClass("active")):(c.fadeOut(),a.navigation&&i.find(".nav"+l).removeClass("active"))};this.pause=function(){clearTimeout(m);j&&(m=setTimeout(r,a.timer));j=!j};(function(){a=$.extend({},d,e);i=$("<div/>").appendTo(a.target).addClass("plura slideshow").css(a.css.target);j=false;$("<div/>").appendTo(i).addClass("media").css({position:"relative"});$("<img/>").prependTo(i.find(".media")).addClass("img1").css({position:"absolute"}).hide();$("<img/>").prependTo(i.find(".media")).addClass("img2").css({position:"absolute"}).hide();
typeof a.data==="string"?$.getJSON(a.data,function(a){p(a)}):typeof a.data==="object"&&p(a.data);b.core=i})();return this},social:function(e){var d,e=$.extend({},true,{like:{action:"like",colorsheme:"light",font:null,href:null,layout:"standard",show_faces:true,width:450},twitter:{count:"horizontal",related:{text:null,via:null},text:null,via:null,url:null},target:null},e),b=function(a){var b=$("<div/>").appendTo(d).addClass("fb-like"),e=[],i;$.extend(true,a,{height:a.layout==="button_count"?21:a.layout===
"box_count"?65:a.show_faces?80:35});for(i in a)a.hasOwnProperty(i)&&e.push(i+"="+(a[i]||""));f=$("<iframe/>").appendTo(b).css({width:a.width,height:a.height,border:"none",overflow:"hidden"}).attr({allowTransparency:"true",frameborder:0,scrolling:"no",src:"http://www.facebook.com/plugins/like.php?"+e.join("&amp;")})},a=function(a){var b=$("<div/>").appendTo(d).addClass("twitter"),e=$("<a/>").appendTo(b).attr({href:"http://twitter.com/share"}).addClass("twitter-share-button").html("Tweet"),i=document.createElement("script"),
h;for(h in a)a.hasOwnProperty(h)&&(h==="related"?a[h].user&&e.attr("data-"+h,a[h].user+(a[h].text?":"+a[h].text:"")):a[h]&&e.attr("data-"+h,a[h]));$(i).attr({type:"text/javascript",src:"http://platform.twitter.com/widgets.js"}).appendTo(b)};d=$("<div/>").addClass("share");e.target&&d.appendTo(e.target);e.like&&b(e.like);e.twitter&&a(e.twitter);return d}},media:{audio:function(e){var d,b=this,a=false,c,g=$.extend(true,{},{data:null,css:{flash:{position:"relative",height:0,width:0},test:{position:"absolute",
zIndex:1E3,width:400,height:400}},fade:true,flash:{id:"audio"},pause:true,path:null,params:null,target:"body",test:false},e);this.pause=function(b){(a=b)?d.find(".pause").addClass("active"):d.find(".pause").removeClass("active");c.pause()};var k=function(){d=$("<div/>").appendTo(g.target).addClass("pAudio").css({position:"relative"});var c=$("<ul/>").appendTo(d).addClass("menu");g.pause&&$("<li/>").appendTo(c).click(function(){b.pause(!a)}).addClass("pause").html("Pause");g.fade&&c.hide()},i=function(a){var b=
$("<div/>").appendTo(d).css(g.css.flash).addClass("flash"),e=$("<div/>").appendTo(b).attr({id:"plura_media_audio_swf"}),a=$.extend(true,{},{content:a,type:"audio"},g.flash);swfobject.embedSWF(plura.CONST.SWF,e.attr("id"),"100%","100%","10.0.0",null,a,null,null,function(a){c=swfobject.getObjectById(a.id)});g.test&&b.css(g.css.test)};this.fade=function(){d.find(".menu").fadeIn("slow")};this.init=function(){k();g.data?i(g.data):g.path&&$.get(g.path,function(a){i(a)})};this.init()}},net:{browser:function(){this.agent=
navigator.appName;this.version=parseInt(navigator.appVersion,10);this.ie=this.agent.match(/explorer/i);this.ios=navigator.userAgent.match(/(iPhone|iPod|iPad)/i);if(this.ie)this.version=parseInt(navigator.appVersion.match(/msie ([0-9\.]+)/i)[1],10)},urlmanager:function(e){var d=this,b=$.extend(true,{},{analytics:true},e);this.path=function(a){return a.match(this.root+".*?([^=]*[^/])/?$")[1]};this.url=function(a){return this.root+"#/"+this.path(a)+"/"};this.set=function(a){window.location.href=this.url(a);
this.current=this.path(a);this.history.push(this.current);b.analytics&&window._gaq&&_gaq.push(["_trackPageview","/"+this.current+"/"])};(function(){var a=window.location.href;d.root=a.match(/^([^#]*\/).*$/)[1];d.current=a.match(/#\/(.*[^\/])/)?a.match(/#\/(.*[^\/])/)[1]:null;d.history=[];d.index=0})()}},utils:{test:function(e,d){var b;if($.isArray(e))for(b=0;b<e.length;b++){if(plura.utils.test(e[b],d))return true}else return typeof e==="string"&&(e=RegExp(e.replace(/^(\/)(.*)(\/)$/,"$2"))),e.test(d);
return false}}},pTabs=function(e){var d,b,a,c=function(c){var d=c.attr("href")?$(c.attr("href")):$(c.data("href"));if(!b||b.attr("id")!==d.attr("id"))b&&(b.hide(o.speed),a.removeClass(o.active).addClass(o.inactive)),b=d,a=c,d.show(o.speed,o.show),c.removeClass(o.inactive).addClass(o.active)};d=$.extend(true,{},{active:"pTabActive",hide:true,index:false,show:null,speed:"slow",inactive:"pTabInactive"},e).target;(function(){d.each(function(a){$(this).attr("href")&&!$(this).attr("href").match(/^#/)||
$(this).data("href")&&!$(this).data("href").match(/^#/)||($(this).click(function(a){a.preventDefault();c($(this))}).addClass(o.inactive),o.hide&&$($(this).attr("href")).css({display:"none"}),o.index===a&&c($(this)))})})()};
