var slideInfo = [
];
var slideTime = ;
var slideW = ;
var slideH = ;
var showSlides = '';
var showTimer = ;
var slideIndex = 0;
var mainSlideTimeout = 0;
/* Display text overlay */
function placeOverlay() {
return;
if(jQuery('#grace-textoverlay').length == 0) { jQuery('#grace-holder').append('
';
var overlayH = 60;
var titleTopMargin = 0;
if(slideInfo[slideIndex][9] != '') {
div += '
' + slideInfo[slideIndex][9] + '';
}
if(slideInfo[slideIndex][10] != '') {
div += '
' + slideInfo[slideIndex][10] + '
';
overlayH += 50;
} else {
titleTopMargin = 20;
}
if(slideInfo[slideIndex][11] != '') {
div += '
»';
}
div += '
';
jQuery('#grace-textoverlay').append(div);
jQuery('#grace-textoverlay').css({'background':'url("images/grace/textoverlay.png")', 'position':'absolute', 'top':slideH + 'px', 'left':'0px', 'height':(overlayH + 70) + 'px', 'width': slideW + 'px', 'z-index':2});
jQuery('#grace-textoverlay div').css({'width':(slideW / 2) + 'px', 'float':'right', 'margin':'15px 25px'});
jQuery('#grace-textoverlay div strong').css({'color':'#fff', 'font-size':'16px', 'line-height':'18px', 'font-weight':'normal', 'letter-spacing':'.5px', 'margin':titleTopMargin + ' 0 5px 0', 'display':'block'});
jQuery('#grace-textoverlay div p').css({'color':'#eee', 'font-size':'11px', 'text-align':'justify', 'line-height':'16px', 'margin':0});
jQuery('#grace-textoverlay div span').css({'width':(slideW / 2) + 'px'});
jQuery('#grace-textoverlay div a').css({'color':'#ccc', 'font-size':'11px', 'float':'right', 'text-decoration':'none'});
jQuery('#grace-textoverlay div a').hover(function() {
jQuery(this).css({'color':'#eee', 'text-decoration':'underline'});
}, function() {
jQuery(this).css({'color':'#ccc', 'text-decoration':'none'});
});
jQuery('#grace-textoverlay').animate({'top':(slideH - overlayH) + 'px'}, {queue:false, duration:300, easing:'easeOutBack'});
if(slideInfo.length > 1) { setTimeout(function() { removeOverlay(); }, (slideTime - 400)); }
}
/* Fade out text overlay */
function removeOverlay() {
jQuery('#grace-textoverlay').animate({top:slideH + 'px', opacity:0}, {queue:false, duration:200, easing:'easeInCubic', complete:function() { jQuery('#grace-textoverlay').remove()}});
}
/* Place thumbnails/squares, initiate slides */
function showSlide() {
switch(showSlides) {
case 'thumbnails':
if(jQuery('#grace-thumbnails').length == 0) {
jQuery('#grace-holder').append('