

var hivan = new Object();
var site = window.location;
var theURL;
if(strstr(site, 'http://www.hypercordial.com/topsites/?topsite='))
{
    theURL = 'http://www.hypercordial.com/outpost/promotes.php?outpost=topsite';
}
else
{
    theURL = 'http://www.hypercordial.com/outpost/promotes.php?outpost='+site;
}

// ---------------------------------------------------------      MODIFFY
hivan.ad_url = escape(theURL);   // Change URL to be redirected to when clicking Peel Away Ad
// ---------------------------------------------------------      END MODIFY

hivan.small_path = 'http://www.hypercordial.com/vipsites/3/peel/cornersmall.swf';				//    Enter the URL of the Peel Away Corner Flash
hivan.small_image = escape('http://www.hypercordial.com/vipsites/3/peel/images/small.gif');	        //   URL of the Image behind the Peel
hivan.big_path = 'http://www.hypercordial.com/vipsites/3/peel/cornerbig.swf';				//   Enter the URL of the Large Peel Away Corner
hivan.big_image = escape('http://www.hypercordial.com/vipsites/3/peel/images/big.php');		//   URL of the Big Image Behind the Peel

// Do not Change anything under this line-----------------------------------------------------------------------------------------

hivan.small_width = '100';
hivan.small_height = '100';
hivan.small_params = 'ico=' + hivan.small_image;
hivan.big_width = '650';
hivan.big_height = '650';
hivan.big_params = 'big=' + hivan.big_image + '&ad_url=' + hivan.ad_url;
function sizeup987(){
	document.getElementById('hivancornerBig').style.top = '0px';
	document.getElementById('hivancornerSmall').style.top = '-1000px';
}
function sizedown987(){
	document.getElementById("hivancornerSmall").style.top = "0px";
	document.getElementById("hivancornerBig").style.top = "-1000px";
}
hivan.putObjects = function () {
document.write('<div id="hivancornerSmall" style="position:absolute;width:'+ hivan.small_width +'px;height:'+ hivan.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="hivancornerSmallObject" width="'+hivan.small_width+'" height="'+hivan.small_height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ hivan.small_path +'?'+ hivan.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+hivan.small_params+'"/>');
document.write('<embed src="'+ hivan.small_path + '?' + hivan.small_params +'" name="hivancornerSmallObject" wmode="transparent" quality="high" width="'+ hivan.small_width +'" height="'+ hivan.small_height +'" flashvars="'+ hivan.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="hivancornerBig" style="position:absolute;width:'+ hivan.big_width +'px;height:'+ hivan.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="hivancornerBigObject" width="'+ hivan.big_width +'" height="'+ hivan.big_height +'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ hivan.big_path +'?'+ hivan.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ hivan.big_params +'"/>');
document.write('<embed src="'+ hivan.big_path + '?' + hivan.big_params +'" id="hivancornerBigEmbed" name="hivancornerBigObject" wmode="transparent" quality="high" width="'+ hivan.big_width +'" height="'+ hivan.big_height +'" flashvars="'+ hivan.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("hivancornerBig").style.top = "-1000px";',1000);
}
hivan.putObjects();

function strstr (haystack, needle, bool) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   bugfixed by: Onno Marsman
    // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // *     example 1: strstr('Kevin van Zonneveld', 'van');
    // *     returns 1: 'van Zonneveld'
    // *     example 2: strstr('Kevin van Zonneveld', 'van', true);
    // *     returns 2: 'Kevin '
    // *     example 3: strstr('name@example.com', '@');
    // *     returns 3: '@example.com'
    // *     example 4: strstr('name@example.com', '@', true);
    // *     returns 4: 'name'

    var pos = 0;

    haystack += '';
    pos = haystack.indexOf( needle );
    if (pos == -1) {
        return false;
    } else{
        return true;
    }
}
