﻿function showPlayer(fileUrl, prvUrl, w, h, skinName, id, stretch, vol, cbposition) {
    if (!stretch) {
        stretch = "fill";
    }
    if (!vol) {
        vol = 80;
    }
    if (!w) {
        w = 249;
    }
    if (!h) {
        h = 180;
    }
    if (!cbposition) {
        cbposition = "bottom";
    }
    if (!skinName) {
        skinName = "classic";
    }
    if (!id) {
        id = "mediabox";
    }
    jwplayer(id).setup({
        flashplayer: "jwplayer/player.swf",
        file: fileUrl,
        image: prvUrl,
        skin: "jwplayer/skin/" + skinName + "/" + skinName + ".xml",
        wmode: "transparent",
        stretching: stretch,
        volume: vol,
        width: w,
        height: h,
        controlbar: cbposition,
        plugins: "timeslidertooltipplugin-1"
    });
}
