var curlLogo,curlSite;if(curlLogo==undefined||curlLogo=='')alert("Warning: You have not defined a logo.");else if(curlSite==undefined||curlSite=='')alert("Warning: You have not defined a site.");var corner,floater,movie;var movieWidth=600;var movieHeight=600;var smallHeight=75;var smallWidth=75;var diffWidth=(movieWidth-smallWidth);curlLogo=basename(curlLogo);document.write('<div id="corner" style="position:absolute; right:0px; top:0px; width:'+smallWidth+'px; height:'+smallWidth+'px; z-index:20000; overflow: hidden;">'+'<div id="floater" style="position:relative; right:'+diffWidth+'px;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+movieWidth+'" height="'+movieHeight+'" id="curl" align="middle">'+'<param name="allowScriptAccess" value="always" />'+'<param name="wmode" VALUE="transparent">'+'<param name="movie" value="curl.swf?img='+curlLogo+'&site='+curlSite+'" />'+'<param name="quality" value="high" />'+'<embed src="curl.swf?img='+curlLogo+'&site='+curlSite+'" wmode="transparent" quality="high" width="'+movieWidth+'" height="'+movieHeight+'" name="Untitled-2" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+'</object>'+'</div>'+'</div>');function basename(input){var chunk="";var parts=input.split('/');while(parts.length>0){chunk=popEnd(parts);if(chunk!='')return chunk;};return input;};function popEnd(array){if(array.length<=0)return false;var piece=array[array.length-1];array.length--;return piece;};window.onload=function(){corner=document.getElementById("corner");floater=document.getElementById("floater");};function expand(){corner.style.width=movieWidth+'px';corner.style.height=movieWidth+'px';floater.style.right='0px';};function contract(){corner.style.width=smallWidth+'px';corner.style.height=smallWidth+'px';floater.style.right=diffWidth+'px';};
