// IConnect007.com 
// Copyright (c) 2010; All Rights Reserved 
// Version 01.00 

var _peeldir = "http://dev007.com/cornerad/"; 
var _peelxml = "http://dev007.com/cornerad/campaign_vals.xml"; 

if (typeof peeldir != "undefined"){
  _peeldir = peeldir;
}
if (typeof peelxml != "undefined"){
  _peelxml = peelxml;
}

var _flapwidth = 75; 
var _flapheight = 75; 

if (typeof flapwidth != "undefined"){
  _flapwidth = flapwidth;
}
if (typeof flapheight != "undefined"){
  _flapheight = flapheight;
}


var _peelwidth = 900; 
var _peelheight = 650; 

if (typeof peelwidth != "undefined"){
  _peelwidth = peelwidth;
}
if (typeof peelheight != "undefined"){
  _peelheight = peelheight;
}



var flapid =  "flap_v02.00_triangles_no_scroll"; 
var peelid = "peel_v02.10_triangles"; 

document.write('<style type="text/css">'); 
document.write('#flap, #peel { position: absolute; top: 0px; right: 0px; align: right; }'); 
document.write('#flap { z-index: 100000; visibility: visible; border: 0px solid #df0032; width: 75px; height: 75px; text-align: right; }'); 
document.write('#peel { z-index: 99999; visibility: visible; width: 75px; height: 75px; overflow: hidden; }'); 
document.write('</style>'); 

function peel(action) { 
	 if(action == 'peel') { 
		 document.getElementById('flap').style.visibility = 'hidden'; 
		 document.getElementById('peel').style.visibility = 'visible'; 
		 document.getElementById('peel').style.width = _peelwidth + 'px'; 
		 document.getElementById('peel').style.height = _peelheight + 'px'; 
	 } else { 
		 document.getElementById('flap').style.visibility = 'visible'; 
		 document.getElementById('peel').style.visibility = 'hidden'; 
		 document.getElementById('peel').style.width = _flapwidth + 'px'; 
		 document.getElementById('peel').style.height = _flapheight + '75px'; 
	 } 
} 

// Output the peel 
document.write('<div id="peel">'); 
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,0,0" '); 
document.write('width="' + _peelwidth + '" height="' + _peelheight + '" id="' + peelid + '" align="middle">'); 
document.write('<param name="allowScriptAccess" value="always" />'); 
document.write('<param name="wmode" value="transparent" />'); 
document.write('<param name="FlashVars" value="xmlpath=' + _peelxml + '">'); 
document.write('<param name="allowFullScreen" value="false" />'); 
document.write('<param name="movie" value="' + _peeldir + peelid + '.swf" /><param name="quality" value="high" />'); 
document.write('<embed src="' + _peeldir + peelid + '.swf" flashvars="xmlpath=' + _peelxml + '" quality="high" bgcolor="#0099ff" width="' + _peelwidth + '" height="' + _peelheight + '" name="' + peelid + '" '); 
document.write('align="middle" allowScriptAccess="always" allowFullScreen="false" wmode="transparent" type="application/x-shockwave-flash" '); 
document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'); 
document.write('</div>'); 
 
// Now output the flap 
document.write('<div id="flap" onmouseover="peel(\'peel\');">'); 
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,0,0" '); 
document.write('width="' + _flapwidth + '" height="' + _flapheight + '" id="' + flapid + '" align="middle">'); 
document.write('<param name="allowScriptAccess" value="always" />'); 
document.write('<param name="wmode" value="transparent" />'); 
document.write('<param name="FlashVars" value="xmlpath=' + _peelxml + '">'); 
document.write('<param name="allowFullScreen" value="false" />'); 
document.write('<param name="movie" value="' + _peeldir + flapid + '.swf" /><param name="quality" value="high" />'); 
document.write('<embed src="' + _peeldir + flapid + '.swf" flashvars="xmlpath=' + _peelxml + '" quality="high" bgcolor="#0099ff" width="' + _flapwidth + '" height="' + _flapheight + '" name="' + flapid + '" '); 
document.write('align="middle" allowScriptAccess="always" allowFullScreen="false" wmode="transparent" type="application/x-shockwave-flash" '); 
document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'); 
document.write('</div>'); 
 
