Deprecated : Function create_function() is deprecated in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/pomo/translations.php on line 208
Deprecated : Function create_function() is deprecated in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/pomo/translations.php on line 208
Deprecated : Function create_function() is deprecated in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/pomo/translations.php on line 208
Deprecated : Function create_function() is deprecated in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/pomo/translations.php on line 208
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
Warning : Cannot modify header information - headers already sent by (output started at /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-includes/compat.php:502) in /nfs/c08/h05/mnt/171889/domains/mmdna.com/html/wp-core/plugins/w3-total-cache/lib/Minify/Minify.php on line 368
/* global WPGroHo:true, Gravatar */
WPGroHo = jQuery.extend( {
my_hash: '',
data: {},
renderers: {},
syncProfileData: function( hash, id ) {
if ( !WPGroHo.data[hash] ) {
WPGroHo.data[hash] = {};
jQuery( 'div.grofile-hash-map-' + hash + ' span' ).each( function() {
WPGroHo.data[hash][this.className] = jQuery( this ).text();
} );
}
WPGroHo.appendProfileData( WPGroHo.data[hash], hash, id );
},
appendProfileData: function( data, hash, id ) {
for ( var key in data ) {
if ( jQuery.isFunction( WPGroHo.renderers[key] ) ) {
return WPGroHo.renderers[key]( data[key], hash, id, key );
}
jQuery( '#' + id ).find( 'h4' ).after( jQuery( '' ).html( data[key] ) );
}
}
}, WPGroHo );
jQuery( document ).ready( function() {
if ( 'undefined' === typeof Gravatar ) {
return;
}
Gravatar.profile_cb = function( h, d ) {
WPGroHo.syncProfileData( h, d );
};
Gravatar.my_hash = WPGroHo.my_hash;
Gravatar.init( 'body', '#wpadminbar' );
} );
;jQuery(document).ready(function($){
var positionElementInPage = $('#nav').offset().top;
$(window).scroll(
function() {
if ($(window).scrollTop() >= positionElementInPage) {
// fixed
$('#nav').addClass("floatable");
$('#text_header_contain').css('display','none');
$('#text_header').addClass('animated hinge fadeIn');
setTimeout(function(){
$('#text_header').removeClass('animated hinge fadeIn');
},1500);
$('.discover').addClass('animated fadeInUp');
setTimeout(function(){
$('.discover').removeClass('animated fadeInUp');
},1500);
$('#right_slide_head').css('display','none');
$('#left_slide_head').css('display','none');
$('#container_discover').css('display','none');
$('#container_nav_header').css('display','none');
$('#slides').css('opacity','0');
$('#slide').css('opacity','0');
} else {
// relative
$('#nav').removeClass("floatable");
$('#text_header_contain').css('display','block');
$('#text_header').css('display','block');
$('#right_slide_head').css('display','block');
$('#left_slide_head').css('display','block');
$('#container_discover').css('display','block');
$('#container_nav_header').css('display','block');
$('#slides').css('opacity','1');
$('#slide').css('opacity','1');
}
}
);
$("#top").on("click", "#top_content", function(){
$("#menu_phone li").toggleClass("show");
});
$("#top").on("click", "#menu_phone li", function(){
$("#menu_phone li").toggleClass("show");
});
});
jQuery(window).load(function () {
$(function() {
$('#nav #menu table tr td a').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
$('#menu_phone ul a').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
$('.discover a').each(function(){
$(this).bind('click',function(event){
var $anchor = $(this);
console.log($anchor);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
})
$('#contact_nav').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
$('#team_contact').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
$('#text_contact').bind('click',function(event){
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
$('#top_mail').bind('click',function(event){
var $anchor = $(this).parent();
$('html, body').stop().animate({
scrollTop: $($anchor.attr('href')).offset().top
}, 1500,'easeInOutExpo');
event.preventDefault();
});
});
if($('#header').length > 0){
var positionHeaderInPage = $('#header').offset().top;
$(window).scroll(
function() {
if ($(window).scrollTop() >= positionHeaderInPage) {
// actif
$('.menu_links').removeClass("active");
$("#current_menu_phone").html("home ");
}
}
);
}
$(window).scroll(function(){
$('.cat').each(function(){
var positionCatInPage = $(this).offset().top - 10;
if($(window).scrollTop() >= positionCatInPage){
var title = $(this).find('.title');
var id = $(title).text();
//var t = id.split(" ");
//var title1 = t[0];
//var title2 = t[1];
var idmenu = $(this).attr('id');
var menu = $('#menu_' + idmenu + '');
$('.menu_links').removeClass("active");
menu.addClass('active');
//$('#current_menu_phone').html(title1 + '' + title2 + ' ');
$('#current_menu_phone').html('' + id + ' ');
}
});
});
});
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t/=d)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
},
easeInOutQuad: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t + b;
return -c/2 * ((--t)*(t-2) - 1) + b;
},
easeInCubic: function (x, t, b, c, d) {
return c*(t/=d)*t*t + b;
},
easeOutCubic: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t + 1) + b;
},
easeInOutCubic: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t + b;
return c/2*((t-=2)*t*t + 2) + b;
},
easeInQuart: function (x, t, b, c, d) {
return c*(t/=d)*t*t*t + b;
},
easeOutQuart: function (x, t, b, c, d) {
return -c * ((t=t/d-1)*t*t*t - 1) + b;
},
easeInOutQuart: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
return -c/2 * ((t-=2)*t*t*t - 2) + b;
},
easeInQuint: function (x, t, b, c, d) {
return c*(t/=d)*t*t*t*t + b;
},
easeOutQuint: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t*t*t + 1) + b;
},
easeInOutQuint: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
return c/2*((t-=2)*t*t*t*t + 2) + b;
},
easeInSine: function (x, t, b, c, d) {
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
},
easeOutSine: function (x, t, b, c, d) {
return c * Math.sin(t/d * (Math.PI/2)) + b;
},
easeInOutSine: function (x, t, b, c, d) {
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
},
easeInExpo: function (x, t, b, c, d) {
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
},
easeOutExpo: function (x, t, b, c, d) {
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
},
easeInOutExpo: function (x, t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
},
easeInCirc: function (x, t, b, c, d) {
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
},
easeOutCirc: function (x, t, b, c, d) {
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
},
easeInOutCirc: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
},
easeInElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
},
easeOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
},
easeInOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
},
easeInBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*(t/=d)*t*((s+1)*t - s) + b;
},
easeOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
},
easeInOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
},
easeInBounce: function (x, t, b, c, d) {
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
},
easeOutBounce: function (x, t, b, c, d) {
if ((t/=d) < (1/2.75)) {
return c*(7.5625*t*t) + b;
} else if (t < (2/2.75)) {
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
} else if (t < (2.5/2.75)) {
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
} else {
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
}
},
easeInOutBounce: function (x, t, b, c, d) {
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
}
});
/*
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright © 2001 Robert Penner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
;jQuery(function($) {
$(".button_footer").click(function() {
// validate and process form
// first hide any error messages
var name = $("input#name").val();
if (name == "") {
$('#submit_btn').addClass('animated shake');
$("input#name").focus();
setTimeout(function(){
$('#submit_btn').removeClass('animated shake');
},1000);
return false;
}
var email = $("input#email").val();
if (email == "") {
$('#submit_btn').addClass('animated shake');
$("input#email").focus();
setTimeout(function(){
$('#submit_btn').removeClass('animated shake');
},1000);
return false;
}
var message = $("#message").val();
if (message == "") {
$('#submit_btn').addClass('animated shake');
$("#message").focus();
setTimeout(function(){
$('#submit_btn').removeClass('animated shake');
},1000);
return false;
}
var mailTo = $('#mailTo').val();
var blog_name = $('#blog_name').val();
var dataString = 'name='+ name + '&email=' + email + '&message=' + message + '&mailTo=' + mailTo + '&blog_name=' + blog_name;
//alert (dataString);return false;
$.ajax({
type: "POST",
url: "wp-content/themes/k-theme/contact.php",
data: dataString,
success: function() {
$('#contact_form').find('input:text').val('');
$('#contact_form').find('textarea').val('');
$('#contact_form').find('input:submit').val('DONE');
$('#contact_form').find('input:submit').css('background-color','#8fc745');
setTimeout(function(){
$('#contact_form').find('input:submit').val('SEND');
$('#contact_form').find('input:submit').css('background-color','rgba(0,0,0,0.2)');
},2500);
return false;
}
});
return false;
});
});
(function($) {
// @todo Document this.
$.extend($,{ placeholder: {
browser_supported: function() {
return this._supported !== undefined ?
this._supported :
( this._supported = !!('placeholder' in $(' ')[0]) );
},
shim: function(opts) {
var config = {
color: '#888',
cls: 'placeholder',
selector: 'input[placeholder], textarea[placeholder]'
};
$.extend(config,opts);
return !this.browser_supported() && $(config.selector)._placeholder_shim(config);
}
}});
$.extend($.fn,{
_placeholder_shim: function(config) {
function calcPositionCss(target)
{
var op = $(target).offsetParent().offset();
var ot = $(target).offset();
return {
top: ot.top - op.top,
left: ot.left - op.left,
width: $(target).width()
};
}
function adjustToResizing(label) {
var $target = label.data('target');
if(typeof $target !== "undefined") {
label.css(calcPositionCss($target));
$(window).one("resize", function () { adjustToResizing(label); });
}
}
return this.each(function() {
var $this = $(this);
if( $this.is(':visible') ) {
if( $this.data('placeholder') ) {
var $ol = $this.data('placeholder');
$ol.css(calcPositionCss($this));
return true;
}
var possible_line_height = {};
if( !$this.is('textarea') && $this.css('height') != 'auto') {
possible_line_height = { lineHeight: $this.css('height'), whiteSpace: 'nowrap' };
}
var ol = $(' ')
.text($this.attr('placeholder'))
.addClass(config.cls)
.css($.extend({
position:'absolute',
display: 'inline',
float:'none',
overflow:'hidden',
textAlign: 'left',
color: config.color,
cursor: 'text',
paddingTop: $this.css('padding-top'),
paddingRight: $this.css('padding-right'),
paddingBottom: $this.css('padding-bottom'),
paddingLeft: $this.css('padding-left'),
fontSize: $this.css('font-size'),
fontFamily: $this.css('font-family'),
fontStyle: $this.css('font-style'),
fontWeight: $this.css('font-weight'),
textTransform: $this.css('text-transform'),
backgroundColor: 'transparent',
zIndex: 99
}, possible_line_height))
.css(calcPositionCss(this))
.attr('for', this.id)
.data('target',$this)
.click(function(){
$(this).data('target').focus();
})
.insertBefore(this);
$this
.data('placeholder',ol)
.focus(function(){
ol.hide();
}).blur(function() {
ol[$this.val().length ? 'hide' : 'show']();
}).triggerHandler('blur');
$(window).one("resize", function () { adjustToResizing(ol); });
}
});
}
});
})(jQuery);
jQuery(document).add(window).bind('ready load', function() {
if (jQuery.placeholder) {
jQuery.placeholder.shim();
}
});
;/* QuoJS v2.3.1 - 2/4/2013
http://quojs.tapquo.com
Copyright (c) 2013 Javi Jimenez Villar (@soyjavi) - Licensed MIT */
var Quo;Quo=function(){var e,t,n;return t=[],e=function(t,r){var i;return t?e.toType(t)==="function"?e(document).ready(t):(i=e.getDOMObject(t,r),n(i,t)):n()},n=function(e,r){return e=e||t,e.__proto__=n.prototype,e.selector=r||"",e},e.extend=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){var n,r;r=[];for(n in t)r.push(e[n]=t[n]);return r}),e},n.prototype=e.fn={},e}(),window.Quo=Quo,"$$"in window||(window.$$=Quo),function(e){var t,n,r,i,s,o,u,a;return t=[],i=Object.prototype,r=/^\s*<(\w+|!)[^>]*>/,s=document.createElement("table"),o=document.createElement("tr"),n={tr:document.createElement("tbody"),tbody:s,thead:s,tfoot:s,td:o,th:o,"*":document.createElement("div")},e.toType=function(e){return i.toString.call(e).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},e.isOwnProperty=function(e,t){return i.hasOwnProperty.call(e,t)},e.getDOMObject=function(t,n){var i,s,o;i=null,s=[1,9,11],o=e.toType(t);if(o==="array")i=u(t);else if(o==="string"&&r.test(t))i=e.fragment(t.trim(),RegExp.$1),t=null;else if(o==="string")i=e.query(document,t),n&&(i.length===1?i=e.query(i[0],n):i=e.map(function(){return e.query(i,n)}));else if(s.indexOf(t.nodeType)>=0||t===window)i=[t],t=null;return i},e.map=function(t,n){var r,i,s,o;o=[],r=void 0,i=void 0;if(e.toType(t)==="array"){r=0;while(r=0}))},e.fn.forEach=t.forEach,e.fn.indexOf=t.indexOf,u=function(e){return e.filter(function(e){return e!==void 0&&e!==null})},a=function(e){return e.length>0?[].concat.apply([],e):e}}(Quo),function(e){var t,n,r,i,s,o,u;return r=null,t=/WebKit\/([\d.]+)/,n={Android:/(Android)\s+([\d.]+)/,ipad:/(iPad).*OS\s([\d_]+)/,iphone:/(iPhone\sOS)\s([\d_]+)/,Blackberry:/(BlackBerry|BB10|Playbook).*Version\/([\d.]+)/,FirefoxOS:/(Mozilla).*Mobile[^\/]*\/([\d\.]*)/,webOS:/(webOS|hpwOS)[\s\/]([\d.]+)/},e.isMobile=function(){return r=r||s(),r.isMobile&&r.os.name!=="firefoxOS"},e.environment=function(){return r=r||s(),r},e.isOnline=function(){return navigator.onLine},s=function(){var e,t;return t=navigator.userAgent,e={},e.browser=i(t),e.os=o(t),e.isMobile=!!e.os,e.screen=u(),e},i=function(e){var n;return n=e.match(t),n?n[0]:e},o=function(e){var t,r,i;t=null;for(r in n){i=e.match(n[r]);if(i){t={name:r==="iphone"||r==="ipad"?"ios":r,version:i[2].replace("_",".")};break}}return t},u=function(){return{width:window.innerWidth,height:window.innerHeight}}}(Quo),function(e){var t,n,r,i,s,o;return r="parentNode",t=/^\.([\w-]+)$/,n=/^#[\w\d-]+$/,i=/^[\w-]+$/,e.query=function(e,r){var s;return r=r.trim(),t.test(r)?s=e.getElementsByClassName(r.replace(".","")):i.test(r)?s=e.getElementsByTagName(r):n.test(r)&&e===document?(s=e.getElementById(r.replace("#","")),s||(s=[])):s=e.querySelectorAll(r),s.nodeType?[s]:Array.prototype.slice.call(s)},e.fn.find=function(t){var n;return this.length===1?n=Quo.query(this[0],t):n=this.map(function(){return Quo.query(this,t)}),e(n)},e.fn.parent=function(e){var t;return t=e?o(this):this.instance(r),s(t,e)},e.fn.siblings=function(e){var t;return t=this.map(function(e,t){return Array.prototype.slice.call(t.parentNode.children).filter(function(e){return e!==t})}),s(t,e)},e.fn.children=function(e){var t;return t=this.map(function(){return Array.prototype.slice.call(this.children)}),s(t,e)},e.fn.get=function(e){return e===undefined?this:this[e]},e.fn.first=function(){return e(this[0])},e.fn.last=function(){return e(this[this.length-1])},e.fn.closest=function(t,n){var r,i;i=this[0],r=e(t),r.length||(i=null);while(i&&r.indexOf(i)<0)i=i!==n&&i!==document&&i.parentNode;return e(i)},e.fn.each=function(e){return this.forEach(function(t,n){return e.call(t,n,t)}),this},o=function(t){var n;n=[];while(t.length>0)t=e.map(t,function(e){if((e=e.parentNode)&&e!==document&&n.indexOf(e)<0)return n.push(e),e});return n},s=function(t,n){return n===undefined?e(t):e(t).filter(n)}}(Quo),function(e){var t,n,r;return t=["-webkit-","-moz-","-ms-","-o-",""],e.fn.addClass=function(e){return this.each(function(){if(!r(e,this.className))return this.className+=" "+e,this.className=this.className.trim()})},e.fn.removeClass=function(e){return this.each(function(){if(!e)return this.className="";if(r(e,this.className))return this.className=this.className.replace(e," ").replace(/\s+/g," ").trim()})},e.fn.toggleClass=function(e){return this.each(function(){return r(e,this.className)?this.className=this.className.replace(e," "):(this.className+=" "+e,this.className=this.className.trim())})},e.fn.hasClass=function(e){return r(e,this[0].className)},e.fn.style=function(e,t){return t?this.each(function(){return this.style[e]=t}):this[0].style[e]||n(this[0],e)},e.fn.css=function(e,t){return this.style(e,t)},e.fn.vendor=function(e,n){var r,i,s,o;o=[];for(i=0,s=t.length;i=0},n=function(e,t){return document.defaultView.getComputedStyle(e,"")[t]}}(Quo),function(e){return e.fn.attr=function(t,n){return e.toType(t)==="string"&&n===void 0?this[0].getAttribute(t):this.each(function(){return this.setAttribute(t,n)})},e.fn.removeAttr=function(e){return this.each(function(){return this.removeAttribute(e)})},e.fn.data=function(e,t){return this.attr("data-"+e,t)},e.fn.removeData=function(e){return this.removeAttr("data-"+e)},e.fn.val=function(t){return e.toType(t)==="string"?this.each(function(){return this.value=t}):this.length>0?this[0].value:null},e.fn.show=function(){return this.style("display","block")},e.fn.hide=function(){return this.style("display","none")},e.fn.height=function(){var e;return e=this.offset(),e.height},e.fn.width=function(){var e;return e=this.offset(),e.width},e.fn.offset=function(){var e;return e=this[0].getBoundingClientRect(),{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:e.width,height:e.height}},e.fn.remove=function(){return this.each(function(){if(this.parentNode!=null)return this.parentNode.removeChild(this)})}}(Quo),function(e){return e.fn.text=function(t){return t||e.toType(t)==="number"?this.each(function(){return this.textContent=t}):this[0].textContent},e.fn.html=function(t){var n;return n=e.toType(t),t||n==="number"||n==="string"?this.each(function(){return n==="string"||n==="number"?this.innerHTML=t:(this.innerHTML=null,this.appendChild(t))}):this[0].innerHTML},e.fn.append=function(t){var n;return n=e.toType(t),this.each(function(){var e=this;return n==="string"?this.insertAdjacentHTML("beforeend",t):n==="array"?t.each(function(t,n){return e.appendChild(n)}):this.appendChild(t)})},e.fn.prepend=function(t){var n;return n=e.toType(t),this.each(function(){var e=this;return n==="string"?this.insertAdjacentHTML("afterbegin",t):n==="array"?t.each(function(t,n){return e.insertBefore(n,e.firstChild)}):this.insertBefore(t,this.firstChild)})},e.fn.replaceWith=function(t){var n;return n=e.toType(t),this.each(function(){var e=this;if(this.parentNode)return n==="string"?this.insertAdjacentHTML("beforeBegin",t):n==="array"?t.each(function(t,n){return e.parentNode.insertBefore(n,e)}):this.parentNode.insertBefore(t,this)}),this.remove()},e.fn.empty=function(){return this.each(function(){return this.innerHTML=null})}}(Quo),function(e){var t,n,r,i,s,o,u,a,f,l,c;return t={TYPE:"GET",MIME:"json"},r={script:"text/javascript, application/javascript",json:"application/json",xml:"application/xml, text/xml",html:"text/html",text:"text/plain"},n=0,e.ajaxSettings={type:t.TYPE,async:!0,success:{},error:{},context:null,dataType:t.MIME,headers:{},xhr:function(){return new window.XMLHttpRequest},crossDomain:!1,timeout:0},e.ajax=function(n){var r,u,l;u=e.mix(e.ajaxSettings,n),u.type===t.TYPE?u.url+=e.serializeParameters(u.data,"?"):u.data=e.serializeParameters(u.data);if(i(u.url))return e.jsonp(u);l=u.xhr(),l.onreadystatechange=function(){if(l.readyState===4)return clearTimeout(r),f(l,u)},l.open(u.type,u.url,u.async),a(l,u),u.timeout>0&&(r=setTimeout(function(){return c(l,u)},u.timeout));try{l.send(u.data)}catch(h){l=h,o("Resource not found",l,u)}return u.async?l:s(l,u)},e.jsonp=function(t){var r,i,s,o;return t.async?(i="jsonp"+ ++n,s=document.createElement("script"),o={abort:function(){e(s).remove();if(i in window)return window[i]={}}},r=void 0,window[i]=function(n){return clearTimeout(r),e(s).remove(),delete window[i],l(n,o,t)},s.src=t.url.replace(RegExp("=\\?"),"="+i),e("head").append(s),t.timeout>0&&(r=setTimeout(function(){return c(o,t)},t.timeout)),o):console.error("QuoJS.ajax: Unable to make jsonp synchronous call.")},e.get=function(t,n,r,i){return e.ajax({url:t,data:n,success:r,dataType:i})},e.post=function(e,t,n,r){return u("POST",e,t,n,r)},e.put=function(e,t,n,r){return u("PUT",e,t,n,r)},e["delete"]=function(e,t,n,r){return u("DELETE",e,t,n,r)},e.json=function(n,r,i){return e.ajax({url:n,data:r,success:i,dataType:t.MIME})},e.serializeParameters=function(e,t){var n,r;t==null&&(t=""),r=t;for(n in e)e.hasOwnProperty(n)&&(r!==t&&(r+="&"),r+=n+"="+e[n]);return r===t?"":r},f=function(e,t){e.status>=200&&e.status<300||e.status===0?t.async&&l(s(e,t),e,t):o("QuoJS.ajax: Unsuccesful request",e,t)},l=function(e,t,n){n.success.call(n.context,e,t)},o=function(e,t,n){n.error.call(n.context,e,t,n)},a=function(e,t){var n;t.contentType&&(t.headers["Content-Type"]=t.contentType),t.dataType&&(t.headers.Accept=r[t.dataType]);for(n in t.headers)e.setRequestHeader(n,t.headers[n])},c=function(e,t){e.onreadystatechange={},e.abort(),o("QuoJS.ajax: Timeout exceeded",e,t)},u=function(t,n,r,i,s){return e.ajax({type:t,url:n,data:r,success:i,dataType:s,contentType:"application/x-www-form-urlencoded"})},s=function(e,n){var r;r=e.responseText;if(r)if(n.dataType===t.MIME)try{r=JSON.parse(r)}catch(i){r=i,o("QuoJS.ajax: Parse Error",e,n)}else n.dataType==="xml"&&(r=e.responseXML);return r},i=function(e){return RegExp("=\\?").test(e)}}(Quo),function(e){var t,n,r,i,s,o,u,a,f,l,c,h;return t=1,i={},r={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},n={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",touch:"click",doubletap:"dblclick",orientationchange:"resize"},s=/complete|loaded|interactive/,e.fn.on=function(t,n,r){return n==="undefined"||e.toType(n)==="function"?this.bind(t,n):this.delegate(n,t,r)},e.fn.off=function(t,n,r){return n==="undefined"||e.toType(n)==="function"?this.unbind(t,n):this.undelegate(n,t,r)},e.fn.ready=function(t){return s.test(document.readyState)?t(e):e.fn.addEvent(document,"DOMContentLoaded",function(){return t(e)})},e.Event=function(e,t){var n,r;n=document.createEvent("Events"),n.initEvent(e,!0,!0,null,null,null,null,null,null,null,null,null,null,null,null);if(t)for(r in t)n[r]=t[r];return n},e.fn.bind=function(e,t){return this.each(function(){c(this,e,t)})},e.fn.unbind=function(e,t){return this.each(function(){h(this,e,t)})},e.fn.delegate=function(t,n,r){return this.each(function(i,s){c(s,n,r,t,function(n){return function(r){var i,u;u=e(r.target).closest(t,s).get(0);if(u)return i=e.extend(o(r),{currentTarget:u,liveFired:s}),n.apply(u,[i].concat([].slice.call(arguments,1)))}})})},e.fn.undelegate=function(e,t,n){return this.each(function(){h(this,t,n,e)})},e.fn.trigger=function(t,n){return e.toType(t)==="string"&&(t=e.Event(t,n)),this.each(function(){this.dispatchEvent(t)})},e.fn.addEvent=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},e.fn.removeEvent=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},c=function(t,n,r,s,o){var f,c,h,p;return n=a(n),h=l(t),c=i[h]||(i[h]=[]),f=o&&o(r,n),p={event:n,callback:r,selector:s,proxy:u(f,r,t),delegate:f,index:c.length},c.push(p),e.fn.addEvent(t,p.event,p.proxy)},h=function(t,n,r,s){var o;return n=a(n),o=l(t),f(o,n,r,s).forEach(function(n){return delete i[o][n.index],e.fn.removeEvent(t,n.event,n.proxy)})},l=function(e){return e._id||(e._id=t++)},a=function(t){var r;return r=e.isMobile()?t:n[t],r||t},u=function(e,t,n){var r;return t=e||t,r=function(e){var r;return r=t.apply(n,[e].concat(e.data)),r===!1&&e.preventDefault(),r},r},f=function(e,t,n,r){return(i[e]||[]).filter(function(e){return e&&(!t||e.event===t)&&(!n||e.callback===n)&&(!r||e.selector===r)})},o=function(t){var n;return n=e.extend({originalEvent:t},t),e.each(r,function(e,r){return n[e]=function(){return this[r]=function(){return!0},t[e].apply(t,arguments)},n[r]=function(){return!1}}),n}}(Quo),function($$){var CURRENT_TOUCH,FIRST_TOUCH,GESTURE,GESTURES,HOLD_DELAY,TAPS,TOUCH_TIMEOUT,_angle,_capturePinch,_captureRotation,_cleanGesture,_distance,_fingersPosition,_getTouches,_hold,_isSwipe,_listenTouches,_onTouchEnd,_onTouchMove,_onTouchStart,_parentIfText,_swipeDirection,_trigger;return TAPS=null,GESTURE={},FIRST_TOUCH=[],CURRENT_TOUCH=[],TOUCH_TIMEOUT=void 0,HOLD_DELAY=650,GESTURES=["tap","singleTap","doubleTap","hold","swipe","swiping","swipeLeft","swipeRight","swipeUp","swipeDown","rotate","rotating","rotateLeft","rotateRight","pinch","pinching","pinchIn","pinchOut","drag","dragLeft","dragRight","dragUp","dragDown"],GESTURES.forEach(function(e){return $$.fn[e]=function(t){return $$(document.body).delegate(this.selector,e,t)},this}),$$(document).ready(function(){return _listenTouches()}),_listenTouches=function(){var e;return e=$$(document.body),e.bind("touchstart",_onTouchStart),e.bind("touchmove",_onTouchMove),e.bind("touchend",_onTouchEnd),e.bind("touchcancel",_cleanGesture)},_onTouchStart=function(e){var t,n,r,i;r=Date.now(),t=r-(GESTURE.last||r),TOUCH_TIMEOUT&&clearTimeout(TOUCH_TIMEOUT),i=_getTouches(e),n=i.length,FIRST_TOUCH=_fingersPosition(i,n),GESTURE.el=$$(_parentIfText(i[0].target)),GESTURE.fingers=n,GESTURE.last=r,GESTURE.taps||(GESTURE.taps=0),GESTURE.taps++;if(n===1)return n>=1&&(GESTURE.gap=t>0&&t<=250),setTimeout(_hold,HOLD_DELAY);if(n===2)return GESTURE.initial_angle=parseInt(_angle(FIRST_TOUCH),10),GESTURE.initial_distance=parseInt(_distance(FIRST_TOUCH),10),GESTURE.angle_difference=0,GESTURE.distance_difference=0},_onTouchMove=function(e){var t,n,r;return GESTURE.el&&(r=_getTouches(e),t=r.length,t===GESTURE.fingers?(CURRENT_TOUCH=_fingersPosition(r,t),n=_isSwipe(e),n&&(GESTURE.prevSwipe=!0),(n||GESTURE.prevSwipe===!0)&&_trigger("swiping"),t===2&&(_captureRotation(),_capturePinch(),e.preventDefault())):_cleanGesture()),!0},_isSwipe=function(e){var t,n,r;return t=!1,CURRENT_TOUCH[0]&&(n=Math.abs(FIRST_TOUCH[0].x-CURRENT_TOUCH[0].x)>30,r=Math.abs(FIRST_TOUCH[0].y-CURRENT_TOUCH[0].y)>30,t=GESTURE.el&&(n||r)),t},_onTouchEnd=function(e){var t,n,r,i,s;if(GESTURE.fingers!==1)return t=!1,GESTURE.angle_difference!==0&&(_trigger("rotate",{angle:GESTURE.angle_difference}),i=GESTURE.angle_difference>0?"rotateRight":"rotateLeft",_trigger(i,{angle:GESTURE.angle_difference}),t=!0),GESTURE.distance_difference!==0&&(_trigger("pinch",{angle:GESTURE.distance_difference}),r=GESTURE.distance_difference>0?"pinchOut":"pinchIn",_trigger(r,{distance:GESTURE.distance_difference}),t=!0),!t&&CURRENT_TOUCH[0]&&(Math.abs(FIRST_TOUCH[0].x-CURRENT_TOUCH[0].x)>10||Math.abs(FIRST_TOUCH[0].y-CURRENT_TOUCH[0].y)>10)&&(_trigger("drag"),n=_swipeDirection(FIRST_TOUCH[0].x,CURRENT_TOUCH[0].x,FIRST_TOUCH[0].y,CURRENT_TOUCH[0].y),_trigger("drag"+n)),_cleanGesture();if(GESTURE.taps===2&&GESTURE.gap)return _trigger("doubleTap"),_cleanGesture();if(_isSwipe()||GESTURE.prevSwipe)return _trigger("swipe"),s=_swipeDirection(FIRST_TOUCH[0].x,CURRENT_TOUCH[0].x,FIRST_TOUCH[0].y,CURRENT_TOUCH[0].y),_trigger("swipe"+s),_cleanGesture();_trigger("tap");if(GESTURE.taps===1)return TOUCH_TIMEOUT=setTimeout(function(){return _trigger("singleTap"),_cleanGesture()},100)},_fingersPosition=function(e,t){var n,r;r=[],n=0,e=e[0].targetTouches?e[0].targetTouches:e;while(n20||GESTURE.angle_difference!==0){i=0,symbol=GESTURE.angle_difference<0?"-":"+";while(Math.abs(diff-GESTURE.angle_difference)>90&&i++<10)eval("diff "+symbol+"= 180;");return GESTURE.angle_difference=parseInt(diff,10),_trigger("rotating",{angle:GESTURE.angle_difference})}},_capturePinch=function(){var e,t;t=parseInt(_distance(CURRENT_TOUCH),10),e=GESTURE.initial_distance-t;if(Math.abs(e)>10)return GESTURE.distance_difference=e,_trigger("pinching",{distance:e})},_trigger=function(e,t){if(GESTURE.el)return t=t||{},CURRENT_TOUCH[0]&&(t.iniTouch=GESTURE.fingers>1?FIRST_TOUCH:FIRST_TOUCH[0],t.currentTouch=GESTURE.fingers>1?CURRENT_TOUCH:CURRENT_TOUCH[0]),GESTURE.el.trigger(e,t)},_cleanGesture=function(e){return FIRST_TOUCH=[],CURRENT_TOUCH=[],GESTURE={},clearTimeout(TOUCH_TIMEOUT)},_angle=function(e){var t,n,r;return t=e[0],n=e[1],r=Math.atan((n.y-t.y)*-1/(n.x-t.x))*(180/Math.PI),r<0?r+180:r},_distance=function(e){var t,n;return t=e[0],n=e[1],Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y))*-1},_getTouches=function(e){return $$.isMobile()?e.touches:[e]},_parentIfText=function(e){return"tagName"in e?e:e.parentNode},_swipeDirection=function(e,t,n,r){var i,s;return i=Math.abs(e-t),s=Math.abs(n-r),i>=s?e-t>0?"Left":"Right":n-r>0?"Up":"Down"},_hold=function(){if(GESTURE.last&&Date.now()-GESTURE.last>=HOLD_DELAY)return _trigger("hold"),GESTURE.taps=0}}(Quo);