//###############################################################################
//##                                                                           ##
//##  (c) Think Big Publications, LLC ("Think Big"), April 2011.               ##
//##                                                                           ##
//##  Duplication, selling, or transferring of this script is a violation of   ##
//##  the copyright and purchase agreement. Alteration of this script in any   ##
//##  way voids any responsibility Think Big has toward the functioning of     ##
//##  the script. Altering the script in an attempt to unlock other functions  ##
//##  of the program that have not been purchased is forbidden by Think Big    ##
//##  and is a violation of the purchase agreement. By modifying/running this  ##
//##  script, you agree to Think Big's terms and conditions located at         ##
//##  www.thinkbighq.com/software.html.                                        ##
//##                                                                           ##
//##  For support requests, bugs, suggestions or custom development, please    ##
//##  submit a ticket at www.thinkbigpublications.com/support.                 ##
//##                                                                           ##
//###############################################################################
//
var peelCash;
if (peelCash == undefined)
  peelCash = new Object();

peelCash['connectionId'] = Math.floor(1000000000*Math.random());
if (peelCash['minMovie'] == undefined)
  peelCash['minMovie'] = 'peelcashmin.swf';
if (peelCash['maxMovie'] == undefined)
  peelCash['maxMovie'] = 'peelcashmax.swf';

peelCash['minQueryString'] = '';
peelCash['maxQueryString'] = '';

function getParm(parm)
{
  // alert(parm + "=" + ((peelCash[parm] != undefined)?(peelCash[parm]):("")));
  return ((peelCash[parm] != undefined)?(peelCash[parm]):(NULL));
}

function setParm(parm, value)
{
  // alert("set " + parm + "=" + value);
  peelCash[parm] = value;
}

//function setParm2(callStack)
//{
//  arg0 = callStack[0];
//  arg1 = callStack[1];
//  ...
//  argn = callStack[n];
//}

function echoit(parm)
{
  alert(parm);
}

function switchToMax()
{
  document.getElementById('peelCashMax').style.left = '';
  document.getElementById('peelCashMax').style.right = '0px';
  document.getElementById('peelCashMax').style.top = '0px';
  document.getElementById('peelCashMin').style.top = '-1000px';
}

function switchToMin()
{
  document.getElementById('peelCashMin').style.top = '0px';
  document.getElementById('peelCashMax').style.top = '-1000px';
}

function hideMin()
{
  document.getElementById('peelCashMin').style.top = '-1000px';
}

function hideMax()
{
  document.getElementById('peelCashMax').style.top = '-1000px';
}

peelCash.putMinObject = function () {
document.write('<div id="peelCashMin" style="position:absolute;width:100px;height:100px;z-index:9999;right:0px;top:0px;">');

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0"');
document.write(' id="peelCashMinObject" width="100%" height="100%">');

document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ peelCash['minMovie'] +'?'+ peelCash['minQueryString'] +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+peelCash['minQueryString']+'"/>');

document.write('<embed src="'+ peelCash['minMovie'] + '?' + peelCash['minQueryString'] +'" name="peelCashMinObject" wmode="transparent" quality="high" width="100%" height="100%" flashvars="'+ peelCash['minQueryString'] +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
}
peelCash.putMaxObject = function () {
document.write('<div id="peelCashMax" style="position:absolute;width:500px;height:500px;z-index:9999;left:-499px;top:-499px;">');

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0"');
document.write(' id="peelCashMaxObject" width="100%" height="100%">');

document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ peelCash['maxMovie'] +'?'+ peelCash['maxQueryString'] +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ peelCash['maxQueryString'] +'"/>');

document.write('<embed src="'+ peelCash['maxMovie'] + '?' + peelCash['maxQueryString'] +'" name="peelCashMaxObject" wmode="transparent" quality="high" width="100%" height="100%" flashvars="'+ peelCash['maxQueryString'] +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
}
peelCash.putMaxObject();
peelCash.putMinObject();

