﻿function startSlideShow(elId)
{
    $(elId).cycle({
            fx: 'fade',
            speed: 800,
    next:   '.slideShowNext', 
    prev:   '.slideShowPrevious' 
        });
}



function selectImage(src) {

    //$().formatText(window.parent.currentFrame.iframe, 'InsertImage', src);
    if (window.parent && window.parent.currentFrame) {
        window.parent.currentFrame.contentWindow.focus();
        try {
            window.parent.currentFrame.contentWindow.document.execCommand('InsertImage', false, src);
        } catch (e) { console.log(e) }
        window.parent.currentFrame.contentWindow.focus();
        window.parent.tb_remove();
    }
    else {
        document.location = src;
    }
}
