var home_site='http://adtools2.amakings.com/imads/'+base_id;var background_image=home_site+"/lib/im_common/bg.gif";var actor_swf=home_site+"/lib/im_common/2.swf";var pixel_image=home_site+"/lib/im_common/pixel.gif";if(!toptext)var toptext='';if(!maintext)var maintext="";if(!ref_url)var ref_url="http://www.amakings.com";function txtTitle(){document.write(toptext)}function txtMain(){document.write('<a href="'+ref_url+'" target="_blank">'+maintext+'</a>')}function txtImg(){var randomnumber=Math.floor(Math.random()*2)+1;document.write('<div id="im_clickable" style="margin: 0pt; padding: 1px; clear: both;"><a style="border: 0px none ; text-decoration: none; z-index: 100; position: absolute; top: 5px; left: 0px;" target="_blank" href="'+ref_url+'"><img height="130" width="200" border="0" style="border: 0px none ;" src="'+pixel_image+'"/></a><a id="im_pic" target="_blank" href="'+ref_url+'" style=" margin: 5px 0px 5px 5px; padding: 0px; text-decoration: none; float: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><object style="border:1px solid gray"  id="CP_EN_Banner" height="40" width="55" align="middle" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">');document.write('<param value="'+actor_swf+'" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><param value="#ffffff" name="bgcolor"/><embed height="40" width="55" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="CP_EN_Banner" quality="high" src="'+actor_swf+'" wmode="transparent"/></object></a><div style="font-size: 11px; position: relative; bottom: 1px; left: 10px; color: rgb(255, 255, 255); font-weight: bold;"></div></div>')}function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())}function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end))}}return""}function checkCookie(){lastShow=getCookie('lastShowed');if(lastShow>1){}else{moveIt('floatyContent',-3);setCookie('lastShowed',lastShow+1,1)}}function closethis(id){var divPath=document.getElementById(id);divPath.style.display='none'}function moveIt(id,x){var supported=(document.getElementById);if(!supported)return;var divPath=document.getElementById(id);var currPos=parseInt(divPath.style.bottom);divPath.style.display='block';if(currPos<x){currPos+=5;divPath.style.bottom=currPos+"px";setTimeout("moveIt('"+id+"',"+x+")",15)}}function move_box(){var offset=0;var element=document.getElementById('floatyContent');element.style.bottom=(document.body.offsetHeight+offset)+'px'}window.onload=function(){moveIt('floatyContent',-4)};document.write('<style type="text/css">');document.write('#floatyContent{z-index:2; right:1px; font-family:arial; font-size:12px; bottom:-2px; position: fixed; *position:absolute; *top: expression(eval(document.compatMode && document.compatMode=="CSS1Compat") ? documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : 	document.body.scrollTop+(document.body.clientHeight-this.clientHeight));	padding:0px; width:201px; height:130px;  background-image:url("'+background_image+'");}#floatyContent a{color:black;text-decoration:none;}</style> ');document.write('<!--[if lt IE 7]><style>#floatyContent {position: absolute;top:expression(eval(document.compatMode && document.compatMode==\'CSS1Compat\') ? documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop+(document.body.clientHeight-this.clientHeight));}</style><![endif]-->');document.write('<div id="floatyContent" style="bottom:-200px;display:none;">');document.write('	<div style="position:absolute; top:5px; right:8px;"><a href="javascript:;" onclick="closethis(\'floatyContent\')" style="color:black;text-decoration:none"><b>x</b></a></div>');document.write('	<div style="padding:3px; padding-left:5px;text-align:left; font-family:verdana; font-size:12px"><script>txtTitle();</script></div>');document.write('	<div style="position:absolute; left:5px; top:33px;"><script>txtImg();</script></div>');document.write('	<div style="position:absolute; top:140px; width:189px; text-align:center; font-family:verdana; font-size:11px"><script>txtMain();</script></div>');document.write('	<div style="clear:both;"></div>');document.write('</div>');
