﻿/**
*version:1.2
*author:lmz
*content:floatQQ,floatAD,viewIMG
*update:2011.2.24
**/


/**------------------------floatQQ==S------------------------------------**/
/**
**version:2.5;
**floatQQ({options});
**case:
 floatQQ({
   qq:"客服1:281247137,客服2:234234234,客服3:38945334",
   left:0,
   top:200,
   topbg:'Template/images/qq_top2.gif',
   middlebg:'Template/images/qq_middle2.gif',
   bottombg:'Template/images/qq_bottom2.gif',
   closecolor:'red'
 });
**
**interface:
**http://wpasig.qq.com/msgrd?v=1&uin=1455647316&site=qq&menu=yes
**/
/*---------------------------------------------------------------------*/

function floatQQ(options){
options=$.extend({},{
    hoverable:true, 
    moveable:true,
    closeable:true,
    floatable:true,
    width:120,
    topbg:'/Template/images/qq_top2.gif',
    middlebg:'/Template/images/qq_middle2.gif',
    bottombg:'/Template/images/qq_bottom2.gif',
    topheight:76,
    hoverouth:56,
    bottomheight:16,
    closecolor:'#FF955D',
    left:0,
    top:200,
    qqtype:16,
    id:'floatbar',
    qq:''
},options);

new QQ(options);

var obj=$("#"+options.id);
var FLOATTOP=options.top;
var QQT=$("#"+options.id+"top");
var QQM=$("#"+options.id+"middle");
var QQB=$("#"+options.id+"bottom");
var QQclose=$("#"+options.id+"close");

if(options.hoverable){
  QQT.height(options.hoverouth);
  QQM.hide();
  QQB.hide();
  obj.hover(function(){
     QQT.height(options.topheight);QQM.show();QQB.show();
  },function(){
     QQT.height(options.hoverouth);QQM.hide();QQB.hide();
  });
}

if(options.moveable){
  obj.css({position:"absolute"});
  QQT.css('cursor','hand');
  QQT.mousedown(function(){
    var leftLen=event.clientX-obj.offset().left;
    var topLen=event.clientY-obj.offset().top;
   $(document).bind("mousemove",function(event){
      var aa=event.clientX-leftLen;
      var bb=event.clientY-topLen;
      obj.css({left:aa,top:bb});
      FLOATTOP=bb-$(window).scrollTop();
    }).bind("mouseup",function(){
      $(document).unbind("mousemove").unbind("mouseup");
   });
 });
}

if(options.closeable){
 if(QQclose){
   QQclose.bind('click mousedown',function(){obj.hide();});
 }
}

if(options.floatable){
   obj.css({visibility:"visible",left:((window.screen.width-1024)/2+options.left),top:FLOATTOP});
   $(window).scroll(function(){
        obj.css({top:$(this).scrollTop()+FLOATTOP});
   });
}

}


/*****************************QQ Object==S**************************************/

var QQ=function(options){
   this.width=options.width;
   this.topbg=options.topbg;
   this.middlebg=options.middlebg;
   this.bottombg=options.bottombg;
   this.id=options.id;
   this.qq=options.qq;
   this.closecolor=options.closecolor;
   this.qqtype=options.qqtype;
   this.topheight=options.topheight;
   this.bottomheight=options.bottomheight;
   
   this.getQQstr=function(qqnum,qqtxt,qqtype){
    var QQHTML='';
    QQHTML='<tr style=\"padding-bottom:2px;\"><td style=\"padding-left:0px;text-align:left;\">';
    QQHTML+='<a style=\"display:block;height:16px;width:24px;line-height:16px; ';
    QQHTML+='background-postion:right;\" target=\"_blank\" title=\"交谈\" ';
    QQHTML+='href=\"http://wpasig.qq.com/msgrd?V=1&Uin='+qqnum+'&Site=QQ&Menu=yes\" style=\"';
    QQHTML+='background-image:url(\'http://wpa.qq.com/pa?p=1:'+qqnum+':'+qqtype+'\')\">';
    QQHTML+=' </a></td><td><a style=\"text-decoration:none;font-size:12px;color:black;\" ';
    QQHTML+='target=\"blank\" ';
    QQHTML+='href=\"http://wpasig.qq.com/msgrd?V=1&Uin='+qqnum+'&Site=QQ&Menu=yes\"> ';
    QQHTML+=qqtxt+'</a> </td></tr>';
    return QQHTML;
   }

  this.initQQ=function(){
    var qq_str=options.qq.split(',');
    var QQHTML=new Array();
    for(var i=0;i<qq_str.length;i++){
      var qq_in=qq_str[i].split(':');
      QQHTML[i]=this.getQQstr(qq_in[1],qq_in[0],this.qqtype);
     }
    var HTML=this.getQQHTML(QQHTML);
    $("body").append(HTML);
  }

  this.getQQHTML=function(QQHTML){
    var HTML='';
    HTML+='<div id=\"'+this.id+'\" style=\"position:absolute;width:'+this.width+'px;top:'
    HTML+=this.top+'px;\"><table  border=\"0\" cellspacing=\"0\" cellpadding=\"0\" '; 
    HTML+='width=\"'+this.width+'px\"><tr id=\"'+this.id+'top\" height=\"'+this.topheight;
    HTML+='px\"><td  style=\"width:'+this.width+'px;background:url('+this.topbg+') ';
    HTML+=' no-repeat top; text-align:right;line-height:20px;vertical-align:top;\"> ';
    HTML+='<a id=\"'+this.id+'close\" ';
    HTML+='style=\"display:block;width:40px;height:20px;line-height:20px;margin-right:5px; ';
    HTML+='text-decoration:none;padding:0px;margin-top:2px;font-size:12px;font-weight:bold; ';
    HTML+='color:'+this.closecolor+';\" href=\"#\">关闭</a></td></tr><tr><td ';
    HTML+=' id=\"'+this.id+'middle\" style=\"background:url('+this.middlebg+')  repeat-y;\"> ';
    HTML+='<table class=\"QQmiddletb\" style=\"width:82%;filter: alpha(opacity=100);\" ';
    HTML+=' border=\"0\"; cellspacing=\"0\" cellpadding=\"0\"> '; 
    for(var i=0;i<QQHTML.length;i++){
      HTML+=QQHTML[i];
     }
    HTML+='</table></td></tr><tr><td id=\"'+this.id+'bottom\" style="heigh:'+this.bottomheight+'px; ';
    HTML+='background:url('+this.bottombg+') no-repeat top;"> ';
    HTML+='&nbsp;</td></tr></table></div>';
    return HTML;
   }

  this.initQQ();

}

/*********************************QQ Object==E***********************************/

/**----------------------------floatQQ==E---------------------------------------**/




/**---------------------------floatAD==S----------------------------------------**/
/**
**version:2.5;
**floatAD({options});
**case:
 floatAD({
   url:"ad.html",
   left:0,
   top:200,
   centercss:"background:#ccc;height:100px;padding:0px;"
 });
//or
 floatAD({text:"内容 内容"});
**
**/
/*------------------------------------------------------------------------*/

function floatAD(options){

options=$.extend({},{
   id:"floatAD",
   left:20,
   top:200,
   width:200,
   css:"border:1px solid #666; ",
   topheight:20,
   title:"公告:",
   titlecss:"font-size:14px;font-weight:bold;color:red;",
   topcss:"background:#666; ",
   closecolor:"#000",
   centercss:"background:#ccc;padding:5px;",
   url:" ",
   frameh:100,
   text:"内容",
   hoverable:true,
   closeable:true,
   floatable:true,
   moveable:true
},options);

new AD(options);

var obj=$("#"+options.id);
var FLOATTOP=options.top;
var ADtop=$("#"+options.id+"top");
var ADinner=$("#"+options.id+"inner");
var ADclose=$("#"+options.id+"close");

if(options.hoverable){
  ADinner.hide();
  obj.hover(function(){ADinner.show();},function(){ADinner.hide();});
}

if(options.closeable){
  ADclose.bind('click mousedown',function(){obj.hide();});
}

if(options.floatable){
  obj.css({visibility:"visible",left:(window.screen.width-1024)/2+options.left,top:FLOATTOP});
  $(window).scroll(function(){
      obj.css({top:$(this).scrollTop()+FLOATTOP});
  });
}

if(options.moveable){
  obj.css({position:"absolute"});
  ADtop.css('cursor','hand');
  ADtop.mousedown(function(){
  var leftLen=event.clientX-obj.offset().left;
  var topLen=event.clientY-obj.offset().top;
  $(document).bind("mousemove",function(event){
    var aa=event.clientX-leftLen;
    var bb=event.clientY-topLen;
    obj.css({left:aa,top:bb});
    FLOATTOP=bb-$(window).scrollTop();
   }).bind("mouseup",function(){
      $(document).unbind("mousemove").unbind("mouseup");
   });
 });
}

}


/*****************************AD Object==S**************************************/

var AD=function(o){
   this.id=o.id;
   this.width=o.width;
   this.top=o.top;
   this.css=o.css;
   this.title=o.title;
   this.titlecss=o.titlecss;
   this.topheight=o.topheight;
   this.topcss=o.topcss;
   this.closecolor=o.closecolor;
   this.centercss=o.centercss;
   this.url=o.url;
   this.frameh=o.frameh;
   this.text=o.text;

  this.initAD=function(){  
   var HTML=this.getADHTML();
    $("body").append(HTML);
  }
  
   this.getADHTML=function(){
    HTML='<div id=\"'+this.id+'\" style=\"position:absolute;width:'+this.width+'px;top:' ;
    HTML+=this.top+'px; '+this.css+' \"><div style=\"height:'+this.topheight+'px;width:' ;
    HTML+=this.width+'px;position:relative;line-height:'+this.topheight+'px;'+this.topcss 
    HTML+='\" id=\"'+this.id+'top"><span style=\"'+this.titlecss+'\">'+this.title+'</span>';
    HTML+='<a id=\"'+this.id+'close\" style=\"display:block;width:30px;height:20px;right:2px; ';
    HTML+='line-height:20px;text-decoration:none;padding:0px;top:1px;font-size:12px; ';
    HTML+='font-weight:bold;color:'+this.closecolor+'; position:absolute;\" href=\"#\"> ';
    HTML+='×</a></div> <div style=\"width:'+this.width+'px;height:auto;'+this.centercss;
    HTML+='\" id="'+this.id+'inner">';
    if(this.url!=" "){
      HTML+='<iframe src=\"'+this.url+'\" style=\"height:'+this.frameh+';width:'+this.width;
      HTML+='\" frameborder=\"0\" scrolling=\"no\" style="overflow:hidden;"></iframe> ';
    }else{
      HTML+=this.text;
    }
    HTML+='<input type=\"hidden\" id=\"'+this.id+'input\" value=\"\"/></div></div> ';
    return HTML;
  }

  this.initAD();

}

/*********************************AD Object==E***********************************/

/**-----------------------------floatAD==E---------------------------------------**/


/**-----------------------------viewimg==S---------------------------------------**/
/***
*version:1.5
*case:
      $("#smallimgbox").viewIMG({
            boxwidth:400,
            boxheight:400,
            boxleft:300,
            boxtop:0,
            viewbili:5,
            bigimgsrc:'Template/images/111big.jpg'
       });
*
**/
jQuery.fn.viewIMG=function(options){

var options=$.extend({},{
boxid:"bigimgbox",
boxwidth:400,
boxheight:400,
boxleft:300,
boxtop:0,
boxcss:"border:1px solid #ccc;",
viewid:"viewbox",
viewbili:5,
viewcss:"border:1px solid blue;",
bigimgsrc:""

},options);


var imgbox=new imgBOX_viewIMG(options);


$(this).hover(function(){
 var obj=$(this);
 var smallbox=obj;
 var smallimg=smallbox.find('img');
 var imgbox=$("#"+options.boxid);
 var bigimg=imgbox.find('img');

 obj.css({position:"relative",overflow:"hidden"});
 if(!obj.attr('width')){obj.css({width:smallimg.width()});}
 if(!obj.attr('height')){obj.css({height:smallimg.height()});}
 obj.addVIEW_viewIMG(options);
 var view=$("#"+options.viewid);
 obj.initBOX_viewIMG(options.boxid,options.boxleft,options.bigimgsrc,options.boxtop);

$(this).bind('mousemove',function(event){
 var leftLen=event.clientX-obj.offset().left;
 var topLen=event.clientY-obj.offset().top;

 var aa=leftLen-(view.width()/2)+getscrollLEFT();
 var bb=topLen-(view.height()/2)+getscrollTOP();

view.css({left:aa,top:bb});
view.show();
imgbox.show();

var bhh=view.position().top/smallimg.height();
var bww=view.position().left/smallimg.width();
var left=-bigimg.width()*bww;
var top=-bigimg.height()*bhh;
bigimg.css({left:left,top:top});

});

},function(){
 var smallbox=$(this);
 var imgbox=$("#"+options.boxid);
 var view=$("#"+options.viewid);
 view.remove();
 imgbox.hide();
 smallbox.unbind('mousemove');
});

}


function getscrollTOP(){
  var tt=0;
  if(document.body && document.body.scrollTop){
    tt=document.body.scrollTop;
  }
  if(document.documentElement && document.documentElement.scrollTop){
    tt=document.documentElement.scrollTop;
  }
  return tt;
}

function getscrollLEFT(){
   var tt=0;
  if(document.body && document.body.scrollLeft){
    tt=document.body.scrollLeft;
  }
  if(document.documentElement && document.documentElement.scrollLeft){
    tt=document.documentElement.scrollLeft;
  }
  return tt; 
}


jQuery.fn.addVIEW_viewIMG=function(options){
this.id=options.viewid;
this.css=options.viewcss;
this.width=options.boxwidth/options.viewbili;
this.height=options.boxheight/options.viewbili;
var obj=$(this);
var viewHTML='';
viewHTML+='<div id="'+this.id+'" style="width:'+this.width+'px;height:'+this.height+'px; ';
viewHTML+='position:absolute; '+this.css+'"></div>';
obj.append(viewHTML);
}


var imgBOX_viewIMG=function(options){
this.id=options.boxid;
this.width=options.boxwidth;
this.height=options.boxheight;
this.css=options.boxcss;

var box='';
box+='<div id="'+this.id+'" style="position:absolute;display:none;';
box+='overflow:hidden;width:'+this.width+'px;height:'+this.height+'px; '+this.css+' ">' ;
box+='<img src="" style="position:absolute;"/></div>';
$("body").append(box);
return $("#"+this.id);
}


jQuery.fn.initBOX_viewIMG=function(boxid,len,src,tt){
var obj=$(this);
var ll=obj.position().left;
var top=obj.position().top+tt;
var left=ll+len+obj.width();
if(src==""){
//  src=obj.find('img').attr('src');
//  var bb=src.split('.');
//  if(bb.length>1){src=bb[0]+"big."+bb[1];}
  src=obj.find('img').attr('src');

}

$("#"+boxid).css({left:left,top:top});
$("#"+boxid).find('img').attr('src',src);
}



/**-----------------------------viewimg==E---------------------------------------**/


/**-----------------------------equalH==S---------------------------------------**/
/**
**case:equalH("#ssss,.dddd");
**
**/
function equalH(paramstr){
 var dd=paramstr.split(',');
 var div=new Array();
 var height=0;
 for(var i=0;i<dd.length;i++){
    div[i]=$(""+$.trim(dd[i]));
    if(div[i].height()>height){height=div[i].height();}
  }
 $(div).each(function(){$(this).height(height);});
}
/**-----------------------------equalH==E---------------------------------------**/

/**-----------------------------closeWindow==S---------------------------------------**/
/**
**case:closeWindow();
**discription:close the window without Warnings
**/
function closeWindow(){window.opener=null;window.open('','_self');window.close();}
/**-----------------------------closeWindow==E---------------------------------------**/

/**-----------------------------showDate==S---------------------------------------**/
jQuery.fn.showDate=function(options){

  options=$.extend({},{
    id:"lmzdate",
    language:"chinese",
    order:"1234567",
    addYY:"",
    addMM:"",
    addDD:"",
    addHH:"",
    add_MM:"",
    addSS:"", 
    addDAY:"",
    monthen:["January","February","March","April","May","June","July","August","September",
"October","November","December"],
    dayen:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
    monthch:["1","2","3","4","5","6","7","8","9","10","11","12"],
    daych:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]
  },options);
  var obj=$(this);
  obj.append("<span id='"+options.id+"'></span>");
  setInterval(function(){$("#"+options.id).html(getLMZDate(options));},1000);
}

function getLMZDate(options){
  var month=new Array();
  var day=new Array();
  if(options.language=="english"){
    month=options.monthen;day=options.dayen; 
  }else{
    month=options.monthch;day=options.daych;
  }

  var d=new Date();
  var date=new Array();

  date[options.order.indexOf("1")]=d.getYear()+options.addYY;   
  date[options.order.indexOf("2")]=month[d.getMonth()]+options.addMM; 
  date[options.order.indexOf("3")]=d.getDate()+options.addDD;
  date[options.order.indexOf("4")]=d.getHours()+options.addHH;
  date[options.order.indexOf("5")]=d.getMinutes()+options.add_MM;
  date[options.order.indexOf("6")]=d.getSeconds()+options.addSS;
  date[options.order.indexOf("7")]=day[d.getDay()]+options.addDAY;

  var datestr="";
  for(var i=0;i<date.length;i++){
     if(date[i]){datestr+=date[i];}
  }
  return datestr;
}


/**-----------------------------showDate==E---------------------------------------**/


/**-----------------------------generateFloatBox==S---------------------------------------**/
/**
**version:3.0;
**xxx.generateFloatBox({options});
**case:
 $(".ddd1").generateFloatBox({
    width:400,
    height:300,
    left:"auto",
    top:200,
    title:"标题",
    text:"内容",
    closecss:"color:blue;"
  });

 $(".ddd2").generateFloatBox({
    id:"floatbar1",
    width:400,
    height:300,
    left:300,
    top:200,
    title:"标题",
    url:"Template/include/url.html"
    
  });

 $(".ddd3").generateFloatBox({
    id:"floatbar2",
    width:400,
    height:300,
    left:300,
    top:200,
    title:"标题",
    textid:"#iii"
    
  });
**
**/



jQuery.fn.generateFloatBox=function(o){

/*生成弹出层-------------------S--------------------*/

 var floatBox=function(o){
  this.id=o.id;
  this.width=o.width;
  this.height=o.height;
  this.left=o.left;
  this.top=o.top;
  this.css=o.css;
  this.url=o.url;
  this.textid=o.textid;
  this.title=o.title;
  this.text=o.text;
  this.closeinner=o.closeinner;
  this.closecss=o.closecss;
  this.titlecss=o.titlecss;
  this.innercss=o.innercss;

  var html="";
  var htmlinner="";

  this.closeH='<span id="'+this.id+'close" style="color:black;position:absolute;right:0px;';
  this.closeH+='top:3px;height:18px;line-height:18px;display:blok;'+this.closecss+'"> ';
  this.closeH+=this.closeinner+'</span>';

  this.titleH='<div id="'+this.id+'title" style="font-size:16px;font-weight:bold;';
  this.titleH+='text-align:left;height:22px;line-height:22px;'+this.titlecss+'">' ;
  this.titleH+=this.title+'</div>';

  if(this.url!=""){
    htmlinner='<iframe src="'+this.url+'" style="height:'+this.height+';width:'+this.width
    htmlinner+=';" frameborder="0" scrolling="no" style="overflow:hidden;"></iframe>';
  }else if(this.textid!=""){
    htmlinner=$(this.textid).html();
  }else{
    htmlinner='<div id="'+this.id+'inner" style="padding:5px;text-align:left;' ;
   htmlinner+=this.innercss+'">'+this.text+'</div>';
  }

  html+='<div id="'+this.id+'" style="position:absolute;width:'+this.width+'px;height:' ;
  html+=this.height+'px;display:none;z-index:1000;border:4px solid #ccc; ';
  html+='background:#fff;left:'+this.css+';"> ';
  html+=this.titleH;
  html+=htmlinner;
  html+=this.closeH;
  html+='</div>';
  $('body').append(html);

  
  this.jObject=$("#"+this.id);
  this.jClose=$("#"+o.id+"close");
  this.jTitle=$("#"+o.id+"title");
  var obj=this;

  this.getCenterP=function(){
    this.ll=function(){return (window.screen.width-obj.width)/2;}
    this.tt=function(){return (window.screen.height-obj.height)/2;}
  }

  this.setPosition=function(left,top){
    obj.jObject.css({left:left+$(document).scrollLeft(),top:top+$(document).scrollTop()});
  }
  
  this.getJObject=function(){
    return obj.jObject;
  }

  this.bindClose=function(overlay){
    obj.jClose.css('cursor','hand');
    obj.jClose.bind('click',function(){
      obj.jObject.hide();
      obj.jObject.remove();
      if(overlay){overlay.hide();overlay.remove();}
    });
  }
  
  this.bindFloat=function(){
   $(window).scroll(function(){
    obj.setPosition(obj.left,obj.top);
   });
  }

  this.bindMove=function(){
    obj.jTitle.css('cursor','hand');
    obj.jTitle.mousedown(function(){
      var leftLen=event.clientX-obj.jObject.offset().left;
      var topLen=event.clientY-obj.jObject.offset().top;
      $(document).bind("mousemove",function(event){
        var aa=event.clientX-leftLen;
        var bb=event.clientY-topLen;
        obj.top=bb-$(document).scrollTop();
        obj.left=aa-$(document).scrollLeft();
        obj.jObject.css({left:aa,top:bb});
     }).bind("mouseup",function(){
       $(document).unbind("mousemove").unbind("mouseup");
     });
   });
  }


  if(this.left=="auto"){
    this.left=new this.getCenterP().ll();
  }
  if(this.top=="auto"){
    this.top=new this.getCenterP().tt();
  }

  //初始化位置
   this.setPosition(this.left,this.top);
 }

/*生成弹出层-------------------E--------------------*/

/*获取页面高度宽度-------------------S--------------------*/

 var docInfo=function(dd){
  this.ww=function(){var ww=document.compatMode == "CSS1Compat"?document.documentElement.scrollWidth:document.body.scrollWidth;return Math.max(ww,$(window).width());}
  this.hh=function(){var hh=document.compatMode == "CSS1Compat"?document.documentElement.scrollHeight:document.body.scrollHeight;return Math.max(hh,$(window).height());} 
  }

/*获取页面高度宽度-------------------E--------------------*/

/*生成遮罩层-------------------S--------------------*/

 var overlay=function(id){
  var overlay='<div id="'+id+'masks" style="position:absolute; ';
     overlay+='filter:Alpha(Opacity=60);opacity:0.6;top:0; ';
     overlay+='left:0;z-index:999;background:#000;display:none;"></div>';
  $('body').append(overlay);

  var obj=this;
  this.jOverlay=$("#"+id+"masks");

  this.getJObject=function(){
    return obj.jOverlay;
  }
  
  this.initOverlay=function(){
    obj.jOverlay.css({width:new docInfo().ww(),height:new docInfo().hh()});
  } 

  this.initOverlay(); 
 }

/*生成遮罩层-------------------E--------------------*/

/*处理逻辑 S*/
 var gFloatBox=function(obj,o){

  //点击创建对象 关闭时移除对象
   obj.bind('click',function(){
       var floatBoxOBJ=new floatBox(o);          //弹出层对象 
       var overlayOBJ=new overlay(o.id);         //遮罩层对象
       var $floatBox=floatBoxOBJ.getJObject();   //弹出层jQ对象
       var $overlay=overlayOBJ.getJObject();     //遮罩层jQ对象

       $overlay.show();
       $floatBox.show(); 

       if(o.closeable){floatBoxOBJ.bindClose($overlay);}
       if(o.floatable){floatBoxOBJ.bindFloat();}
       if(o.moveable){floatBoxOBJ.bindMove();}
    });

 }
/*处理逻辑 E*/

/*main s*/

   o=$.extend({},{
    id:"floatpo",    /*弹出框id    */
    width:400,       /*弹出框宽度  */
    height:300,      /*弹出框高度  */
    left:"auto",        /*弹出宽初始左边距  auto时取屏幕中间*/
    top:"auto",         /*弹出框初始上边距  auto时去屏幕中间*/
    url:"",          /*包含页面 url   如"aaa.html"  */
    textid:"",       /*包含某id 下的html内容  如"#aaa"  */
    title: "",        /*直接写内容 标题   */
    text:"",         /*直接写内容 内容   */
    titlecss:"",     /*标题样式          */
    innercss:"",     /*内容样式 限直接包含text使用  */
    closecss:"",     /*关闭按钮样式   */
    closeinner:"╳&nbsp;", /*关闭按钮内容   */
    css:"",          /*弹出框 样式    */
    closeable:true,  /*是否能关闭     */
    moveable:true,   /*是否能拖动     */
    floatable:true   /*是否能浮动     */
   },o);

  new gFloatBox($(this),o);

/*main e*/
}


/**-----------------------------generateFloatBox==E---------------------------------------**/
