String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g,'');}
var MSIE7=false;
if (navigator.userAgent && navigator.userAgent.indexOf("MSIE 7")!=-1) MSIE7=true;
var imgs_lang="/artworks/es";
var lang="/artworks/es";
var DIR="";
var DIR_MONSTER_EDITOR="";
var STYLESID="brial2012comuy";
var imgs="/artworks";
var url_tobookmark="BRIAL envases plásticos";
var id_idioma=1
function goprint(url) {
abrirVentana(getUrlPrint(location.href)+"&imprimir=ok", 1024, 600, "_imprimir")
}
function getUrlPrint(url) {
var aux=url.split("?");
var dir=aux[0];if (aux.length==1) return "?dmp=1";
if (aux.length>1) {
aux=aux[1].split("&");
n="";
for (var i=0;i1) {
aux=aux[1].split("&");
n="";
for (var i=0;i 0) { DHTMLALERT(mensaje); obj_focus=form.email; return false; }
if (valor!=confirm_email) {DHTMLALERT(mensaje_extra);obj_focus=form.email;return false;}
} else {
if (valor=="") {DHTMLALERT(mensaje);obj_focus=eval("form."+campo);return false;}
}
}
}
}
var o=getObj("btn_submit");
if (o!=null) {o.disabled=true;}
return true;
}
var buscador_tocado=false;
function validar_buscador(form) {
if (!buscador_tocado) {
DHTMLALERT("Por favor, ingrese un texto válido a buscar.");
return false;
}
var o=form.buscar.value;
if (o.length<3) {
DHTMLALERT("Por favor, ingrese un texto válido a buscar.");
return false;
}
return true;
}
function limpiar_buscador(obj,comp,toto) {
if (typeof comp == "undefined") comp="Buscar";
if (obj.value==comp) obj.value="";
buscador_tocado=true;
}
function clear_input(o,l) {
if (o.value==l) {o.value='';}
}
function check_form_registro(form) {
var aux="Dirección de correo incorrecta o e-mail no válido.|Los e-mails no coinciden.".split("|");
if (form.tiny_email.value.indexOf('@') < 0 || form.tiny_email.value.indexOf('.') < 0 || form.tiny_email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); form.tiny_email.focus();return false;}
return true;
}
function validar_olvidemiclave(form) {
var aux="Dirección de correo incorrecta o e-mail no válido.|Los e-mails no coinciden.".split("|");
if (form.olvideemail.value.indexOf('@') < 0 || form.olvideemail.value.indexOf('.') < 0 || form.email.value.indexOf(',') > 0) { DHTMLALERT(aux[0]); form.olvideemail.focus(); return false; }
return true;
}
function mostrarcargando() {
var o = getObj("ly_cargando_dinamico");
showAndCenter("ly_cargando_dinamico");
}
function cerrarcargando() {
var o = getObj("ly_cargando_dinamico");
if (o==null) {return;}
o.style.display="none";
}
function crear_script_tag(file,tagname)
{
var head_html = document.getElementsByTagName('head');
if (head_html==null)
head_html=document;
else
head_html=head_html[0];
if (tagname==undefined) tagname="jscript_gen";
scriptTag = getObj(tagname);
if(scriptTag!=null)
{
head_html.removeChild(scriptTag);
delete(scriptTag);
scriptTag=null;
}
var script = document.createElement('script');
var vch="?";
if (file.indexOf("?")!=-1) vch="&";
script.src = file+vch+Math.random()*1000000;
script.type = "text/javascript";
script.id = tagname;
head_html.appendChild(script);
console.log("crear_script_tag:"+file);
}
function validar_login(formulario,msg) {
if (formulario.usuario.value == '' || formulario.clave.value == '') {
DHTMLALERT(msg); formulario.usuario.focus(); return false;
return true;
}
}
function lista_de_precios() {
abrirVentana("/productos/listadeprecios.php", 800, 600, "listap")
}
function validar_recomendar(form) {
if (form.minombre.value == '') {DHTMLALERT('Ingrese su nombre'); form.minombre.focus(); return false;}
if (form.tunombre.value == '') {DHTMLALERT('Ingrese el Nombre de su amigo'); form.tunombre.focus(); return false;}
if (form.miemail.value.indexOf('@') < 0 || form.miemail.value.indexOf('.') < 0 || form.miemail.value.indexOf(',') > 0) {DHTMLALERT('Ingrese su e-mail'); form.miemail.focus(); return false;}
if (form.tuemail.value.indexOf('@') < 0 || form.tuemail.value.indexOf('.') < 0 || form.tuemail.value.indexOf(',') > 0) {DHTMLALERT('Ingrese el e-mail de su amigo'); form.tuemail.focus(); return false;}
return true;
}
var last_video=0;
function video(id,t) {
var url="/videos/get_video.php?id="+id+"&t="+t;
if (last_video>0) close_player(last_video);
last_video=id;
crear_script_tag(url);
}
function set_player(flv,id) {
var o=getObj("ly_player"+id);
if (o==null) {return;}
o.innerHTML=flv;
showAndCenter("ly_player_container"+id);
var ly_transparente = getObj("ly_transparente");
if (ly_transparente != null) {
ly_transparente.style.display="";
ly_transparente.style.width="100%";
ly_transparente.style.height=getPageSize()[1]+'px';
}
}
function close_player(id) {
var o=getObj("ly_player"+id);
if (o!=null) o.innerHTML="";
if (getObj("ly_player_container"+id)!=null)
getObj("ly_player_container"+id).style.display="none";
var ly_transparente = getObj("ly_transparente");
if (ly_transparente != null) {
ly_transparente.style.display="none";
}
}
function startvideos() {}
var ahora = 7944;
function updateClock() {
ahora++;
if (ahora>(24*60*60)) ahora=0;
var horas=parseInt(ahora/(60*60));
var resto=ahora-(horas*(60*60));
var minutos=parseInt(resto/(60));
var segundos=resto-(minutos*60);
minutos = ( minutos < 10 ? "0" : "" ) + minutos;
segundos = ( segundos < 10 ? "0" : "" ) + segundos;
horas = ( horas < 10 ? "0" : "" ) + horas;
getObj("hora").innerHTML = horas + ":" + minutos + ":" + segundos + " hs. ";
}
function AddToFavorite(url, title) {
if (!url) {
url = window.location
}
if (!title) {
title = document.title
}
var browser = navigator.userAgent.toLowerCase();
if (window.sidebar) {
window.sidebar.addPanel(title, url, "");
} else if (window.external) {
if (browser.indexOf('chrome') == -1) {
window.external.AddFavorite(url, title);
} else {
DHTMLALERT('Presiona CTRL+D para agregar este sitio a tus favoritos.');
}
} else if (window.opera && window.print) {
return true;
} else if (browser.indexOf('konqueror') != -1) {
DHTMLALERT('Presiona CTRL+B para agregar este sitio a tus favoritos.');
} else if (browser.indexOf('webkit') != -1) {
DHTMLALERT('Presiona CTRL+B para agregar este sitio a tus favoritos.');
} else {
DHTMLALERT('Tu navegador no es compatible con este link para agregar a favoritos.')
}
}
function send_to_fav(id_objeto,tipo_objeto_favorito) {
var url="/usuarios/scripts/agregar_a_favoritos.php?id_objeto="+id_objeto+"&tipo_objeto="+tipo_objeto_favorito;
crear_script_tag(url,"fav");
}
function remove_from_fav(id_fav) {
if (window.confirm("Remover este ítem de mis favoritos.")) {
var url="/usuarios/scripts/remove_favoritos.php?id_fav="+id_fav;
crear_script_tag(url,"fav");
}
}
function $$asp( objId )
{
var o = document.getElementById( objId );
if ( o == null ) return;
var nobj = document.createElement("INPUT");
var nombre_hidden = o.name + "_hidden_asp";
var keyup_on = true;
nobj.id = nombre_hidden;
nobj.name = nombre_hidden;
nobj.type = "hidden";
o.form.appendChild( nobj );
o.onkeyup = function ( e )
{
if (!keyup_on)
return;
try
{
var t;
if ( window.event && window.event.srcElement )
t = window.event.srcElement; else
t = e.target;
nobj.value = this.value;
//this.hidden_asp.value = this.value;
} catch(err)
{
keyup_on = false;
alert( "err="+err);
var o2 = document.getElementById( nombre_hidden );
if (o2 != null )
o.form.removeChild( o2 );
}
};
}
function cambiar_src(id,img){
var o=getObj("prodzoom"+id);
if ( o!=null && o.src.indexOf("")!=-1 )
o.src=img;
}
function disable_autocomplete() {
var forms = document.getElementsByTagName("form");
for (var i=0;iAcceder ahora ! ");
}
var timer_refresh_timer=-1;
function keep_alive()
{
clearInterval(timer_refresh_timer);
timer_refresh_timer = -1;
crear_script_tag("/includes/keep_alive.php");
}
function change_def_cur(c) {
var url="/includes/change_cur.php?cur="+c;
crear_script_tag(url,"cur");
}
function writeflash(o,m,w,h,wm,p,oid) {
//alert(wm);
var p=unescape(p);
var obj = document.getElementById(o);
if (obj==null){
alert(o+' MISSING');
return;
}
if (oid!=null && oid!=undefined) {tag_name="NAME='"+oid+"'";} else {tag_name="";}
if (oid!=null && oid!=undefined) {oid="id='"+oid+"'";} else {oid="";}
f="";
f+=" ";
f+=" ";
if (p!="") {f+=" ";}
f+=" ";
f+=" ";
f+=" ";
f+=" ";
obj.innerHTML=f;
}var imgs=DIR+"/artworks";
function force_display(ly){
veclayers=ly.split(",");
for (var i=0;i0)
if (slow==1)
$("#"+objetos[i]).hide('slow');
else
$("#"+objetos[i]).slideUp();
else
obj.style.display="none";
} else {
if (slow>0)
if (slow==1)
$("#"+objetos[i]).show('slow');
else
$("#"+objetos[i]).slideDown();
else
obj.style.display="";
}
}
}
function aplicar_quitar_clase(obj,clase,forzar_quitar)
{
if (typeof(obj) != "object")
objeto=getObj(obj);
else
objeto = obj;
if (objeto!=null && objeto.className!=undefined)
{
if ( objeto.className.indexOf(clase)!=-1 || forzar_quitar!=undefined )
{
objeto.className = objeto.className.split(clase).join("");
}
else
{
if ( objeto.className != "" )
objeto.className += " ";
objeto.className += clase;
}
}
}
function str_replace(str,s,t)
{
return str.split(s).join(t);
}
function resize_obj(id_obj, px){
obj=getObj(id_obj);
if (obj.style.height==undefined) return;
aux_h=parseInt(str_replace(obj.style.height,"px",""));
if (isNaN(px))
px=parseInt(str_replace(px.toString(),"px",""));
aux_h+=px;
if (aux_h<=0) return;
obj.style.height=aux_h+"px";
}
function showAndCenter(id, img){
var obj = id;
if (typeof obj != "object")
obj=getObj(id);
if (obj==null) return;
obj.style.display="";
obj.style.visibility="visible";
ancho_layer=obj.style.width;
ancho_layer=ancho_layer.replace("px","");
alto_layer=obj.style.height;
alto_layer=alto_layer.replace("px","");
if (document.body && document.body.scrollTop)
{
var altobody=document.body.scrollTop;
} else if (document.documentElement && !document.documentElement.scrollTop) {
var altobody=document.documentElement.scrollTop;
} else if (document.documentElement && document.documentElement.scrollTop) {
var altobody=document.documentElement.scrollTop;
}
var X = ((document.body.scrollWidth-ancho_layer)/2);
var Y = ((screen.availHeight-alto_layer)/2);
obj.style.zIndex=99999999;
obj.style.left=parseInt((document.body.scrollLeft+(X)))+"px";
obj.style.top =parseInt((altobody +(Y) - 100))+"px";
}
function DHTMLALERT(msg){
var dalert_msg = getObj("dhtml_alert_MSG");
if (msg==undefined) msg="";
if (!dalert_msg) return;
if (msg!="") {
dalert_msg.innerHTML = msg;
showAndCenter("dhtml_alert");
activar_layer_transparente("ly_transparente",cerrar_dhtmlalert);
} else {
var dalert = getObj("dhtml_alert");
dalert_msg.innerHTML = "";
dalert.style.display="none";
activar_layer_transparente("ly_transparente",cerrar_dhtmlalert);
try {
obj_focus.focus();
obj_focus=null;
} catch(err) {}
}
}
function cerrar_dhtmlalert(){
DHTMLALERT();
}
function activar_layer_transparente(id_obj,addfunction){
var obj=getObj(id_obj);
if (obj==null) return;
if (obj.style.display=="") {
obj.style.display="none";
if (typeof addfunction == "function") {
if (obj.removeEventListener) {
obj.removeEventListener("click", addfunction, false);
} if (obj.detachEvent) {
obj.detachEvent("onclick", addfunction);
} else {
obj["click"] = null;
}
}
} else {
if (typeof addfunction == "function") {
if (obj.addEventListener) {
obj.addEventListener("click", addfunction, false);
} else if (obj.attachEvent) {
obj.attachEvent("onclick", addfunction);
} else {
obj["onclick"] = addfunction;
}
}
obj.style.display="";
obj.style.width="100%";
obj.style.height=getPageSize()[1]+'px';
}
}
function getPageSize(){
var xScroll, yScroll;
if (window.innerHeight && window.scrollMaxY) {
xScroll = document.body.scrollWidth;
yScroll = window.innerHeight + window.scrollMaxY;
} else if (document.body.scrollHeight > document.body.offsetHeight){
xScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
} else {
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) {
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) {
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
if(yScroll < windowHeight){
pageHeight = windowHeight;
} else {
pageHeight = yScroll;
}
if(xScroll < windowWidth){
pageWidth = windowWidth;
} else {
pageWidth = xScroll;
}
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;
}
function recomendar_web(){
var ly_transparente=getObj("ly_transparente");
var obj=getObj("recomendar");
if (obj.style.display=="") {
obj.style.display="none";
ly_transparente.style.display="none";
} else {
obj.style.display="";
ly_transparente.style.display="";
showAndCenter('recomendar');
getObj("form_recomendar").minombre.focus();
}
}function set_tab_new(obj)
{
var obj_id = obj.id;
var prefijo="container_";
var obj_class = obj.className;
var vec_tab_names = obj_id.split("_");
if (vec_tab_names.length<=1)
{
alert("Nombre TAG inválido falta prefijo _#");
return;
}
vec_tab_names.pop();
var tab_name = vec_tab_names.join("_");
obj_class = obj_class.split("_off").join("");
obj_class = obj_class.split("_on").join("");
var i=1;
var tab_actual=null;
var no_flag=false;
while ( tab_actual != null || !no_flag)
{
tab_actual=getObj(tab_name+"_"+i);
container_actual=getObj(prefijo+tab_name+"_"+i);
if (tab_actual==null || container_actual==null)
break;
tab_actual.className="off";
container_actual.style.display="none";
i++;
no_flag = true;
}
tab_actual=getObj(obj_id);
container_actual=getObj(prefijo+obj_id);
tab_actual.className="active";
container_actual.style.display="";
}var autoexpandiendo=false;
function init_cats() {
var pdiv,phref;
for (var i=0;i
')
.text(title)
.appendTo('body')
.fadeIn('slow');
}, function() {
$(this).attr('title', $(this).data('tipText'));
$('.tooltip1').remove();
}).mousemove(function(e) {
var mousex = e.pageX + 26;
var mousey = e.pageY + 26;
$('.tooltip1')
.css({ top: mousey, left: mousex })
});
});(function( $ ){
var $scrollTo = $.scrollTo = function( target, duration, settings ){
$(window).scrollTo( target, duration, settings );
};
$scrollTo.defaults = {
axis:'xy',
duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1
};
$scrollTo.window = function( scope ){
return $(window)._scrollable();
};
$.fn._scrollable = function(){
return this.map(function(){
var elem = this,
isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1;
if( !isWin )
return elem;
var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem;
return $.browser.safari || doc.compatMode == 'BackCompat' ?
doc.body :
doc.documentElement;
});
};
$.fn.scrollTo = function( target, duration, settings ){
if( typeof duration == 'object' ){
settings = duration;
duration = 0;
}
if( typeof settings == 'function' )
settings = { onAfter:settings };
if( target == 'max' )
target = 9e9;
settings = $.extend( {}, $scrollTo.defaults, settings );
duration = duration || settings.speed || settings.duration;
settings.queue = settings.queue && settings.axis.length > 1;
if( settings.queue )
duration /= 2;
settings.offset = both( settings.offset );
settings.over = both( settings.over );
return this._scrollable().each(function(){
var elem = this,
$elem = $(elem),
targ = target, toff, attr = {},
win = $elem.is('html,body');
switch( typeof targ ){
case 'number':
case 'string':
if( /^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ) ){
targ = both( targ );
break;
}
targ = $(targ,this);
case 'object':
if( targ.is || targ.style )
toff = (targ = $(targ)).offset();
}
$.each( settings.axis.split(''), function( i, axis ){
var Pos = axis == 'x' ? 'Left' : 'Top',
pos = Pos.toLowerCase(),
key = 'scroll' + Pos,
old = elem[key],
max = $scrollTo.max(elem, axis);
if( toff ){
attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );
if( settings.margin ){
attr[key] -= parseInt(targ.css('margin'+Pos)) || 0;
attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0;
}
attr[key] += settings.offset[pos] || 0;
if( settings.over[pos] )
attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos];
}else{
var val = targ[pos];
attr[key] = val.slice && val.slice(-1) == '%' ?
parseFloat(val) / 100 * max
: val;
}
if( /^\d+$/.test(attr[key]) )
attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max );
if( !i && settings.queue ){
if( old != attr[key] )
animate( settings.onAfterFirst );
delete attr[key];
}
});
animate( settings.onAfter );
function animate( callback ){
$elem.animate( attr, duration, settings.easing, callback && function(){
callback.call(this, target, settings);
});
};
}).end();
};
$scrollTo.max = function( elem, axis ){
var Dim = axis == 'x' ? 'Width' : 'Height',
scroll = 'scroll'+Dim;
if( !$(elem).is('html,body') )
return elem[scroll] - $(elem)[Dim.toLowerCase()]();
var size = 'client' + Dim,
html = elem.ownerDocument.documentElement,
body = elem.ownerDocument.body;
return Math.max( html[scroll], body[scroll] )
- Math.min( html[size] , body[size] );
};
function both( val ){
return typeof val == 'object' ? val : { top:val, left:val };
};
})( jQuery )/*
* 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.
*
*/
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){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',at='
';ad=false;ah=false;C=N=false;ao=this;ao.options=ae;ao.id=G;ao.hash="";av=ao.options;S=ac.addClass("booklet");A=S.children(".b-load");h();S.data("booklet",true);S.data("id",G);S.data("total",A.children().length);if(!av.width){av.width=S.width()}if(!av.height){av.height=S.height()}S.width(av.width);S.height(av.height);av.pWidth=av.width/2;av.pWidthN="-"+(av.width/2)+"px";av.pWidthH=av.width/4;av.pHeight=av.height;av.pTotal=A.children().length;av.speedH=av.speed/2;if(av.direction=="LTR"){av.curr=0}else{if(av.direction=="RTL"){av.curr=av.pTotal-2}}if(!isNaN(av.startingPage)&&av.startingPage<=av.pTotal&&av.startingPage>0){if((av.startingPage%2)!=0){av.startingPage--}av.curr=av.startingPage}if(av.name){document.title=av.name}else{av.name=document.title}if(av.shadows){av.shadowTopFwdWidth="-"+av.shadowTopFwdWidth+"px";av.shadowTopBackWidth="-"+av.shadowTopBackWidth+"px"}if(av.menu){l=b(av.menu).addClass("b-menu");E=av.curr;if(av.pageSelector){q=b(''+(E+1)+" - "+(E+2)+"
").appendTo(l);v=b("").appendTo(q).empty().css("height","auto");for(L=0;L'+aw[L+1]+' '+nums+" ").prependTo(v)}else{if(L==0){q.find(".b-current").text(nums)}an=b(''+aw[L]+' '+nums+" ").appendTo(v)}w=an.find("a");if(!av.hash){w.click(function(){if(av.direction=="RTL"){q.find(".b-current").text(b(this).find(".b-num").text())}k=parseInt(b(this).attr("id").replace("selector-page-",""));ao.gotoPage(k);return false})}}r=v.height();v.css({height:0,"padding-bottom":0});q.unbind("hover").hover(function(){v.stop().animate({height:r,paddingBottom:10},500)},function(){v.stop().animate({height:0,paddingBottom:0},500)})}if(av.chapterSelector){X=K[av.curr];if(X==""){X=K[av.curr+1]}u=b(''+X+"
").appendTo(l);P=b("").appendTo(u).empty().css("height","auto");for(L=0;L'+K[L]+" ").prependTo(P)}else{au=b(''+K[L]+" ").appendTo(P)}t=au.find("a");if(!av.hash){t.click(function(){if(av.direction=="RTL"){u.find(".b-current").text(b(this).find(".b-text").text())}g=parseInt(b(this).attr("id").replace("selector-page-",""));ao.gotoPage(g);return false})}}}n=P.height();P.css({height:0,"padding-bottom":0});u.unbind("hover").hover(function(){P.stop().animate({height:n,paddingBottom:10},500)},function(){P.stop().animate({height:0,paddingBottom:0},500)})}}b.extend(ao,{next:function(){if(!ad){ao.gotoPage(av.curr+2)}},prev:function(){if(!ad){ao.gotoPage(av.curr-2)}},gotoPage:function(i){if(i>av.curr&&i=0&&!ad){ad=true;o=i-av.curr;av.curr=i;av.before.call(ao,av);ar();z();M(av.curr+1,av);Q(o,true,ax);Y.stop().animate({width:0},av.speedH,av.easeIn);W.stop().animate({left:av.pWidthH,width:av.pWidthH,paddingLeft:av.shadowBtmWidth},av.speedH,av.easeIn).animate({left:0,width:av.pWidth,paddingLeft:0},av.speedH);c.animate({left:av.shadowBtmWidth},av.speedH,av.easeIn).animate({left:0},av.speedH,av.easeOut,function(){H()})}else{if(i=0&&!ad){ad=true;o=av.curr-i;av.curr=i;av.before.call(ao,av);ar();z();M(av.curr+1,av);Q(o,false,az);Z.animate({left:av.pWidth,width:0},av.speed,av.easing);J.animate({left:av.pWidthN},av.speed,av.easing);ab.animate({left:av.pWidthH,width:av.pWidthH},av.speedH,av.easeIn).animate({left:av.pWidth,width:av.pWidth},av.speedH,av.easeOut);ag.animate({right:av.shadowBtmWidth},av.speedH,av.easeIn).animate({right:0},av.speedH,av.easeOut,function(){H()})}}}});if(av.next){af=b(av.next);af.click(function(i){i.preventDefault();ao.next()})}if(av.prev){y=b(av.prev);y.click(function(i){i.preventDefault();ao.prev()})}if(av.overlays){ak=b('
').appendTo(S);al=b('
').appendTo(S);T=S.find(".b-overlay");if(b.browser.msie){T.css({background:"#fff",filter:"progid:DXImageTransform.Microsoft.Alpha(opacity=0) !important"})}}if(av.tabs){ai=b('
').appendTo(S);aj=b('
').appendTo(S);R=S.find(".b-tab");if(av.tabWidth){R.width(av.tabWidth)}if(av.tabHeight){R.height(av.tabHeight)}R.css({top:"-"+aj.outerHeight()+"px"});S.css({marginTop:aj.outerHeight()});if(av.direction=="RTL"){aj.html("Previous").attr("title","");ai.html("Next").attr("title","")}}else{S.css({marginTop:0})}if(av.arrows){B=b('').appendTo(S);D=b('').appendTo(S);m=S.find(".b-arrow");if(av.direction=="RTL"){D.html("
").attr("title","");B.html("Next
").attr("title","")}}e=S.find(".b-next");d=S.find(".b-prev");e.click(function(i){i.preventDefault();ao.next()});d.click(function(i){i.preventDefault();ao.prev()});if(av.hovers){e.hover(function(){if(!ad&&av.curr+2<=av.pTotal-2){Y.stop().animate({width:av.pWidth-40},500,av.easing);W.stop().animate({left:av.width-40,width:20,paddingLeft:10},500,av.easing);C=true}},function(){if(!ad&&av.curr+2<=av.pTotal-2){Y.stop().animate({width:av.pWidth},500,av.easing);W.stop().animate({left:av.width,width:0,paddingLeft:0},500,av.easing);C=false}});d.hover(function(){if(!ad&&av.curr-2>=0){Z.stop().animate({left:10,width:av.pWidth-10},400,av.easing);J.stop().animate({left:"-10px"},400,av.easing);ab.stop().animate({left:10,width:40},400,av.easing);ag.stop().animate({right:10},400,av.easing);N=true}},function(){if(!ad&&av.curr-2>=0){Z.stop().animate({left:0,width:av.pWidth},400,av.easing);J.stop().animate({left:0},400,av.easing);ab.stop().animate({left:0,width:0},400,av.easing);ag.stop().animate({right:0},400,av.easing);N=false}})}if(av.arrows){if(b.support.opacity){e.hover(function(){D.find("div").stop().fadeTo("fast",1)},function(){D.find("div").stop().fadeTo("fast",0)});d.hover(function(){B.find("div").stop().fadeTo("fast",1)},function(){B.find("div").stop().fadeTo("fast",0)})}else{e.hover(function(){D.find("div").show()},function(){D.find("div").hide()});d.hover(function(){B.find("div").show()},function(){B.find("div").hide()})}}if(av.keyboard){b(document).keyup(function(i){if(i.keyCode==37){ao.prev()}else{if(i.keyCode==39){ao.next()}}})}if(av.hash){f();clearInterval();setInterval(function(){V()},250)}aa();function h(){if((A.children().length%2)!=0){if(av.closed&&av.covers){A.children().last().before(at)}else{A.children().last().after(at)}}if(av.closed){b(ap).attr({title:av.closedFrontTitle||"Beginning",rel:av.closedFrontChapter||"Beginning of Book"}).prependTo(A);A.children().last().attr({title:av.closedBackTitle||"End",rel:av.closedBackChapter||"End of Book"});A.append(ap)}if(av.direction=="LTR"){I=0}else{I=A.children().length;if(av.closed){I-=2}if(av.covers){I-=2}b(A.children().get().reverse()).each(function(){b(this).appendTo(A)})}A.children().each(function(j){if(b(this).attr("rel")){K[j]=b(this).attr("rel")}else{K[j]=""}aw[j]=b(this).attr("title");if(b(this).hasClass("b-page-empty")){b(this).wrap('')}else{if(av.closed&&av.covers&&(j==1||j==A.children().length-2)){b(this).wrap('')}else{if(j%2!=0){b(this).wrap('')}else{b(this).wrap('')}}}b(this).parents(".b-page").addClass("b-page-"+j);if(av.pageNumbers&&!b(this).hasClass("b-page-empty")&&(!av.closed||(av.closed&&!av.covers)||(av.closed&&av.covers&&j!=1&&j!=A.children().length-2))){if(av.direction=="LTR"){I++}b(this).parent().append(''+(I)+"
");if(av.direction=="RTL"){I--}}})}function aa(){S.find(".b-page").removeClass("b-pN b-p0 b-p1 b-p2 b-p3 b-p4").hide();if(ah){I=av.pTotal-1;for(L=0;L=0){S.find(".b-page-"+(av.curr-2)).addClass("b-pN").show();S.find(".b-page-"+(av.curr-1)).addClass("b-p0").show()}S.find(".b-page-"+(av.curr)).addClass("b-p1").show();S.find(".b-page-"+(av.curr+1)).addClass("b-p2").show();if(av.curr+3<=av.pTotal){S.find(".b-page-"+(av.curr+2)).addClass("b-p3").show();S.find(".b-page-"+(av.curr+3)).addClass("b-p4").show()}F=S.find(".b-pN");ab=S.find(".b-p0");Z=S.find(".b-p1");Y=S.find(".b-p2");W=S.find(".b-p3");U=S.find(".b-p4");ay=S.find(".b-pN .b-wrap");ag=S.find(".b-p0 .b-wrap");J=S.find(".b-p1 .b-wrap");s=S.find(".b-p2 .b-wrap");c=S.find(".b-p3 .b-wrap");aq=S.find(".b-p4 .b-wrap");am=S.find(".b-wrap");am.attr("style","");am.css({width:av.pWidth-(av.pagePadding*2),height:av.pHeight-(av.pagePadding*2),padding:av.pagePadding});Z.css({left:0,width:av.pWidth,height:av.pHeight});Y.css({left:av.pWidth,width:av.pWidth,opacity:1,height:av.pHeight});F.css({left:0,width:av.pWidth,height:av.pHeight});ab.css({left:0,width:0,height:av.pHeight});W.stop().css({left:av.pWidth*2,width:0,height:av.pHeight,paddingLeft:0});c.stop().css({left:0});U.css({left:av.pWidth,width:av.pWidth,height:av.pHeight});if(av.curr+3<=av.pTotal){W.after(ab.detach());Z.after(U.detach())}else{ab.detach().appendTo(A)}ah=true;ax=az=null;S.find(".b-shadow-b, .b-shadow-f").remove();if(av.shadows){ax=b('
').appendTo(W).css({right:0,width:av.pWidth,height:av.pHeight});az=b('
').appendTo(ab).css({left:0,width:av.pWidth,height:av.pHeight})}}function Q(j,i,p){if(i&&j>2){S.find(".b-p3, .b-p4").removeClass("b-p3 b-p4").hide();S.find(".b-page-"+av.curr).addClass("b-p3").show().stop().css({left:av.pWidth*2,width:0,height:av.pHeight,paddingLeft:0});S.find(".b-page-"+(av.curr+1)).addClass("b-p4").show().css({left:av.pWidth,width:av.pWidth,height:av.pHeight});S.find(".b-page-"+av.curr+" .b-wrap").show().css({width:av.pWidth-(av.pagePadding*2),height:av.pHeight-(av.pagePadding*2),padding:av.pagePadding});S.find(".b-page-"+(av.curr+1)+" .b-wrap").show().css({width:av.pWidth-(av.pagePadding*2),height:av.pHeight-(av.pagePadding*2),padding:av.pagePadding});W=S.find(".b-p3");U=S.find(".b-p4");c=S.find(".b-p3 .b-wrap");aq=S.find(".b-p4 .b-wrap");if(C){W.css({left:av.width-40,width:20,"padding-left":10})}p.appendTo(W);Z.after(U.detach());Y.after(W.detach())}else{if(!i&&j>2){S.find(".b-pN, .b-p0").removeClass("b-pN b-p0").hide();S.find(".b-page-"+av.curr).addClass("b-pN").show().css({left:0,width:av.pWidth,height:av.pHeight});S.find(".b-page-"+(av.curr+1)).addClass("b-p0").show().css({left:0,width:0,height:av.pHeight});S.find(".b-page-"+av.curr+" .b-wrap").show().css({width:av.pWidth-(av.pagePadding*2),height:av.pHeight-(av.pagePadding*2),padding:av.pagePadding});S.find(".b-page-"+(av.curr+1)+" .b-wrap").show().css({width:av.pWidth-(av.pagePadding*2),height:av.pHeight-(av.pagePadding*2),padding:av.pagePadding});F=S.find(".b-pN");ab=S.find(".b-p0");ay=S.find(".b-pN .b-wrap");ag=S.find(".b-p0 .b-wrap");if(N){ab.css({left:10,width:40});ag.css({right:10})}p.appendTo(ab);ab.detach().appendTo(A)}}if(av.closed){if(!i&&av.curr==0){F.hide()}else{if(!i){F.show()}}if(i&&av.curr>=av.pTotal-2){U.hide()}else{if(i){U.show()}}}if(av.shadows){if(b.support.opacity){p.animate({opacity:1},av.speedH,av.easeIn).animate({opacity:0},av.speedH,av.easeOut)}else{if(i){p.animate({right:av.shadowTopFwdWidth},av.speed,av.easeIn)}else{p.animate({left:av.shadowTopBackWidth},av.speed,av.easeIn)}}}}function H(){aa();ar();z();av.after.call(ao,av);ad=false}function z(){if(av.overlays||av.tabs||av.arrows){if(av.curr=2&&av.curr!=0){d.fadeIn("fast").css("cursor",av.cursor)}else{d.fadeOut("fast").css("cursor","default")}}}function ar(){if(av.pageSelector){if(av.direction=="RTL"){nums=(Math.abs(av.curr-av.pTotal)-1)+" - "+((Math.abs(av.curr-av.pTotal)));if(av.closed){if(av.curr==av.pTotal-2){nums="1"}else{if(av.curr==0){nums=av.pTotal-2}else{nums=(Math.abs(av.curr-av.pTotal)-2)+" - "+((Math.abs(av.curr-av.pTotal)-1))}}if(av.covers){if(av.curr==av.pTotal-2){nums=""}else{if(av.curr==0){nums=""}else{nums=(Math.abs(av.curr-av.pTotal)-3)+" - "+((Math.abs(av.curr-av.pTotal)-2))}}}}b(av.menu+" .b-selector-page .b-current").text(nums)}else{nums=(av.curr+1)+" - "+(av.curr+2);if(av.closed){if(av.curr==0){nums="1"}else{if(av.curr==av.pTotal-2){nums=av.pTotal-2}else{nums=(av.curr)+"-"+(av.curr+1)}}if(av.covers){if(av.curr==0){nums=""}else{if(av.curr==av.pTotal-2){nums=""}else{nums=(av.curr-1)+"-"+(av.curr)}}}}b(av.menu+" .b-selector-page .b-current").text(nums)}}if(av.chapterSelector){if(K[av.curr]!=""){b(av.menu+" .b-selector-chapter .b-current").text(K[av.curr])}else{if(K[av.curr+1]!=""){b(av.menu+" .b-selector-chapter .b-current").text(K[av.curr+1])}}if(av.direction=="RTL"&&K[av.curr+1]!=""){b(av.menu+" .b-selector-chapter .b-current").text(K[av.curr+1])}else{if(K[av.curr]!=""){b(av.menu+" .b-selector-chapter .b-current").text(K[av.curr])}}}}function f(){O=x();if(!isNaN(O)&&O<=av.pTotal-1&&O>=0&&O!=""){if((O%2)!=0){O--}av.curr=O}else{M(av.curr+1,av)}ao.hash=O}function V(){O=x();if(!isNaN(O)&&O<=av.pTotal-1&&O>=0){if(O!=av.curr&&O.toString()!=ao.hash){if((O%2)!=0){O--}document.title=av.name+" - Page "+(O+1);if(!ad){ao.gotoPage(O);ao.hash=O}}}}function x(){var i=window.location.hash.split("/");if(i.length>1){return parseInt(i[2])-1}else{return""}}function M(j,i){if(i.hash){window.location.hash="/page/"+j}}}b.fn.booklet.interfaces=[];b.fn.booklet.defaults={name:null,width:600,height:400,speed:1000,direction:"LTR",startingPage:0,easing:"easeInOutQuad",easeIn:"easeInQuad",easeOut:"easeOutQuad",closed:false,closedFrontTitle:null,closedFrontChapter:null,closedBackTitle:null,closedBackChapter:null,covers:false,pagePadding:10,pageNumbers:true,hovers:true,overlays:true,tabs:false,tabWidth:60,tabHeight:20,arrows:false,cursor:"pointer",hash:false,keyboard:true,next:null,prev:null,menu:null,pageSelector:false,chapterSelector:false,shadows:true,shadowTopFwdWidth:166,shadowTopBackWidth:166,shadowBtmWidth:50,before:function(){},after:function(){}}})(jQuery);(function(c,j,i){c.fn.simplyScroll=function(a){return this.each(function(){new c.simplyScroll(this,a)})};var h={customClass:"simply-scroll",frameRate:24,speed:1,orientation:"horizontal",auto:!0,autoMode:"loop",manualMode:"end",direction:"forwards",pauseOnHover:!0,pauseOnTouch:!0,pauseButton:!1,startOnLoad:!1};c.simplyScroll=function(a,b){var g=this;this.o=c.extend({},h,b||{});this.isAuto=!1!==this.o.auto&&null!==this.o.autoMode.match(/^loop|bounce$/);this.isRTL=(this.isHorizontal=null!==this.o.orientation.match(/^horizontal|vertical$/)&&
this.o.orientation==h.orientation)&&"rtl"==c("html").attr("dir");this.isForwards=!this.isAuto||this.isAuto&&(null!==this.o.direction.match(/^forwards|backwards$/)&&this.o.direction==h.direction)&&!this.isRTL;this.isLoop=this.isAuto&&"loop"==this.o.autoMode||!this.isAuto&&"loop"==this.o.manualMode;this.events=(this.supportsTouch="createTouch"in document)?{start:"touchstart MozTouchDown",move:"touchmove MozTouchMove",end:"touchend touchcancel MozTouchRelease"}:{start:"mouseenter",end:"mouseleave"};
this.$list=c(a);var d=this.$list.children();this.$list.addClass("simply-scroll-list").wrap('
').parent().wrap('
');this.isAuto?this.o.pauseButton&&(this.$list.parent().parent().prepend('
'),this.o.pauseOnHover=!1):this.$list.parent().parent().prepend('
').prepend('
');
if(1").parent().addClass("simply-scroll-list"),this.isHorizontal?this.$list.children().css({"float":"left",width:e+"px"}):this.$list.children().css({height:e+"px"}))}this.o.startOnLoad?c(j).load(function(){g.init()}):this.init()};c.simplyScroll.fn=
c.simplyScroll.prototype={};c.simplyScroll.fn.extend=c.simplyScroll.extend=c.extend;c.simplyScroll.fn.extend({init:function(){this.$items=this.$list.children();this.$clip=this.$list.parent();this.$container=this.$clip.parent();this.$btnBack=c(".simply-scroll-back",this.$container);this.$btnForward=c(".simply-scroll-forward",this.$container);this.isHorizontal?(this.itemMax=this.$items.eq(0).outerWidth(!0),this.clipMax=this.$clip.width(),this.dimension="width",this.moveBackClass="simply-scroll-btn-left",
this.moveForwardClass="simply-scroll-btn-right",this.scrollPos="Left"):(this.itemMax=this.$items.eq(0).outerHeight(!0),this.clipMax=this.$clip.height(),this.dimension="height",this.moveBackClass="simply-scroll-btn-up",this.moveForwardClass="simply-scroll-btn-down",this.scrollPos="Top");this.posMin=0;this.posMax=this.$items.length*this.itemMax;var a=Math.ceil(this.clipMax/this.itemMax);if(this.isAuto&&"loop"==this.o.autoMode)this.$list.css(this.dimension,this.posMax+this.itemMax*a+"px"),this.posMax+=
this.clipMax-this.o.speed,this.isForwards?(this.$items.slice(0,a).clone(!0).appendTo(this.$list),this.resetPosition=0):(this.$items.slice(-a).clone(!0).prependTo(this.$list),this.resetPosition=this.$items.length*this.itemMax,this.isRTL&&(this.$clip[0].dir="ltr",this.$items.css("float","right")));else if(!this.isAuto&&"loop"==this.o.manualMode){this.posMax+=this.itemMax*a;this.$list.css(this.dimension,this.posMax+this.itemMax*a+"px");this.posMax+=this.clipMax-this.o.speed;this.$items.slice(0,a).clone(!0).appendTo(this.$list);
this.$items.slice(-a).clone(!0).prependTo(this.$list);this.resetPositionForwards=this.resetPosition=a*this.itemMax;this.resetPositionBackwards=this.$items.length*this.itemMax;var b=this;this.$btnBack.bind(this.events.start,function(){b.isForwards=false;b.resetPosition=b.resetPositionBackwards});this.$btnForward.bind(this.events.start,function(){b.isForwards=true;b.resetPosition=b.resetPositionForwards})}else this.$list.css(this.dimension,this.posMax+"px"),this.isForwards?this.resetPosition=0:(this.resetPosition=
this.$items.length*this.itemMax,this.isRTL&&(this.$clip[0].dir="ltr",this.$items.css("float","right")));this.resetPos();this.interval=null;this.intervalDelay=Math.floor(1E3/this.o.frameRate);if(this.isAuto||"end"!=this.o.manualMode)for(;0!==this.itemMax%this.o.speed;)if(this.o.speed--,0===this.o.speed){this.o.speed=1;break}b=this;this.trigger=null;this.funcMoveBack=function(a){a!==i&&a.preventDefault();b.trigger=!b.isAuto&&b.o.manualMode=="end"?this:null;b.isAuto?b.isForwards?b.moveBack():b.moveForward():
b.moveBack()};this.funcMoveForward=function(a){a!==i&&a.preventDefault();b.trigger=!b.isAuto&&b.o.manualMode=="end"?this:null;b.isAuto?b.isForwards?b.moveForward():b.moveBack():b.moveForward()};this.funcMovePause=function(){b.movePause()};this.funcMoveStop=function(){b.moveStop()};this.funcMoveResume=function(){b.moveResume()};if(this.isAuto){this.paused=!1;var g=function(){if(b.paused===false){b.paused=true;b.funcMovePause()}else{b.paused=false;b.funcMoveResume()}return b.paused};this.supportsTouch&&
this.$items.find("a").length&&(this.supportsTouch=!1);if(this.isAuto&&this.o.pauseOnHover&&!this.supportsTouch)this.$clip.bind(this.events.start,this.funcMovePause).bind(this.events.end,this.funcMoveResume);else if(this.isAuto&&this.o.pauseOnTouch&&!this.o.pauseButton&&this.supportsTouch){var d,f;this.$clip.bind(this.events.start,function(a){g();var c=a.originalEvent.touches[0];d=b.isHorizontal?c.pageX:c.pageY;f=b.$clip[0]["scroll"+b.scrollPos];a.stopPropagation();a.preventDefault()}).bind(this.events.move,
function(a){a.stopPropagation();a.preventDefault();a=a.originalEvent.touches[0];a=d-(b.isHorizontal?a.pageX:a.pageY)+f;if(a<0)a=0;else if(a>b.posMax)a=b.posMax;b.$clip[0]["scroll"+b.scrollPos]=a;b.funcMovePause();b.paused=true})}else this.o.pauseButton&&(this.$btnPause=c(".simply-scroll-btn-pause",this.$container).bind("click",function(a){a.preventDefault();g()?c(this).addClass("active"):c(this).removeClass("active")}));this.funcMoveForward()}else this.$btnBack.addClass("simply-scroll-btn "+this.moveBackClass).bind(this.events.start,
this.funcMoveBack).bind(this.events.end,this.funcMoveStop),this.$btnForward.addClass("simply-scroll-btn "+this.moveForwardClass).bind(this.events.start,this.funcMoveForward).bind(this.events.end,this.funcMoveStop),"end"==this.o.manualMode&&(!this.isRTL?this.$btnBack.addClass("disabled"):this.$btnForward.addClass("disabled"))},moveForward:function(){var a=this;this.movement="forward";null!==this.trigger&&this.$btnBack.removeClass("disabled");a.interval=setInterval(function(){a.$clip[0]["scroll"+a.scrollPos]<
a.posMax-a.clipMax?a.$clip[0]["scroll"+a.scrollPos]+=a.o.speed:a.isLoop?a.resetPos():a.moveStop(a.movement)},a.intervalDelay)},moveBack:function(){var a=this;this.movement="back";null!==this.trigger&&this.$btnForward.removeClass("disabled");a.interval=setInterval(function(){a.$clip[0]["scroll"+a.scrollPos]>a.posMin?a.$clip[0]["scroll"+a.scrollPos]-=a.o.speed:a.isLoop?a.resetPos():a.moveStop(a.movement)},a.intervalDelay)},movePause:function(){clearInterval(this.interval)},moveStop:function(a){this.movePause();
null!==this.trigger&&("undefined"!==typeof a&&c(this.trigger).addClass("disabled"),this.trigger=null);this.isAuto&&"bounce"==this.o.autoMode&&("forward"==a?this.moveBack():this.moveForward())},moveResume:function(){"forward"==this.movement?this.moveForward():this.moveBack()},resetPos:function(){this.$clip[0]["scroll"+this.scrollPos]=this.resetPosition}})})(jQuery,window);