window.addEvent('domready', function() {
var slideShow = new SlideShow({
periodical: 30000,
imgDuration: 800,
imgTransition: 'sine:in:out'
});
new AnchorEffect({ 
color: '#008bd5',
isFadeOutJump: false
});
new FadeInClassEffect();
new ExtraInit();

var adjustGrid = new AdjustGrid({
ajaxLoaderSrc: 'themes/ajax-loader.gif',
wrapperMaxWidth: 1280,
isQueueJumping: true
});
slideShow.addEvents({
complete: function() {
adjustGrid.readjust(true, adjustGrid.animationType.move);
},
imgSizeChange: function() {
adjustGrid.readjust(true, adjustGrid.animationType.move);
}
});
slideShow.run();

var globalNav = new GrobalNav({
adjustGrid: adjustGrid
});
globalNav.addEvents({
complete: function() {
new ToolTips({
tipOpacity: 1
});
adjustGrid.adjust(true);
},

anchorClick: function() {
adjustGrid.adjust(true, adjustGrid.animationType.move);
}
});
globalNav.create();
});
