﻿

// This is to get around the focus issue when embedding objects into a webpage
function WriteTonePlayer(productId, progressBarColor, stripesColor)
{
    document.write('<object id="toneplayer' + productId + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100" height="16" id="tonePlayer" align="middle" VIEWASTEXT>');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name=FlashVars VALUE="progressBarColor=' + progressBarColor + '&stripesColor=' + stripesColor + '&loaderbgColor=0x000000&loaderborderhighlightColor=0x999999&loaderborderlowlightColor=0x666666&needleColor=0x000000&shadowColor=white" />');
    document.write('<param name="movie" value="http://www.ringtonejukebox.com/realtoneplayer/landingpagetonePlayer_skinnable_v2.swf?productID=' + productId + '_1"/>');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="bgcolor" value="#000000" />');
    document.write('<embed src="http://www.ringtonejukebox.com/realtoneplayer/landingpagetonePlayer_skinnable_v2.swf?productID=' + productId + '_1" FlashVars="progressBarColor=' + progressBarColor + '&stripesColor=' + stripesColor + '&loaderbgColor=0x000000&loaderborderhighlightColor=0x999999&loaderborderlowlightColor=0x666666&needleColor=0x000000&shadowColor=white" quality="high" wmode="transparent" bgcolor="#000000" width="100" height="16" name="tonePlayer" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>');
    document.write('</object>');
}

// Documentation for the lightwindow is at http://stickmanlabs.com/lightwindow/
function ShowLightWindow(productId)
{
    myLightWindow.activateWindow({ 
        href : 'GetIt.aspx?pid=' + productId.toString(),
        title : 'Get It!',
        width : 440,
        height : 335,
        iframeEmbed : true
    });
}

// Documentation for the lightwindow is at http://stickmanlabs.com/lightwindow/
function ShowLightWindowAndStyle(productId,presenterId)
{
    myLightWindow.activateWindow({ 
        href : 'GetIt.aspx?pid=' + productId.toString()+"&prid="+presenterId,
        title : 'Get It!',
        width : 440,
        height : 335,
        iframeEmbed : true
    });
}

// Documentation for the lightwindow is at http://stickmanlabs.com/lightwindow/
function ShowLightWindowStyleShortCode(productId,shortCode,presenterId)
{
    myLightWindow.activateWindow({ 
        href : 'GetIt.aspx?pid=' + productId.toString()+ "&sc=" + shortCode.toString()+"&prid="+presenterId ,
        title : 'Get It!',
        width : 440,
        height : 560,
        iframeEmbed : true
    });
}

// Documentation for the lightwindow is at http://stickmanlabs.com/lightwindow/
function ShowMultiPointLightWindow(productId, shortCode) {
    myLightWindow.activateWindow({
    href: 'MultiPricePoint_GetIt.aspx?pid=' + productId.toString() + "&sc=" + shortCode.toString(),
        title: 'Get It!',
        width: 440,
        height: 560,
        iframeEmbed: true
    });
}

// Documentation for the lightwindow is at http://stickmanlabs.com/lightwindow/
function ShowMultiPointLightWindowStyle(productId, shortCode, presenterId) {
    myLightWindow.activateWindow({
    href: 'MultiPricePoint_GetIt.aspx?pid=' + productId.toString() + "&sc=" + shortCode.toString()+"&prid="+presenterId ,
        title: 'Get It!',
        width: 440,
        height: 560,
        iframeEmbed: true
    });
}
// Documentation for the lightwindow is at http://stickmanlabs.com/lightwindow/
function ShowLightWindowWithShortCode(productId, shortCode)
{
    myLightWindow.activateWindow({ 
        href : 'GetIt.aspx?pid=' + productId.toString() + "&sc=" + shortCode.toString(),
        title : 'Get It!',
        width : 460,
        height : 560,
        iframeEmbed : true
    });
}