
// URL of the small image
var urlImageSmall = "http://www.sex-price.com/ds_page_peel/peel_100x100.jpg";

// URL of the large image
var urlImageBig = "http://www.sex-price.com/ds_page_peel/peel_500x500.jpg";

// URL of the swf files
var urlPagePeel = "http://www.sex-price.com/ds_page_peel/";

function MM_findObj(n, d) {
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0 && parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n]) && d.all) x=d.all[n];
  for (i=0;!x && i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0; !x && d.layers && i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n);
  return x;
}


function MM_showHideLayers() {
  args=MM_showHideLayers.arguments;
  var testval = args[0].split(",")
  if(testval[0] == 'small'){
    changeDiv(args);
  }
  else{
    window.setTimeout("changeDiv(args)",720);
  }
}


function changeDiv(args){
  var p,v,obj;
  args1 = args[0].split(",");
  args2 = args[1].split(",");
  for (var i=0; i<args1.length; i++){
    obj=MM_findObj(args1[i]);
    if (obj!=null){
      v=args2[i];
      if (obj.style){
        obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;
      }
      if(obj){
        obj.visibility=v;
      }
    }
  }
}


function writePeel(outLink){

  document.writeln('<style type="text/css">');

  document.writeln('#small{position:absolute;right:-1px;top:-3px;width:100px;height:100px;z-index:10;visibility: visible;}');

  document.writeln('#big{position:absolute;right:-1px;top:-3px;width:500px;height:500px;z-index:20;visibility: hidden;}');

  document.writeln('</style>');


  document.writeln('<div id="small">');

  document.writeln('<object id="swfSmall" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="100">');

  document.writeln('<param name="movie" value="' + urlPagePeel + 'small.swf?imageSmall='+urlImageSmall+'&incomingURL='+outLink+'" />');

  document.writeln('<param name="quality" value="high" />');

  document.writeln('<param name="wmode" value="transparent" />');

  document.writeln('<embed src="' + urlPagePeel + 'small.swf?imageSmall='+urlImageSmall+'&incomingURL='+outLink+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="100" wmode="transparent"></embed>');

  document.writeln('</object>');

  document.writeln('</div>');


  document.writeln('<div id="big">');

  document.writeln('<object id="swfBig" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="500">');

  document.writeln('<param name="movie" value="' + urlPagePeel + 'big.swf?imageBig='+urlImageBig+'&incomingURL='+outLink+'" />');

  document.writeln('<param name="quality" value="high" />');

  document.writeln('<param name="wmode" value="transparent"  />'); 

  document.writeln('<embed src="' + urlPagePeel + 'big.swf?imageBig='+urlImageBig+'&incomingURL='+outLink+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="500" wmode="transparent"></embed>');

  document.writeln('</object>');

  document.writeln('</div>');


  document.writeln('<scr'+'ipt type="text/javascript">');

  document.writeln('document.getElementById("swfSmall").onmouseover = function(){MM_showHideLayers("small,big","hide,show")};');

  document.writeln('document.getElementById("swfBig").onmouseout = function(){MM_showHideLayers("big,small","hide,show")};');

  document.writeln('</scr'+'ipt>');

}
