﻿if(typeof(QZFL)=="undefined"||!QZFL){
	if(typeof(QZONE)=="object"){}else{window.QZONE=QZFL={};}
}
QZFL.object={
	extend:function(object,extendModule){var _t=typeof object;
	if(_t!="object"&&_t!="function"){return;}
	QZFL.object.each(
		extendModule,
		function(value,key){object[key]=value;}
	);
},

each:function(object,fn){
	var i=0,k,_fn=fn;
	if(Object.prototype.toString.call(object)==="[object Array]"){
	}else{
			for(k in object){_fn(object[k],k,object);}
		}return true;
	}
}

QZFL.css={
	removeStyleSheet:function(id){var _ss=this.getStyleSheetById(id);if(_ss){var own=_ss.owningElement||_ss.ownerNode;QZFL.dom.removeElement(own);}},
	hasClassName:function(elem,cname){return(elem&&cname)?new RegExp('\\b'+cname+'\\b').test(elem.className):false;},
	swapClassName:function(elements,class1,class2){},
	addClassName:function(elem,cname){if(elem&&cname){if(elem.className){if(QZFL.css.hasClassName(elem,cname)){return false;}else{elem.className+=' '+cname;return true;}}else{elem.className=cname;return true;}}else{return false;}},
	removeClassName:function(elem,cname){if(elem&&cname&&elem.className){var old=elem.className;elem.className=(elem.className.replace(new RegExp('\\b'+cname+'\\b'),''));return elem.className!=old;}else{}}
}

QZFL.dom={
	getById:function(id){return document.getElementById(id);},
	get:function(e){if(e&&((e.tagName||e.item)||e.nodeType==9)){return e;}return this.getById(e);},
	getNode:function(e){if(e&&(e.nodeType||e.item)){return e;}return null;},
	getFirstChild:function(node){node=this.getNode(node);var child=!!node.firstChild&&node.firstChild.nodeType==1?node.firstChild:null;return child||this.getNextSibling(node.firstChild);},
	getNextSibling:function(node){while(node){node=node.nextSibling;if(!!node&&node.nodeType==1){return node;}}return null;},
	setStyle:function(el,property,value){switch(property){
	default:el.style[property]=value;
	}
}}

//jalkspqourhtioahu
QZFL.dragdrop={};QZFL.DialogHandler=function(){};(function(){jWidget={version:"1.0.0",each:function(d,c){if(typeof d.length=="undefined"||typeof d=="string"){d=[d]}for(var b=0,a=d.length;b<a;b++){if(c.call(d[b],d[b],b,d)===false){return b}}},extend:QZFL.object.extend};jWidget.dom=QZFL.dom;jWidget.extend(QZFL.dom,{hasClass:QZFL.css.hasClassName,addClass:QZFL.css.addClassName,removeClass:QZFL.css.removeClassName});jWidget.dom.getChildren=function(b){var a=[];var b=jWidget.dom.getFirstChild(b);while(b){if(!!b&&b.nodeType==1){a.push(b)}b=b.nextSibling}return a};jWidget.Tween=QZFL.Tween;jWidget.ui=jWidget.ui||{}})();(function(){var b=jWidget,a=b.dom;_Slide=function(c){c=c||{};this.eventType=c.eventType||"mouseover",this.autoPlayInterval=c.autoPlayInterval||3*1000;this._play=true;this._timer=null;this._fadeTimer=null;this._container=a.get(c.container);this._panelWrapper=a.get(c.panelWrapper)||a.getFirstChild(this._container);this._sliders=a.getChildren(this._panelWrapper);this._navWrapper=a.get(c.navWrapper)||a.getNextSibling(this._panelWrapper)||null;this._navs=(this._navWrapper&&a.getChildren(this._navWrapper))||null;this._effect=c.effect||"scrollx";this._panelSize=(this._effect.indexOf("scrolly")==-1?c.width:c.height)||a.getSize(a.getFirstChild(this._panelWrapper))[this._effect.indexOf("scrolly")==-1?0:1];this._count=c.count||a.getChildren(this._panelWrapper).length;this._navClassOn=c.navClassOn||"on";this._target=0;this._changeProperty=this._effect.indexOf("scrolly")==-1?"left":"top";this.curIndex=0;this.step=this._effect.indexOf("scroll")==-1?1:(c.Step||5);this.slideTime=c.slideTime||10;if(c.nextButton){var d=this;a.get(c.nextButton).onclick=(function(e){return function(){e.next()}})(d)}if(c.prevButton){a.get(c.prevButton).onclick=(function(e){return function(){e.prev()}})(d)}this.init();this.run(true)};_Slide.prototype={init:function(){if(this._container){a.setStyle(this._container,"overflow","hidden")}a.setStyle(this._panelWrapper,"position","relative");if(this._effect.indexOf("scrolly")==-1){a.setStyle(this._panelWrapper,"width",this._count*(this._panelSize+200)+"px");b.each(this._sliders,function(d){d.style.styleFloat=d.style.cssFloat="left"})}if(this._navs){var c=this;if(c.eventType=="click"){b.each(this._navs,function(e,d){e.onclick=(function(f){return function(){a.addClass(e,f._navClassOn);f._play=false;f.curIndex=d;f._play=true;f.run()}})(c)})}else{b.each(this._navs,function(e,d){e.onmouseover=(function(f){return function(){a.addClass(e,f._navClassOn);f._play=false;f.curIndex=d;f.run()}})(c);e.onmouseout=(function(f){return function(){a.removeClass(e,f._navClassOn);f._play=true;f.run(false,true)}})(c)})}}},run:function(e,c){if(this.curIndex<0){this.curIndex=this._count-1}else{if(this.curIndex>=this._count){this.curIndex=0}}this._target=-1*this._panelSize*this.curIndex;var d=this;if(this._navs){b.each(this._navs,function(g,f){d.curIndex==(f)?a.addClass(g,d._navClassOn):a.removeClass(g,d._navClassOn)})}this.scroll();if(this._effect.indexOf("fade")>=0&&!c){a.setStyle(this._panelWrapper,"opacity",e?0.5:0.1);this.fade()}},scroll:function(){clearTimeout(this._timer);try{QZFL.lazyLoad.loadHideImg(this._sliders[this.curIndex])}catch(d){}var g=this,f=parseInt(this._panelWrapper.style[this._changeProperty])||0,c=(this._target-f)/this.step;if(Math.abs(c)<1&&c!=0){c=c>0?1:-1}if(c!=0){this._panelWrapper.style[this._changeProperty]=(f+c)+"px";this._timer=setTimeout(function(){g.scroll()},this.slideTime)}else{this._panelWrapper.style[this._changeProperty]=this._target+"px";if(this._play){this._timer=setTimeout(function(){g.curIndex++;g.run()},this.autoPlayInterval)}}},fade:function(){var c=a.getStyle(this._panelWrapper,"opacity");var d=this;if(c<1){a.setStyle(this._panelWrapper,"opacity",parseFloat(c)+0.02);setTimeout(function(){d.fade()},1)}},next:function(){this._play=false;this.curIndex++;this._play=true;this.run()},prev:function(){this._play=false;this.curIndex--;this._play=true;this.run()}};jWidget.ui.SlideView=function(d,c){if(!d.panelWrapper){c=c||{};c.container=d}else{c=d}return new _Slide(c)}})();jWidget.ui.Pager=function(){};jWidget.ui.Pager.prototype.go=function(b){try{this.callback(b)}catch(a){}};jWidget.extend(QZFL.ui=QZFL.ui||{},jWidget.ui);var $=(function(){var a=function(b){};QZFL.object.extend(a,QZFL);return a})();
