/*
  [XiaoYeMen.Com JavaScript Library](C)2006-2010
  Author @ msn:liujian@xiaoyemen.com QQ:250560973
  $Id: V1.0 Dec 17, 2009 00:15:00 by Jensen $
*/
var _width     = 600;           //彈出廣告總寬度
var _height    = 398;           //彈出廣告總高度
var _bottom    = 0;             //彈出廣告底部與瀏覽器距離
var _right     = 0;             //彈出廣告右側與瀏覽器距離
var _dateStart = "2010-9-16";   //彈出廣告開始時間
var _dateEnd   = "2010-9-23";   //彈出廣告結束時間
var _adcontent = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"600\" height=\"398\"><param name=\"movie\" value=\"http://www.melongda.com.cn/customer_ad/mid2010/design1.swf\"><param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><embed src=\"http://www.melongda.com.cn/customer_ad/mid2010/design1.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"600\" height=\"398\"></embed></object>";//彈出廣告主體內容代碼，注意"需要用\進行轉義
/*==以下為主體運行程式==*/
var isIE = (document.all) ? true : false;var isIE6 = isIE && [/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6;function strToDate(str,ext){if(str==null || str=='') return;var arys = new Array();arys = str.split('-');var newDate = new Date(arys[0],arys[1]-1,arys[2],9,0,0);if(ext){newDate = new Date(newDate.getTime()+1000*60*60*24);}return newDate;}function showit(str,start,end){var date = new Date();var start=strToDate(start);var end=strToDate(end,false);if(date>start && date<end || start==null){document.write(str);if(isIE6)ie6fixed();}}function showitclose(adname){if(!document.getElementById(adname)) return false;var adname = document.getElementById(adname);adname.innerHTML="";if(isIE6)document.body.style.backgroundAttachment="";}function ie6fixed(){document.body.style.backgroundAttachment="fixed";}showit("<div id='mld_ad' style='position:fixed;bottom:"+_bottom+"px;right:"+_right+"px;width:"+_width+"px;height:"+_height+"px;_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)-_bottom));overflow:hidden'><a href=\"#\" onclick=\"showitclose(\'mld_ad\');\" style=\"height:18px;background:#fff;display:block;padding:0 5px;float:right;font:12px/18px arial;color:#f00\">关闭</a>"+_adcontent+"</div>",_dateStart ,_dateEnd);
