window.ol||(window.ol={});(function(){var $win,$doc,isIE6=true,_defaults={boxid:"ol_box",boxclass:"ol_box",type:"dialog",title:"",width:0,height:0,showTitle:true,showButton:true,showCancel:true,showOk:true,okBtnName:"确定",cancelBtnName:"取消",timeout:0,draggable:true,modal:true,zIndex:5e3,remember:false,position:"center",clickOut:null,onclose:null,onopen:null,oncancel:null,onok:null,blur:null,focus:null,autoHeight:true,autoPosition:true,cache:false};var _getDoc=function(){return document.compatMode=="CSS1Compat"?document.documentElement:document.body};var _getWinSize=function(){var doc=_getDoc();return{width:Math.max(doc.scrollWidth,doc.clientWidth||0)-1,height:Math.max(doc.scrollHeight,doc.clientHeight||0)-1}};var type={};type.dialog={html:"
",initContent:function(self){self.setContent(self.content)},setContent:function(self,content,callback){self.content=content||self.content;self.setContent(self.content);if(typeof callback=="function")callback()}};type.ajax={initContent:function(self){},setContent:function(self,content,callback){self._b_button.hide();self.setContent('');if(self._b_content.height()<90)self._b_content.height(Math.max(90,self.options.height));if(self._box.width()<200)self._box.width(Math.max(200,self.options.width));var ajaxurl=content||self.content;if(typeof ajaxurl!="string"){alert("please set ajax url.");return}self.content=ajaxurl;if(self.options.cache==false){if(ajaxurl.indexOf("?")==-1){ajaxurl+="?_t="+Math.random()}else{ajaxurl+="&_t="+Math.random()}}$.get(ajaxurl,function(data){if(self.options.showButton)self._b_button.show();self.setContent(data);if(typeof callback=="function")callback()})}};type.iframe={initContent:function(self){},setContent:function(self,content,callback){var url=content||self.content;if(typeof url!="string"){alert("please set iframe url.");return}self.content=url;var name="box-iframe-"+(new Date).getTime();self.setContent('