﻿// *** custom ******** 

$(function () {
    $('.twoColumns').columnize({
        columns: 2
    });
});


// *** functions ******** 

function loadSWF(cFlvSourcePath, cPreviewPicture, cTargetID, flvWidth, flvHeight) {
    var oFlash = window.document.getElementById('flashPlayer');
    var oDetail = window.document.getElementById('detailBox');
    if (oFlash) {
        oFlash.style.display = 'block';
    }
    if (oDetail) {
        oDetail.style.display = 'none';
    }
    if (isObject(cTargetID)) {
        replaceSwfWithEmptyDiv(cTargetID);
    }
    var flashvars = {};
    var params = {};
    params.play = "false";
    params.loop = "false";
    params.bgcolor = "#FFFFFF";
    var attributes = {};
    swfobject.embedSWF("/flash/flvPlayer.swf?previewPicture=" + cPreviewPicture + "&flvWidth=" + flvWidth + "&flvHeight=" + flvHeight + "&flvSourcePath=" + cFlvSourcePath, "flashPlayer", flvWidth, flvHeight, "9.0.0", "/jscript/swfobject/expressInstall.swf", flashvars, params, attributes);
}

function loadImg(cImage, cPath) {
    var oFlash = window.document.getElementById('flashPlayer');
    var oDetail = window.document.getElementById('detailBox');
    if (oDetail) {
        oDetail.style.display = 'block';
    }
    if (oFlash) {
        replaceSwfWithEmptyDiv('flashPlayer');
        oFlash.style.display = 'none';
    }
    document.images[cImage].src = cPath;
}
