MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* Wiki pages translator – for the benefit of TPN fans who are non-English speakers */ importScriptPage('MediaWiki:Translator/Translator.js', 'dev'); /* End of Wiki pages translator */

(function(window, $, mw) {   "use strict";

// Bulk loading scripts. // scriptList are scripts to load everywhere // pageScriptList are scripts which only certain pages need. var scriptList = [], pageScriptList = []; window.UserTagsJS = { tags: { bureaucrat: { u: 'Bureaucrat', /*link: 'Project:Bureaucrats'*/ }, sysop: { u: 'Sysop', /*link: 'Project:Sysops'*/ }, 'content-moderator': { u: 'Class Representative', /*link: 'Project:Content moderator'*/ }, rollback: { u: 'Rollback', /*link: 'Project:Rollback'*/ }, translator: { u: 'Translator', /*link: 'Project:Translation policy',*/ order: -1 / 0 }, newuser: { u: 'New User' }, 'autoconfirmed-user': { u: 'Active User', /*link: 'Project:Autoconfirmed users'*/ }, user: { u: 'User', /*link: 'Project:Autoconfirmed users'*/ }, inactive: { u: 'Inactive User', title: 'The user hasn\'t edited for last 30 days' },           nonuser: { u: 'Non-User', title: 'The user hasn\'t been granted membership on the wiki yet' },           blocked: { u: 'Blocked', link: 'Project:Blocking policy' },       },        modules: { stopblocked: false, inactive: 30, mwGroups: [ 'bureaucrat', 'rollback', 'sysop', 'content-moderator', 'autoconfirmed-user', 'user', 'bot', 'bot-global', 'blocked', 'nonuser' ],           autoconfirmed: true, newuser: true, metafilter: { 'content-moderator': ['bureaucrat'], rollback: ['bureaucrat', 'content-moderator'], threadmoderator: ['content-moderator'], user: [ 'bureaucrat', 'sysop', 'content-moderator', 'rollback', 'translator', 'newuser', 'inactive', 'blocked' ],               bot: ['bot-global'], newuser: ['inactive'], bureaucrat: ['inactive'], sysop: ['inactive'], founder: ['inactive'], blocked: ['inactive'], },       },    };

/* Add custom groups to several users */ UserTagsJS.modules.custom = { 'Bagwis': ['Sysop'], 'Aphrodite_Belleza': ['Sysop'], 'TG_RBB': ['Sysop'], };

// Configure AjaxRC (window.ajaxPages = (window.ajaxPages || [])).push(       "Special:RecentChanges",        "Special:Watchlist",        "Special:Log",        "Special:Contributions",        "Special:NewFiles",        "Special:NewPages",        "Special:ListFiles",        "Special:WikiActivity",        "Special:Images"    ); window.AjaxRCRefreshText = 'Auto-Refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh every 60secs'; window.ajaxCallAgain = ($.isArray(window.ajaxCallAgain) && window.ajaxCallAgain) || [];

// ArchiveTool window.archiveListTemplate = 'ArchiveList'; window.archivePageTemplate = 'ArchivePage';

// Custom Special:[Multiple]Upload UI   if (({ Upload: 1, MultipleUpload: 1 })[mw.config.get('wgCanonicalSpecialPageName')] === 1) { pageScriptList.push('MediaWiki:Common.js/FairUseUpload.js'); }

// Add custom class for styling long list of refs if ($('.references li').length > 9) $('.references').addClass('compactreferences');

// SMW default popup is broken in wikia // Use custom modal $('.ultisup-image-popup a').click(function(ev) {       ev.preventDefault;        $.showCustomModal(this.title, '', { width: 1000 });       $("#ultisup-load").parent.load(this.href + " #gallery-0");    });

// Oasis-only scripts if (mw.config.get('skin') === 'oasis') { // Template adder on file pages if (mw.config.get('wgCanonicalNamespace') === 'File') $(function {               if ($.inArray("autoconfirmed", mw.config.get("wgUserGroups")) === -1)                    return;

var Options = { '': 'Unlicensed image', '': 'No Fairuse info', '': 'Unused image', '': 'Poor name' },                   tempOptStr = '';

for (var i in Options) { tempOptStr += '' + Options[i] + ' '; }

var html = '' + tempOptStr + ' Add template'; $('.comments').after(html); $('#templateSubmit').click(function {                   $(this).html('');                    new mw.Api.post({ format: 'json', action: 'edit', title: mw.config.get('wgPageName'), token: mw.user.tokens.get('editToken'), summary: 'Adding template: ' + $('#FileTemplateAdder').val, minor: true, prependtext: $('#FileTemplateAdder').val + "\n" })                       .done(function { $('#templateSubmit').text('Add this Template too!'); new BannerNotification('Template: ' + $('#FileTemplateAdder').val + ' Added Successfully', 'confirm').show; })                       .fail(function { new BannerNotification('Template addition failed!', 'error').show; });               });            });    }

// Import all scripts in bulk (and minified) window.importArticles({       type: 'script',        articles: scriptList    }, {        type: 'script',        articles: pageScriptList    }); });

/* Adds icons to page header bottom border */ $(function {   if (skin == "oasis" || skin == "wikia") {        $('.WikiaPageHeader').append($('#icons'));        $('#icons').css({ 'position': 'absolute', 'right': '0', 'bottom': '-1.2em' });   } });

/* Parent Tab */ if ($(".parenttab").length) { $("#contentSub, .header-column.header-title > h2").hide; }

/* On Interlanguage Hover Icon */ $(function{ // Setup language selector $('#langdiv img').each(function{ $(this).css({'height':'auto','width':'150px'}); }); $('#langdiv img').hover(function{ $(this).animate({width:'180px'},'fast'); $('#langdiv span').text($(this).attr('alt')); },function{ $('#langdiv span').text('The Promised Neverland Wiki Interlanguage'); $(this).animate({width:'150px'},'fast'); }); });

/* WAM Score */ window.railWAM = { logPage:"Project:WAM Log" };

/****************************************/ /* sliders using jquery - From Riordan wiki */ /****************************************/ mw.loader.using( ['jquery.ui.tabs'], function {   $(function { var $tabs = $("#portal_slider").tabs({ fx: {opacity:'toggle', duration:100} } ); $("[class^=portal_sliderlink]").click(function { // bind click event to link           $tabs.tabs('select', this.className.replace("portal_sliderlink_", ""));            return false;        }); }); });

/* Sliders */ //Grab image URLs and set to variables var slider1url = $('#slider1url').text; var slider2url = $('#slider2url').text; var slider3url = $('#slider3url').text; var slider4url = $('#slider4url').text; $('#slider1').addClass('linked');

//When panals are clickable, links to designated URL. $('#slider1img').click(function{	if ($('#slider1').hasClass('linked')) {		window.location.href = slider1url;	} });

$('#slider2img').click(function{	if ($('#slider2').hasClass('linked')) {		window.location.href = slider2url;	} });

$('#slider3img').click(function{	if ($('#slider3').hasClass('linked')) {		window.location.href = slider3url;	} });

$('#slider4img').click(function{	if ($('#slider4').hasClass('linked')) {		window.location.href = slider4url;	} });

//Opens and closes panels when clicked.

$('#slider1').click(function{	if ($('#slider1').hasClass('animated')) {		$('#slider1').dequeue.stop;	} else if ($('#slider2').hasClass('animated')) {		$('#slider2').dequeue.stop;	} else if ($('#slider3').hasClass('animated')) {		$('#slider3').dequeue.stop;	} }, function {	if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) {		$('#slider1arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider2caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider1caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1').removeClass('closed').addClass('animated').animate({ width: "625px" }, "normal", "linear", function { $('#slider1').removeClass('animated').dequeue; $('#slider1').addClass('opened').addClass('linked'); $('#slider2').removeClass('linked'); $('#slider3').removeClass('linked'); $('#slider4').removeClass('linked'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('opened')) {		$('#slider1arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider3caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider1caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider3arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1').removeClass('closed').addClass('animated').animate({ width: "625px" }, "normal", "linear", function { $('#slider1').removeClass('animated').dequeue; $('#slider1').addClass('opened').addClass('linked'); $('#slider2').removeClass('linked'); $('#slider3').removeClass('linked'); $('#slider4').removeClass('linked'); });		$('#slider2').removeClass('closed').addClass('animated').animate({ width: "650px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('opened'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('closed')) {		$('#slider1arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider4caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider1caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider4arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1').removeClass('closed').addClass('animated').animate({ width: "625px" }, "normal", "linear", function { $('#slider1').removeClass('animated').dequeue; $('#slider1').addClass('opened').addClass('linked'); b			$('#slider2').removeClass('linked'); $('#slider3').removeClass('linked'); $('#slider4').removeClass('linked'); });		$('#slider2').removeClass('closed').addClass('animated').animate({ width: "650px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('opened'); });		$('#slider3').removeClass('closed').addClass('animated').animate({ width: "675px" }, "normal", "linear", function { $('#slider3').removeClass('animated').dequeue; $('#slider3').addClass('opened'); });	} });

$('#slider2').click(function{	if ($('#slider1').hasClass('animated')) {		$('#slider1').dequeue.stop;	} else if ($('#slider2').hasClass('animated')) {		$('#slider2').dequeue.stop;	} else if ($('#slider3').hasClass('animated')) {		$('#slider3').dequeue.stop;	} }, function {	if ($('#slider1').hasClass('opened') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) {		$('#slider2arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider1caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider2caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1').removeClass('opened').addClass('animated').animate({ width: "25px" }, "normal", "linear", function { $('#slider1').removeClass('animated').dequeue; $('#slider1').addClass('closed').removeClass('linked'); $('#slider2').addClass('linked'); $('#slider3').removeClass('linked'); $('#slider4').removeClass('linked'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('opened')) {		$('#slider2arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider3caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider2caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider3arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2').removeClass('closed').addClass('animated').animate({ width: "650px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('opened').addClass('linked'); $('#slider1').removeClass('linked'); $('#slider3').removeClass('linked'); $('#slider4').removeClass('linked'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('closed')) {		$('#slider2arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider4caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider2caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider4arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2').removeClass('closed').addClass('animated').animate({ width: "650px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('opened').addClass('linked'); $('#slider1').removeClass('linked'); $('#slider3').removeClass('linked'); $('#slider4').removeClass('linked'); });		$('#slider3').removeClass('closed').addClass('animated').animate({ width: "675px" }, "normal", "linear", function { $('#slider3').removeClass('animated').dequeue; $('#slider3').addClass('opened'); });	} });

$('#slider3').click(function{	if ($('#slider1').hasClass('animated')) {		$('#slider1').dequeue.stop;	} else if ($('#slider2').hasClass('animated')) {		$('#slider2').dequeue.stop;	} else if ($('#slider3').hasClass('animated')) {		$('#slider3').dequeue.stop;	} }, function {	if ($('#slider1').hasClass('opened') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) {		$('#slider3arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider1caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider3caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1').removeClass('opened').addClass('animated').animate({ width: "25px" }, "normal", "linear", function { $('#slider1').removeClass('animated').dequeue; $('#slider1').addClass('closed').removeClass('linked'); $('#slider3').addClass('linked'); $('#slider2').removeClass('linked'); $('#slider4').removeClass('linked'); });		$('#slider2').removeClass('opened').addClass('animated').animate({ width: "50px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('closed'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) {		$('#slider3arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider2caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider3caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2').removeClass('opened').addClass('animated').animate({ width: "50px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('closed').removeClass('linked'); $('#slider3').addClass('linked'); $('#slider4').removeClass('linked'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('closed')) {		$('#slider3arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider4caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider3caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider4arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider3').removeClass('closed').addClass('animated').animate({ width: "675px" }, "normal", "linear", function { $('#slider3').removeClass('animated').dequeue; $('#slider3').addClass('opened').addClass('linked'); $('#slider1').removeClass('linked'); $('#slider2').removeClass('linked'); $('#slider4').removeClass('linked'); });	} });

$('#slider4').click(function{	if ($('#slider1').hasClass('animated')) {		$('#slider1').dequeue.stop;	} else if ($('#slider2').hasClass('animated')) {		$('#slider2').dequeue.stop;	} else if ($('#slider3').hasClass('animated')) {		$('#slider3').dequeue.stop;	} }, function {	if ($('#slider1').hasClass('opened') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) {		$('#slider4arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider1caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider4caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider1').removeClass('opened').addClass('animated').animate({ width: "25px" }, "normal", "linear", function { $('#slider1').removeClass('animated').dequeue; $('#slider1').addClass('closed').removeClass('linked'); $('#slider4').addClass('linked'); $('#slider2').removeClass('linked'); $('#slider3').removeClass('linked'); });		$('#slider2').removeClass('opened').addClass('animated').animate({ width: "50px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('closed'); });		$('#slider3').removeClass('opened').addClass('animated').animate({ width: "75px" }, "normal", "linear", function { $('#slider3').removeClass('animated').dequeue; $('#slider3').addClass('closed'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) {		$('#slider4arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider2caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider4caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider2').removeClass('opened').addClass('animated').animate({ width: "50px" }, "normal", "linear", function { $('#slider2').removeClass('animated').dequeue; $('#slider2').addClass('closed').removeClass('linked'); $('#slider4').addClass('linked'); $('#slider1').removeClass('linked'); $('#slider3').removeClass('linked'); });		$('#slider3').removeClass('opened').addClass('animated').animate({ width: "75px" }, "normal", "linear", function { $('#slider3').removeClass('animated').dequeue; $('#slider3').addClass('closed'); });	} else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('opened')) {		$('#slider4arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider3caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200);		$('#slider4caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider3arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500);		$('#slider3').removeClass('opened').addClass('animated').animate({ width: "75px" }, "normal", "linear", function { $('#slider3').removeClass('animated').dequeue; $('#slider3').addClass('closed').removeClass('linked'); $('#slider4').addClass('linked'); $('#slider1').removeClass('linked'); $('#slider2').removeClass('linked'); });	} });

//Scrolls through slider every 6 seconds var scrolltimer = window.setInterval(autoScroll, 6000);

function autoScroll { if ($('#slider1').hasClass('opened') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) { $('#slider2arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider1caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider2caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider1arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider1').removeClass('opened').addClass('animated').animate({ width: "25px" }, "normal", "linear", function {			$('#slider1').addClass('closed').removeClass('linked').removeClass('animated').dequeue;			$('#slider2').addClass('linked');			$('#slider3').removeClass('linked');			$('#slider4').removeClass('linked');		}); } else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('opened') && $('#slider3').hasClass('opened')) { $('#slider3arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider2caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider3caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider2arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider2').removeClass('opened').addClass('animated').animate({ width: "50px" }, "normal", "linear", function {			$('#slider2').addClass('closed').removeClass('linked').removeClass('animated').dequeue;			$('#slider3').addClass('linked');			$('#slider4').removeClass('linked');			$('#slider1').removeClass('linked');		}); } else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('opened')) { $('#slider4arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider3caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider4caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider3arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider3').removeClass('opened').addClass('animated').animate({ width: "75px" }, "normal", "linear", function {			$('#slider3').addClass('closed').removeClass('linked').removeClass('animated').dequeue;			$('#slider4').addClass('linked');			$('#slider2').removeClass('linked');			$('#slider1').removeClass('linked');		}); } else if ($('#slider1').hasClass('closed') && $('#slider2').hasClass('closed') && $('#slider3').hasClass('closed')) { $('#slider1arrow').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider4caption').css({opacity: 1.0, visibility: "visible"}).animate({opacity: 0}, 200); $('#slider1caption').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider4arrow').css({opacity: 0, visibility: "visible"}).animate({opacity: 1.0}, 500); $('#slider4').removeClass('opened').addClass('animated').animate({ width: "698px" }, "normal", "linear", function {			$('#slider4').removeClass('linked').removeClass('animated').dequeue;			$('#slider1').addClass('linked');			$('#slider2').removeClass('linked');			$('#slider3').removeClass('linked');		}); $('#slider3').removeClass('closed').addClass('animated').animate({ width: "675px" }, "normal", "linear", function {			$('#slider3').removeClass('animated').dequeue;			$('#slider3').addClass('opened');		}); $('#slider2').removeClass('closed').addClass('animated').animate({ width: "650px" }, "normal", "linear", function {			$('#slider2').removeClass('animated').dequeue;			$('#slider2').addClass('opened');		}); $('#slider1').removeClass('closed').addClass('animated').animate({ width: "625px" }, "normal", "linear", function {			$('#slider1').removeClass('animated').dequeue;			$('#slider1').addClass('opened');		}); } }

//Turns off autoscroll on hover $('#sliderframe').on("mouseenter",function{	scrolltimer = window.clearInterval(scrolltimer) }).on("mouseleave",function{	scrolltimer = window.setInterval(autoScroll, 6000); });