function updateTheme() { /*** OTHER ELEMENTS DEPENDING ON JAVASCRIPT ***/ if(pagesOnScreen<3) { fullPageWidth=getPageWidth(); } else { fullPageWidth=(getPageWidth()*2)+marginBetween; } //Application body document.getElementById('page').style.width=fullPageWidth+'px'; //Settings the right width document.getElementById('page').style.left='50%'; //Settings the right width document.getElementById('page').style.marginLeft='-'+((fullPageWidth/2)+5)+'px'; //Settings the right width document.getElementById('page').style.display=''; //Unhiding //Application document document.getElementById('flipBook').style.top=marginTop+'px'; //Settings the right width //Arrows document.getElementById('LArrow').style.top=(Math.round(document.documentElement.clientHeight/2)-100)+'px'; document.getElementById('RArrow').style.top=(Math.round(document.documentElement.clientHeight/2)-100)+'px'; document.getElementById('RArrow').style.marginLeft=(fullPageWidth-$('#RArrow').width()+11)+'px'; //Loading Page Animation $(".loadingPage").css({ top:Math.round(document.documentElement.clientHeight/2) }); $(document).ready(function() { //top-switch-buttons $('#pageSwitcher').css({ width:($(window).width()-$('#logoTypeImg').width()-100)+'px' }) //SwitchText $("#SwitchText").css('left',($("#SwitchButtons").width()+15)+'px'); //#loading. Removes the loader and restarting counter (visiting time for stats). $('#loading').delay(800).fadeOut(1000, function() { visitingTime=Math.round(new Date().getTime() / 1000); }); //Loading thumbnails in background (application.flipSlide.js) $.fn.loadOverview(); }); }