﻿document.write("<button onclick=\"tips_pop()\" id=\"showhide\" style=\"position:fixed;right:0;bottom:0;display:none;_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));\">Show<\/button><div id=\"winpop\" style=\"width:200px; height:0px; position:fixed; right:0; bottom:0; border:1px solid #999999; margin:0; padding:1px; overflow:hidden; display:none; background:#FFFFFF;_position:absolute;_bottom:auto;_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));\"><div class=\"title\" style=\"width:100%; height:20px; line-height:20px; background:#FFCC00; font-weight:bold; text-align:center; font-size:12px;\">Friendly Prompt<span class=\"closepop\" onclick=\"tips_pop()\" style=\"position:absolute; right:4px; top:-1px; color:#FFFFFF; cursor:pointer\">X<\/span><\/div><div class=\"popmain\" style=\"width:170px; height:80px; color:#FF0000; text-align:center;line-height:20px;\"><a href=\"javascript:void(0);\" onclick=\"openZoosUrl('chatwin');\" style=\"color:#000;text-decoration:none;\">Have a general idea? Click here, the professional engineer will answer you online!!<\/a><p><a href=\"javascript:void(0);\" onclick=\"openZoosUrl('chatwin');\" style=\"position:absolute;right:12px;bottom:12px;color:#C00;font-size:18px;\">Get It<\/a><\/p><\/div><\/div>");




function tips_pop(){
  var MsgPop=document.getElementById("winpop");
  var popH=parseInt(MsgPop.style.height);
  var popswitch=document.getElementById("showhide");
   if (popH==0){        
   MsgPop.style.display="block";
  show=setInterval("changeH('up')",2);
  popswitch.style.display="none";
   }
  else {       
   hide=setInterval("changeH('down')",2);
  popswitch.style.display="block";
}
}
function changeH(str) {
 var MsgPop=document.getElementById("winpop");
 var popH=parseInt(MsgPop.style.height);
 if(str=="up"){    
  if (popH<=100){   
  MsgPop.style.height=(popH+4).toString()+"px";
  }
  else{  
  clearInterval(show);
  }
 }
 if(str=="down"){ 
  if (popH>=4){       
  MsgPop.style.height=(popH-4).toString()+"px";
  }
  else{        
  clearInterval(hide);    
  MsgPop.style.display="none";  
  }
 }
}
window.onload=function(){   
document.getElementById('winpop').style.height='0px';
setTimeout("tips_pop()",4000);    
}
