/* Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * Version: 3.0.2
 * 
 * Requires: 1.2.2+
 */
(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery);
/**
 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
 * @requires jQuery v1.2 or above
 *
 * http://gmarwaha.com/jquery/jcarousellite/
 *
 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Version: 1.0.1
 * Note: Requires jquery 1.2 or above from version 1.0.1
 */
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
/*
 * jQuery Nivo Slider v1.9
 * http://nivo.dev7studios.com
 *
 * Copyright 2010, Gilbert Pellegrom
 * Free to use and abuse under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * April 2010 - controlNavThumbs option added by Jamie Thompson (http://jamiethompson.co.uk)
 * March 2010 - manualAdvance option added by HelloPablo (http://hellopablo.co.uk)
 */
(function($){$.fn.nivoSlider=function(options){var settings=$.extend({},$.fn.nivoSlider.defaults,options);return this.each(function(){var vars={currentSlide:0,currentImage:'',totalSlides:0,randAnim:'',running:false,paused:false,stop:false};var slider=$(this);slider.data('nivo:vars',vars);slider.css('position','relative');slider.addClass('ap-nivo-slider');var kids=slider.children();kids.each(function(){var child=$(this);var link='';if(!child.is('img')){if(child.is('a')){child.addClass('ap-nivo-image-link');link=child}child=child.find('img:first')}var childWidth=child.width();if(childWidth==0)childWidth=child.attr('width');var childHeight=child.height();if(childHeight==0)childHeight=child.attr('height');if(childWidth>slider.width()){slider.width(childWidth)}if(childHeight>slider.height()){slider.height(childHeight)}if(link!=''){link.css('display','none')}child.css('display','none');vars.totalSlides++});if(settings.startSlide>0){if(settings.startSlide>=vars.totalSlides)settings.startSlide=vars.totalSlides-1;vars.currentSlide=settings.startSlide}if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide])}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first')}if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block')}slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');for(var i=0;i<settings.slices;i++){var sliceWidth=Math.round(slider.width()/settings.slices);if(i==settings.slices-1){slider.append($('<div class="ap-nivo-slice"></div>').css({left:(sliceWidth*i)+'px',width:(slider.width()-(sliceWidth*i))+'px'}))}else{slider.append($('<div class="ap-nivo-slice"></div>').css({left:(sliceWidth*i)+'px',width:sliceWidth+'px'}))}}slider.append($('<div class="ap-nivo-caption"><p></p></div>').css({display:'none',opacity:settings.captionOpacity}));if(vars.currentImage.attr('title')!=''){$('.ap-nivo-caption p',slider).html(vars.currentImage.attr('title'));$('.ap-nivo-caption',slider).fadeIn(settings.animSpeed)}var timer=0;if(!settings.manualAdvance&&kids.length>1){timer=setInterval(function(){nivoRun(slider,kids,settings,false)},settings.pauseTime)}if(settings.directionNav){slider.append('<div class="ap-nivo-direction-nav"><a class="ap-nivo-prev-nav">Prev</a><a class="ap-nivo-next-nav">Next</a></div>');if(settings.directionNavHide){$('.ap-nivo-direction-nav',slider).hide();slider.hover(function(){$('.ap-nivo-direction-nav',slider).show()},function(){$('.ap-nivo-direction-nav',slider).hide()})}$('a.ap-nivo-prev-nav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev')});$('a.ap-nivo-next-nav',slider).live('click',function(){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next')})}if(settings.controlNav){var nivoControl=$('<div class="ap-nivo-control-nav"></div>');slider.append(nivoControl);for(var i=0;i<kids.length;i++){if(settings.controlNavThumbs){var child=kids.eq(i);if(!child.is('img')){child=child.find('img:first')}if(settings.controlNavThumbsFromRel){nivoControl.append('<a class="nivo-control" rel="'+i+'"><img src="'+child.attr('rel')+'" alt="" /></a>')}else{nivoControl.append('<a class="nivo-control" rel="'+i+'"><img src="'+child.attr('src').replace(settings.controlNavThumbsSearch,settings.controlNavThumbsReplace)+'" alt="" /></a>')}}else{nivoControl.append('<a class="nivo-control" rel="'+i+'">'+i+'</a>')}}$('.ap-nivo-control-nav a:eq('+vars.currentSlide+')',slider).addClass('active');$('.ap-nivo-control-nav a',slider).live('click',function(){if(vars.running)return false;if($(this).hasClass('active'))return false;clearInterval(timer);timer='';slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat');vars.currentSlide=$(this).attr('rel')-1;nivoRun(slider,kids,settings,'control')})}if(settings.keyboardNav){$(window).keypress(function(event){if(event.keyCode=='37'){if(vars.running)return false;clearInterval(timer);timer='';vars.currentSlide-=2;nivoRun(slider,kids,settings,'prev')}if(event.keyCode=='39'){if(vars.running)return false;clearInterval(timer);timer='';nivoRun(slider,kids,settings,'next')}})}if(settings.pauseOnHover){slider.hover(function(){vars.paused=true;clearInterval(timer);timer=''},function(){vars.paused=false;if(timer==''&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false)},settings.pauseTime)}})}slider.bind('nivo:animFinished',function(){vars.running=false;$(kids).each(function(){if($(this).is('a')){$(this).css('display','none')}});if($(kids[vars.currentSlide]).is('a')){$(kids[vars.currentSlide]).css('display','block')}if(timer==''&&!vars.paused&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false)},settings.pauseTime)}settings.afterChange.call(this)})});function nivoRun(slider,kids,settings,nudge){var vars=slider.data('nivo:vars');if((!vars||vars.stop)&&!nudge)return false;settings.beforeChange.call(this);if(!nudge){slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat')}else{if(nudge=='prev'){slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat')}if(nudge=='next'){slider.css('background','url('+vars.currentImage.attr('src')+') no-repeat')}}vars.currentSlide++;if(vars.currentSlide==vars.totalSlides){vars.currentSlide=0;settings.slideshowEnd.call(this)}if(vars.currentSlide<0)vars.currentSlide=(vars.totalSlides-1);if($(kids[vars.currentSlide]).is('img')){vars.currentImage=$(kids[vars.currentSlide])}else{vars.currentImage=$(kids[vars.currentSlide]).find('img:first')}if(settings.controlNav){$('.ap-nivo-control-nav a',slider).removeClass('active');$('.ap-nivo-control-nav a:eq('+vars.currentSlide+')',slider).addClass('active')}if(vars.currentImage.attr('title')!=''){if($('.ap-nivo-caption',slider).css('display')=='block'){$('.ap-nivo-caption p',slider).fadeOut(settings.animSpeed,function(){$(this).html(vars.currentImage.attr('title'));$(this).fadeIn(settings.animSpeed)})}else{$('.ap-nivo-caption p',slider).html(vars.currentImage.attr('title'))}$('.ap-nivo-caption',slider).fadeIn(settings.animSpeed)}else{$('.ap-nivo-caption',slider).fadeOut(settings.animSpeed)}var i=0;$('.ap-nivo-slice',slider).each(function(){var sliceWidth=Math.round(slider.width()/settings.slices);$(this).css({height:'0px',opacity:'0',background:'url('+vars.currentImage.attr('src')+') no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+'px 0%'});i++});if(settings.effect=='random'){var anims=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade");vars.randAnim=anims[Math.floor(Math.random()*(anims.length+1))];if(vars.randAnim==undefined)vars.randAnim='fade'}if(settings.effect.indexOf(',')!=-1){var anims=settings.effect.split(',');vars.randAnim=$.trim(anims[Math.floor(Math.random()*anims.length)])}vars.running=true;if(settings.effect=='sliceDown'||settings.effect=='sliceDownRight'||vars.randAnim=='sliceDownRight'||settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft'){var timeBuff=0;var i=0;var slices=$('.ap-nivo-slice',slider);if(settings.effect=='sliceDownLeft'||vars.randAnim=='sliceDownLeft')slices=$('.ap-nivo-slice',slider).reverse();slices.each(function(){var slice=$(this);slice.css('top','0px');if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished')})},(100+timeBuff))}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed)},(100+timeBuff))}timeBuff+=50;i++})}else if(settings.effect=='sliceUp'||settings.effect=='sliceUpRight'||vars.randAnim=='sliceUpRight'||settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft'){var timeBuff=0;var i=0;var slices=$('.ap-nivo-slice',slider);if(settings.effect=='sliceUpLeft'||vars.randAnim=='sliceUpLeft')slices=$('.ap-nivo-slice',slider).reverse();slices.each(function(){var slice=$(this);slice.css('bottom','0px');if(i==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished')})},(100+timeBuff))}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed)},(100+timeBuff))}timeBuff+=50;i++})}else if(settings.effect=='sliceUpDown'||settings.effect=='sliceUpDownRight'||vars.randAnim=='sliceUpDown'||settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft'){var timeBuff=0;var i=0;var v=0;var slices=$('.ap-nivo-slice',slider);if(settings.effect=='sliceUpDownLeft'||vars.randAnim=='sliceUpDownLeft')slices=$('.ap-nivo-slice',slider).reverse();slices.each(function(){var slice=$(this);if(i==0){slice.css('top','0px');i++}else{slice.css('bottom','0px');i=0}if(v==settings.slices-1){setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished')})},(100+timeBuff))}else{setTimeout(function(){slice.animate({height:'100%',opacity:'1.0'},settings.animSpeed)},(100+timeBuff))}timeBuff+=50;v++})}else if(settings.effect=='fold'||vars.randAnim=='fold'){var timeBuff=0;var i=0;$('.ap-nivo-slice',slider).each(function(){var slice=$(this);var origWidth=slice.width();slice.css({top:'0px',height:'100%',width:'0px'});if(i==settings.slices-1){setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed,'',function(){slider.trigger('nivo:animFinished')})},(100+timeBuff))}else{setTimeout(function(){slice.animate({width:origWidth,opacity:'1.0'},settings.animSpeed)},(100+timeBuff))}timeBuff+=50;i++})}else if(settings.effect=='fade'||vars.randAnim=='fade'){var i=0;$('.ap-nivo-slice',slider).each(function(){$(this).css('height','100%');if(i==settings.slices-1){$(this).animate({opacity:'1.0'},(settings.animSpeed*2),'',function(){slider.trigger('nivo:animFinished')})}else{$(this).animate({opacity:'1.0'},(settings.animSpeed*2))}i++})}}};$.fn.nivoSlider.defaults={effect:'random',slices:15,animSpeed:500,pauseTime:3000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:'.jpg',controlNavThumbsReplace:'_thumb.jpg',keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){}};$.fn.reverse=[].reverse})(jQuery);
/**
 * @author Alexander Farkas
 * v. 1.21
 */
(function($){if(!document.defaultView||!document.defaultView.getComputedStyle){var oldCurCSS=jQuery.curCSS;jQuery.curCSS=function(elem,name,force){if(name==='background-position'){name='backgroundPosition'}if(name!=='backgroundPosition'||!elem.currentStyle||elem.currentStyle[name]){return oldCurCSS.apply(this,arguments)}var style=elem.style;if(!force&&style&&style[name]){return style[name]}return oldCurCSS(elem,'backgroundPositionX',force)+' '+oldCurCSS(elem,'backgroundPositionY',force)}}var oldAnim=$.fn.animate;$.fn.animate=function(prop){if('background-position'in prop){prop.backgroundPosition=prop['background-position'];delete prop['background-position']}if('backgroundPosition'in prop){prop.backgroundPosition='('+prop.backgroundPosition}return oldAnim.apply(this,arguments)};function toArray(strg){strg=strg.replace(/left|top/g,'0px');strg=strg.replace(/right|bottom/g,'100%');strg=strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var res=strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]]}$.fx.step.backgroundPosition=function(fx){if(!fx.bgPosReady){var start=$.curCSS(fx.elem,'backgroundPosition');if(!start){start='0px 0px'}start=toArray(start);fx.start=[start[0],start[2]];var end=toArray(fx.options.curAnim.backgroundPosition);fx.end=[end[0],end[2]];fx.unit=[end[1],end[3]];fx.bgPosReady=true}var nowPosX=[];nowPosX[0]=((fx.end[0]-fx.start[0])*fx.pos)+fx.start[0]+fx.unit[0];nowPosX[1]=((fx.end[1]-fx.start[1])*fx.pos)+fx.start[1]+fx.unit[1];fx.elem.style.backgroundPosition=nowPosX[0]+' '+nowPosX[1]}})(jQuery);


window.ap={
html:{
ids:{
homePage:'#welcome',
topMenu:'#ap-strapline',
slideShow:'#ap-slideshow',
globalMenu:'#ap-global',
twitter:'#ap-twitter',
fairground:'#ap-fairground',
showCase:'#ap-portfolio',
news:'#ap-news',
billBoard:'#ap-bill-boards',
portfolio:'#portfolio #ap-slideshow',
sells:'#ap-services, #ap-research-development, #ap-education'
}
},
css:{
classNames:{
widgets:'ap-widget',
thumbnail:'ap-thumbnail',
activeState:'ui-state-active',
javascriptSupport:'jquery-support'
}
},
engine:{
nivoSlider:function($el) {
$el.nivoSlider({
effect:'random',
slices:4,
animSpeed:1000,
pauseTime:10000,
startSlide:0,
directionNav:false,
directionNavHide:false,
controlNav:true,
controlNavThumbs:false,
keyboardNav:true,
pauseOnHover:true,
manualAdvance:false,
captionOpacity:0.8
});
}
},
loaders:[],
init:function() {

var html=ap.html||{},
css=ap.css||{},
ids=html.ids||false,
engine=ap.engine||false,
classNames=css.classNames||false;

if(!ids||!classNames||!engine) {
return false;
}
var $topMenu=$(ids.topMenu),
activeState=classNames.activeState;
$('#ap-container').addClass(ap.css.classNames.javascriptSupport);
if(document.documentElement.lang=="ja") {
	$('>ul>li:eq(1) ', $topMenu).hover(
	function() {
	$(this).addClass(activeState);
	},
	function() {
	$(this).removeClass(activeState);
	}
	);
}
var $homePage=$(ids.homePage||false);
if($homePage.size()>0) {
var ua=navigator.userAgent||false;
if(ua && ua.toUpperCase().match('MSIE 6')) {
}
else{
var slider=engine.nivoSlider||false,
$slideShow=$(ids.slideShow||false);
if(slider && $slideShow) {
ap.loaders.push(function() {
slider($slideShow);
});
};
}
$((ids.billBoard||'#undefined') + (' div.' + classNames.widgets)||false).hover(
function() { $(' div:eq(0) ', this).addClass(activeState);},
function() { $(' div:eq(0) ', this).removeClass(activeState);}
).click(function($event) {
var $clicked=$($event.target),
$url;
if(($clicked[0].tagName||'').toUpperCase()!='A') {
$url=$(this).find('a:eq(0)').attr('href');
if($url!='') {
document.location.href=$url;
}
$event.preventDefault();
}
});
var $showCase=$(ids.showCase||false),
$news=$(ids.news||false);
if(($showCase.size()>0) && ($news.size()>0)) {
var minHeight=$news.height();
$news.css({
overflow:'hidden',
height:minHeight + 'px',
minHeight:minHeight + 'px'
});
$showCase.css({
height:minHeight + 'px'
});
var newHeight=(minHeight - $showCase.find('div.ap-widget-header').height());
$showCase.find('div.ap-widget-content').css({
height:newHeight + 'px'
});
$showCase.find('ul, li, li a').css({
height:(newHeight - 22) + 'px'
});
var $showCaseContainer= $showCase.find('div.ap-widget-content'),
	$showCaseNavLinks=$showCaseContainer.find('>a ');
   $showCaseContainer.jCarouselLite({
	btnNext:"#ap-portfolio-next",
btnPrev:"#ap-portfolio-prev",
mouseWheel:true,
auto:false,
speed:500,
scroll:1,
visible:1,
vertical:false
}).hover(
	function() {
		$(this).addClass(activeState);
	},
	function() {
		$(this).removeClass(activeState);
	}
);
}
}
else{
	var isSmall=$(window).height() - $('footer').height() - $('header:eq(0)').height() - $('article')[0].offsetHeight;
	if(isSmall>0) {
		$('footer').css({
			bottom:'0px'
		});
	}
}
var $fairground=$(ids.fairground||false),
$footer=$('footer');
if(($fairground.size()>0)||($footer.size()>0)) {
var resizeSections=function() {
var newWidth=$(window).width();
$fairground.css({
width:newWidth
});
$footer.css({
width:newWidth
});
};
resizeSections();
$(window).bind('resize', resizeSections);
$fairground.find('div.ap-excerpt').hover(
function() {
$(' div:eq(0) ', this).addClass(activeState);

},
function() {
$(' div:eq(0) ', this).removeClass(activeState);

}
).click(function($event) {
var $url=$(this).find('a:eq(0)').attr('href');
if($url!='') {
document.location.href=$url;
}
$event.preventDefault();
});
}
var $portfolio=$(ids.portfolio||false);
if($portfolio.size()>0) {
	var $motion=function() {
		$portfolio.animate({
			backgroundPosition:'0px -' + (parseInt($portfolio.attr('data-fullsize-height'), 10) - $portfolio.height()) + 'px'
		}, 10000);
	};
	setTimeout($motion, 1000);
}
}
};

$(document).ready(ap.init);
$(window).load(function() {
var loaders=ap.loaders||false;
if(loaders && loaders.length) {
for(var i=0;i<loaders.length;i++) {
var toLaunch=loaders[i]||false;
if(typeof toLaunch=='function') {
toLaunch();
}
}
}
});


