﻿document.writeln("<script type=\"text\/javascript\">");
document.writeln("<!--");
document.writeln("<!--右下脚弹出窗口开始-->");
document.writeln("window.onload = getMsg;");
document.writeln("window.onresize = resizeDiv;");
document.writeln("window.onerror = function(){}");
document.writeln("var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,i = 0;");
document.writeln("function getMsg()");
document.writeln("{");
document.writeln("try");
document.writeln("{");
document.writeln("divTop = parseInt(document.getElementById(\"loft_win\").style.top,10);");
document.writeln("divLeft = parseInt(document.getElementById(\"loft_win\").style.left,10);");
document.writeln("divHeight = parseInt(document.getElementById(\"loft_win\").offsetHeight,10);");
document.writeln("divWidth = parseInt(document.getElementById(\"loft_win\").offsetWidth,10);");
document.writeln("docWidth = document.body.clientWidth;");
document.writeln("docHeight = document.body.clientHeight;");
document.writeln("document.getElementById(\"loft_win\").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;\/\/ divHeight");
document.writeln("document.getElementById(\"loft_win\").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth;");
document.writeln("document.getElementById(\"loft_win\").style.visibility=\"visible\";");
document.writeln("objTimer = window.setInterval(\"moveDiv()\",10);");
document.writeln("}");
document.writeln("catch(e){}");
document.writeln("}");
document.writeln("\/\/初始化位置");
document.writeln("function resizeDiv()");
document.writeln("{");
document.writeln("i+=1;");
document.writeln("\/\/if(i>300) closeDiv() \/\/想不用自动消失由用户来自己关闭所以屏蔽这句");
document.writeln("try");
document.writeln("{");
document.writeln("divHeight = parseInt(document.getElementById(\"loft_win\").offsetHeight,10);");
document.writeln("divWidth = parseInt(document.getElementById(\"loft_win\").offsetWidth,10);");
document.writeln("docWidth = document.body.clientWidth;");
document.writeln("docHeight = document.body.clientHeight;");
document.writeln("document.getElementById(\"loft_win\").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10);");
document.writeln("document.getElementById(\"loft_win\").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10);");
document.writeln("}");
document.writeln("catch(e){}");
document.writeln("}");
document.writeln("\/\/最小化");
document.writeln("function minsizeDiv()");
document.writeln("{");
document.writeln("i+=1");
document.writeln("\/\/if(i>300) closeDiv() \/\/想不用自动消失由用户来自己关闭所以屏蔽这句");
document.writeln("try");
document.writeln("{");
document.writeln("divHeight = parseInt(document.getElementById(\"loft_win_min\").offsetHeight,10);");
document.writeln("divWidth = parseInt(document.getElementById(\"loft_win_min\").offsetWidth,10);");
document.writeln("docWidth = document.body.clientWidth;");
document.writeln("docHeight = document.body.clientHeight;");
document.writeln("document.getElementById(\"loft_win_min\").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10);");
document.writeln("document.getElementById(\"loft_win_min\").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10);");
document.writeln("}");
document.writeln("catch(e){}");
document.writeln("}");
document.writeln("\/\/移动");
document.writeln("function moveDiv()");
document.writeln("{");
document.writeln("try");
document.writeln("{");
document.writeln("if(parseInt(document.getElementById(\"loft_win\").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop,10)))");
document.writeln("{");
document.writeln("window.clearInterval(objTimer);");
document.writeln("objTimer = window.setInterval(\"resizeDiv()\",1);");
document.writeln("}");
document.writeln("divTop = parseInt(document.getElementById(\"loft_win\").style.top,10);");
document.writeln("document.getElementById(\"loft_win\").style.top = divTop -1;");
document.writeln("}");
document.writeln("catch(e){}");
document.writeln("}");
document.writeln("function minDiv()");
document.writeln("{");
document.writeln("closeDiv();");
document.writeln("document.getElementById(\'loft_win_min\').style.visibility=\'visible\';");
document.writeln("objTimer = window.setInterval(\"minsizeDiv()\",1);");
document.writeln("}");
document.writeln("function maxDiv()");
document.writeln("{");
document.writeln("document.getElementById(\'loft_win_min\').style.visibility=\'hidden\';");
document.writeln("document.getElementById(\'loft_win\').style.visibility=\'visible\';");
document.writeln("objTimer = window.setInterval(\"resizeDiv()\",1);");
document.writeln("\/\/resizeDiv()");
document.writeln("getMsg();");
document.writeln("}");
document.writeln("function closeDiv()");
document.writeln("{");
document.writeln("document.getElementById(\'loft_win\').style.visibility=\'hidden\';");
document.writeln("document.getElementById(\'loft_win_min\').style.visibility=\'hidden\';");
document.writeln("if(objTimer) window.clearInterval(objTimer);");
document.writeln("}");
document.writeln("<!--右下脚弹出窗口结束-->");
document.writeln("-->");
document.writeln("<\/script>");
document.writeln("<style type=\"text\/css\">");
document.writeln("<!--");
document.writeln("#loft_win {border:#fff 1px solid;}");
document.writeln("#loft_win_min {border:#fff 1px solid;}");
document.writeln(".loft_win_head {color: #FFFFFF; width:216px; height:39px; padding:0,5,0,5; background:url(http:\/\/www.casero.com.cn\/images\/qq1.gif) no-repeat left; text-align:right}");
document.writeln("#contentDiv {background-color:#FFFFFF; border:#fff 1px solid; border-left-style:none; border-right-style:none; border-top-style:none; }");
document.writeln("-->");
document.writeln("<\/style>");
document.writeln("<!--提示窗口代码开始-->");
document.writeln("<!--初状态-->");
document.writeln("<DIV id=\"loft_win\" style=\"Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden; WIDTH: 216px; POSITION: absolute; TOP: 0px; HEIGHT: 84px;\">");
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" bgcolor=\"#FFFFFF\" border=0>");
document.writeln("<TR>");
document.writeln("<td width=\"100%\" valign=\"top\" align=\"center\">");
document.writeln("<table width=\"100%\" height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("<tr>");
document.writeln("<td height=\"39\" class=\"loft_win_head\" ><span style=\"CURSOR: hand;font-size:12px;font-weight:bold;\" title=最小化 onclick=minDiv() >- <\/span><span style=\"CURSOR: hand;font-size:12px;font-weight:bold;\" title=关闭 onclick=closeDiv() >×<\/span> <\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<\/td>");
document.writeln("<\/TR>");
document.writeln("<TR>");
document.writeln("<TD height=\"38\" align=\"center\" valign=\"middle\" colSpan=3>");
document.writeln("<div id=\"contentDiv\">");
document.writeln("<table width=\"100%\" height=\"18%\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr>");
document.writeln("<td height=\"35\" style=\"background:url(http:\/\/www.casero.com.cn\/images\/qq5.gif) no-repeat; padding-left:45px; line-height:35px;\">");
document.writeln("<a href=\"tencent:\/\/message\/?uin=664899747&amp;Site=咨询&amp;Menu=yes\">客服NO.1<\/a>&nbsp;&nbsp;");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<table width=\"100%\" height=\"10\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("<tr>");
document.writeln("<td height=\"10\" background=\"http:\/\/www.casero.com.cn\/images\/qq7.gif\"><\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<\/div>");
document.writeln("<\/TD>");
document.writeln("<\/TR>");
document.writeln("<\/TABLE>");
document.writeln("<\/DIV>");
document.writeln("<!--最小化状态-->");
document.writeln("<DIV id=\"loft_win_min\" style=\"Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden;WIDTH: 216px; POSITION: absolute; TOP: 0px;\">");
document.writeln("<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" bgcolor=\"#FFFFFF\" border=0>");
document.writeln("<TR>");
document.writeln("<td width=\"100%\" valign=\"top\" align=\"center\">");
document.writeln("<table width=\"100%\" height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("<tr>");
document.writeln("<td class=\"loft_win_head\"><span title=还原 style=\"CURSOR: hand;font-size:12px;font-weight:bold;margin-right:4px;\" onclick=maxDiv() >□<\/span><span title=关闭 style=\"CURSOR: hand;font-size:12px;font-weight:bold;margin-right:4px;\" onclick=closeDiv() >×<\/span><\/td>");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<\/td>");
document.writeln("<\/TR>");
document.writeln("<\/TABLE>");
document.writeln("<\/DIV>");
document.writeln("<!--提示窗口代码结束-->");
