i=0;arrayTranslators=new Array();if(convey_source!="English"){arrayTranslators[i]="English";i++}if(convey_source!="Spanish"){arrayTranslators[i]="Spanish";i++}if(convey_source!="Japanese"){arrayTranslators[i]="Japanese";i++}if(convey_source!="French"){arrayTranslators[i]="French";i++}if(convey_source!="German"){arrayTranslators[i]="German";i++}if(convey_source!="Portuguese"){arrayTranslators[i]="Portuguese";i++}if(convey_source!="Italian"){arrayTranslators[i]="Italian";i++}if(convey_source!="Chinese Simplified"){arrayTranslators[i]="Chinese Simplified";i++}if(i<8){arrayTranslators[i]="Russian"}convey_url=escape(convey_url);document.write("<a href=\"http://www.conveythis.com/\" onmouseover=\"show();  stop_timer();\" onmouseout=\"start_timer();\" onclick=\"prepWindow(); return false;\"><img src=\"http://www.conveythis.com/load_counter.php?username="+convey_user+"&url="+convey_url+"&type="+convey_type+"\" id=\"conveythis_button\" style=\"border-style: none\" /></a><div id=\"messageBox\" onmouseout=\"start_timer();\" onmouseover=\"stop_timer();\" style=\"border: 2px solid #777799; position: absolute; width: 240px; background-color: #FFFFFF; border-style: solid; border-width: 2px; display: none; z-index: 500;\"><div id=\"contents\" style=\"width: 100%; height: auto;\"></div></div>");var oldEvt=window.onload;window.onload=function(){if(oldEvt)oldEvt();newEvt()};function newEvt(){document.body.appendChild(document.getElementById('messageBox'))}function show(){var r=getAbsolutePosition(document.getElementById("conveythis_button"));if((r.y+165)>(getViewportHeight()+getScrollTop())){document.getElementById("messageBox").style.top=r.y-150+'px'}else{document.getElementById("messageBox").style.top=(r.y+20)+'px'}if((r.x+265)>(getViewportWidth()+getScrollLeft())){document.getElementById("messageBox").style.left=(getViewportWidth()+getScrollLeft()-265)+'px'}else{document.getElementById("messageBox").style.left=r.x+'px'}document.getElementById("contents").innerHTML="<div style=\"width:95%; padding-left:10px; padding-top:2px; font-size:12px; font-family:Arial; font-weight:normal; font-style:normal; float:left; text-align:left; color:black; background-color:#EEEEEE; \">Select a target language:</div>";for(i=0;i<arrayTranslators.length;i++){url="http://www.conveythis.com/translation.php?target="+arrayTranslators[i]+"&url="+convey_url+"&source="+convey_source+"&username="+convey_user;document.getElementById("contents").innerHTML+="<div id=\"link_list\" onclick=\"pop_win(\'"+url+"\')\" onmouseover=\"style.backgroundColor='#F5F5F5';\" onmouseout=\"style.backgroundColor='#FFFFFF'\" style=\"cursor:pointer; margin-top:5px; float:left; text-align:left; width:49%; height:16px; font-size:11px; font-family:Arial; font-weight:normal; font-style:normal; color: black; padding-left:2px;\"><img src=\"http://www.conveythis.com/images/"+arrayTranslators[i]+".gif\" style=\"vertical-align:top;\" />&nbsp;"+arrayTranslators[i]+"</div>"}url="http://www.conveythis.com/translation.php?more=1&url="+convey_url+"&source="+convey_source+"&username="+convey_user;document.getElementById("contents").innerHTML+="<div id=\"link_list\" onclick=\"pop_win(\'"+url+"\')\" onmouseover=\"style.backgroundColor='#F5F5F5';\" onmouseout=\"style.backgroundColor='#FFFFFF'\" style=\"cursor:pointer; margin-top:5px; float:left; text-align:left; width:49%; height:16px; font-size:11px; font-family:Arial; font-weight:normal; font-style:normal; color: black; padding-left:2px;\"> >> More...</div>";document.getElementById("contents").innerHTML+="<div style=\"width:95%; padding-left:10px; margin-top:4px; font-size:10px; font-family:Arial; font-weight:normal; font-style:normal; float:left; text-align:left; color: black; background-color:#EEEEEE; text-align:right; \">Provided by <a href=\"http://www.conveythis.com\"><span style=\"text-decoration:underline; color:#0000ee;\">ConveyThis.com</span></a>&nbsp;</div>";document.getElementById("messageBox").style.display="block"}function pop_win(a){childWindow=window.open(a,"ConveyThis",'scrollbars=yes,menubar=no,width=450,height=620,resizable=yes,toolbar=no,location=no,status=no')}function close_menu(){document.getElementById('messageBox').style.display='none';if(typeof ctime!='undefined'){clearTimeout(ctime)}}function start_timer(){ctime=setTimeout('close_menu()',500)}function stop_timer(){if(typeof ctime!='undefined'){clearTimeout(ctime)}}function getAbsolutePosition(a){var r={x:a.offsetLeft,y:a.offsetTop};if(a.offsetParent){var b=getAbsolutePosition(a.offsetParent);r.x+=b.x;r.y+=b.y}return r}function getViewportWidth(){if(typeof(window.innerWidth)=="number"){return window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){return document.documentElement.clientWidth}else{if(document.body&&document.body.clientWidth){return document.body.clientWidth}else{return 0}}}}function getViewportHeight(){if(typeof(window.innerHeight)=="number"){return window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){return document.body.clientHeight}else{return 0}}}}function getScrollTop(){if(typeof(window.pageYOffset)=="number"){return window.pageYOffset}else{if(document.body&&document.body.scrollTop){return document.body.scrollTop}else{if(document.documentElement&&document.documentElement.scrollTop){return document.documentElement.scrollTop}else{return 0}}}}function getScrollLeft(){if(typeof(window.pageXOffset)=="number"){return window.pageXOffset}else{if(document.body&&document.body.scrollLeft){return document.body.scrollLeft}else{if(document.documentElement&&document.documentElement.scrollLeft){return document.documentElement.scrollLeft}else{return 0}}}}function prepWindow(){url="http://www.conveythis.com/translation.php?url="+convey_url+"&source="+convey_source+"&username="+convey_user;pop_win(url)}