/*
 Das Copyright dieses Scriptes liegt beim Autor.
 Bitte die Lizenzbedingungen beachten, und ausgefüllt zurücksenden.
*/

// Affiliates wishing to get credit for referrals must put this code on their site:
// <script type="text/javascript" src="{site_full_url}js/peel.js"></script>
// <script>var affObj = new Object(); affObj.srcPath=escape('{site_full_url}'); affObj.dstPath=escape('{aff_link}');</script>


if (typeof affObj=='undefined')
  var affObj = new Object();

getURLs(affObj);

var esel = new Object();
// ---------------------------------------------------------      MODIFY
esel.ad_url = affObj.dstPath;                            // Change URL to be redirected to when clicking Peel Away Ad
// ---------------------------------------------------------      END MODIFY

// Current Page Reference
// copyright Stephen Chapman, 1st Jan 2005
// you may copy this function but please keep the copyright notice with it

esel.small_path = affObj.srcPath + escape('images/cornersmall.swf'); // Enter the URL of the Peel Away Corner Flash
esel.small_image = affObj.srcPath + escape('images/smallanim.swf');	 // URL of the Image behind the Peel, such as 'images/small.gif' or 'images/smallanim.swf'.
esel.big_path = affObj.srcPath + escape('images/cornerbig.swf');		 // Enter the URL of the Large Peel Away Corner
esel.big_image = affObj.srcPath + escape('images/site/Ad.gif');    // URL of the Big Image Behind the Peel

//alert(esel.ad_url + "," + esel.small_path + "," + esel.small_image + "," + esel.big_path + "," + esel.big_image);

// Do not Change anything under this line-----------------------------------------------------------------------------------------

esel.small_width = '100';
esel.small_height = '100';
esel.small_params = 'ico=' + esel.small_image;
esel.big_width = '650';
esel.big_height = '650';
esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url;
function sizeup987(){
	document.getElementById('eselcornerBig').style.top = '0px';
	document.getElementById('eselcornerSmall').style.top = '-1000px';
}
function sizedown987(){
	document.getElementById("eselcornerSmall").style.top = "0px";
	document.getElementById("eselcornerBig").style.top = "-1000px";
}
esel.putObjects = function () {
document.write('<div id="eselcornerSmall" style="position:absolute;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;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=7,0,19,0"');
document.write(' id="eselcornerSmallObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.small_path +'?'+ esel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');
document.write('<embed src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div></script>');
document.write('<div id="eselcornerBig" style="position:absolute;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;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=7,0,19,0"');
document.write(' id="eselcornerBigObject" width="'+ esel.big_width +'" height="'+ esel.big_height +'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.big_path +'?'+ esel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ esel.big_params +'"/>');
document.write('<embed src="'+ esel.big_path + '?' + esel.big_params +'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+ esel.big_width +'" height="'+ esel.big_height +'" flashvars="'+ esel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);
}
esel.putObjects();

//###############################################################################
//##                                                                           ##
//##  (c) Think Big Publications, LLC ("Think Big"), August 2009.              ## 
//##                                                                           ##
//##  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.                 ##
//##                                                                           ##
//###############################################################################
// Author: Scott Ingram

function getURLs(affObj)
{
  if (typeof affObj.srcPath=='undefined')
  { 
    var uri = new Object();
    uri.dir = location.href.substring(0, location.href.lastIndexOf('\/'));
    uri.dom = uri.dir; if (uri.dom.substr(0,7) == 'http:\/\/') uri.dom = uri.dom.substr(7);
    uri.path = ''; var pos = uri.dom.indexOf('\/'); if (pos > -1) {uri.path = uri.dom.substr(pos+1); uri.dom = uri.dom.substr(0,pos);}
    affObj.srcPath = "http://" + uri.dom + "/" + uri.path + "/";
  }
  if (typeof affObj.dstPath=='undefined')
    affObj.dstPath = affObj.srcPath; 
  return affObj;                    
}

