
(function($) {
var _serverUrl = '/fre/ezjscore/', _seperator = '@SEPERATOR$';
function _ez( callArgs, post, callBack )
{
callArgs = callArgs.join !== undefined ? callArgs.join( _seperator ) : callArgs;
var url = _serverUrl + 'call/' + encodeURIComponent( callArgs );
post = post === undefined ? {} : post;
post['ezjscServer_function_arguments'] = callArgs;
return $.post( url, post, callBack, 'json' );
};
_ez.url = _serverUrl;
_ez.seperator = _seperator;
$.ez = _ez;
function _ezLoad( callArgs, post, selector, callBack )
{
callArgs = callArgs.join !== undefined ? callArgs.join( _seperator ) : callArgs;
var url = _serverUrl + 'call/' + encodeURIComponent( callArgs );
post = post === undefined ? {} : post;
post['ezjscServer_function_arguments'] = callArgs;
return this.load( url + ( selector ? ' ' + selector : '' ), post, callBack );
};
$.fn.ez = _ezLoad;
})(jQuery);
jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;
(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),i=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"]}if(i.constructor!=Array){i=["center","middle"]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);;
(function(a){a.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b=="selected"){if(this.options.collapsible&&c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b=="deselectable"){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(n){this.list=this.element.children("ul:first");this.lis=a("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr("href");var s=q.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=a("base")[0])&&s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!="#"){a.data(o,"href.tabs",q);a.data(o,"load.tabs",q.replace(/#.*$/,""));var w=p._tabId(o);o.href="#"+w;var v=a("#"+w);if(!v.length){v=a(d.panelTemplate).attr("id",w).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(p.panels[r-1]||p.list);v.data("destroy.tabs",true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!="number"&&d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected>=0&&this.anchors[d.selected])||d.selected<0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.anchors.length){this.panels.eq(d.selected).removeClass("ui-tabs-hide");this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active");p.element.queue("tabs",function(){p._trigger("show",null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind("unload",function(){p.lis.add(p.anchors).unbind(".tabs");p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[d.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(d.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(d.event!="mouseover"){var f=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o)}};var j=function(o,i){i.removeClass("ui-state-"+o)};this.lis.bind("mouseover.tabs",function(){f("hover",a(this))});this.lis.bind("mouseout.tabs",function(){j("hover",a(this))});this.anchors.bind("focus.tabs",function(){f("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:""});if(a.browser.msie&&o.opacity){i[0].style.removeAttribute("filter")}}var k=h?function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(h,h.duration||"normal",function(){e(o,h);p._trigger("show",null,p._ui(i,o[0]))})}:function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");p._trigger("show",null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||"normal",function(){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");e(i,b);p.element.dequeue("tabs")})}:function(o,i,q){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");p.element.dequeue("tabs")};this.anchors.bind(d.event+".tabs",function(){var o=this,r=a(this).closest("li"),i=p.panels.filter(":not(.ui-tabs-hide)"),q=a(p._sanitizeSelector(this.hash));if((r.hasClass("ui-tabs-selected")&&!d.collapsible)||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||p._trigger("select",null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass("ui-tabs-selected")){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){l(o,i)}).dequeue("tabs");this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue("tabs",function(){l(o,i)})}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(a.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c}var d=a(this).unbind(".tabs");a.each(["href","load","cache"],function(e,f){d.removeData(f+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()}else{a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",i)[0]);i.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var f=a("#"+h);if(!f.length){f=a(g.panelTemplate).attr("id",h).data("destroy.tabs",true)}f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k>=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(b+(b+1<this.anchors.length?1:-1))}d.disabled=a.map(a.grep(d.disabled,function(g,f){return g!=b}),function(g,f){return g>=b?--g:g});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass("ui-state-disabled");d.disabled.push(c);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b=="string"){b=this.anchors.index(this.anchors.filter("[href$="+b+"]"))}else{if(b===null){b=-1}}if(b==-1&&this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+".tabs")},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&a.data(b,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(e).addClass("ui-state-processing");if(g.spinner){var f=a("span",b);f.data("label.tabs",f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,"cache.tabs",true)}c._trigger("load",null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData("cache.tabs").data("load.tabs",b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i<b.anchors.length?i:0)},d);if(h){h.stopPropagation()}});var e=b._unrotate||(b._unrotate=!f?function(h){if(h.clientX){b.rotate(null)}}:function(h){t=g.selected;c()});if(d){this.element.bind("tabsshow",c);this.anchors.bind(g.event+".tabs",e);c()}else{clearTimeout(b.rotation);this.element.unbind("tabsshow",c);this.anchors.unbind(g.event+".tabs",e);delete this._rotate;delete this._unrotate}}})})(jQuery);;
(function(a){a.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a('<div class="ui-progressbar-value ui-widget-header ui-corner-left"></div>').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();a.widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined){return this._value()}this._setData("value",b);return this},_setData:function(b,c){switch(b){case"value":this.options.value=c;this._refreshValue();this._trigger("change",null,{});break}a.widget.prototype._setData.apply(this,arguments)},_value:function(){var b=this.options.value;if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_valueMin:function(){var b=0;return b},_valueMax:function(){var b=100;return b},_refreshValue:function(){var b=this.value();this.valueDiv[b==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(b+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.7.2",defaults:{value:0}})})(jQuery);;
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul.ul-products",c),tLi=$("li.li-product",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li.li-product",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);
;(function(){
var $$;
$$ = jQuery.fn.flash = function(htmlOptions, pluginOptions, replace, update) {
var block = replace || $$.replace;
pluginOptions = $$.copy($$.pluginOptions, pluginOptions);
if(!$$.hasFlash(pluginOptions.version)) {
if(pluginOptions.expressInstall && $$.hasFlash(6,0,65)) {
var expressInstallOptions = {
flashvars: {
MMredirectURL: location,
MMplayerType: 'PlugIn',
MMdoctitle: jQuery('title').text()
}
};
} else if (pluginOptions.update) {
block = update || $$.update;
} else {
return this;
}
}
htmlOptions = $$.copy($$.htmlOptions, expressInstallOptions, htmlOptions);
return this.each(function(){
block.call(this, $$.copy(htmlOptions));
});
};
$$.copy = function() {
var options = {}, flashvars = {};
for(var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if(arg == undefined) continue;
jQuery.extend(options, arg);
if(arg.flashvars == undefined) continue;
jQuery.extend(flashvars, arg.flashvars);
}
options.flashvars = flashvars;
return options;
};
$$.hasFlash = function() {
if(/hasFlash\=true/.test(location)) return true;
if(/hasFlash\=false/.test(location)) return false;
var pv = $$.hasFlash.playerVersion().match(/\d+/g);
var rv = String([arguments[0], arguments[1], arguments[2]]).match(/\d+/g) || String($$.pluginOptions.version).match(/\d+/g);
for(var i = 0; i < 3; i++) {
pv[i] = parseInt(pv[i] || 0);
rv[i] = parseInt(rv[i] || 0);
if(pv[i] < rv[i]) return false;
if(pv[i] > rv[i]) return true;
}
return true;
};
$$.hasFlash.playerVersion = function() {
try {
try {
var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
try { axo.AllowScriptAccess = 'always';	}
catch(e) { return '6,0,0'; }
} catch(e) {}
return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
} catch(e) {
try {
if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
}
} catch(e) {}
}
return '0,0,0';
};
$$.htmlOptions = {
height: 240,
flashvars: {},
pluginspage: 'http://www.adobe.com/go/getflashplayer',
src: '#',
type: 'application/x-shockwave-flash',
width: 320
};
$$.pluginOptions = {
expressInstall: false,
update: true,
version: '6.0.65'
};
$$.replace = function(htmlOptions) {
this.innerHTML = '<div class="alt">'+this.innerHTML+'</div>';
jQuery(this)
.addClass('flash-replaced')
.prepend($$.transform(htmlOptions));
};
$$.update = function(htmlOptions) {
var url = String(location).split('?');
url.splice(1,0,'?hasFlash=true&');
url = url.join('');
var msg = '<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+url+'">Click here.</a></p>';
this.innerHTML = '<span class="alt">'+this.innerHTML+'</span>';
jQuery(this)
.addClass('flash-update')
.prepend(msg);
};
function toAttributeString() {
var s = '';
for(var key in this)
if(typeof this[key] != 'function')
s += key+'="'+this[key]+'" ';
return s;
};
function toFlashvarsString() {
var s = '';
for(var key in this)
if(typeof this[key] != 'function')
s += key+'='+encodeURIComponent(this[key])+'&';
return s.replace(/&$/, '');
};
$$.transform = function(htmlOptions) {
htmlOptions.toString = toAttributeString;
if(htmlOptions.flashvars) htmlOptions.flashvars.toString = toFlashvarsString;
return '<embed ' + String(htmlOptions) + '/>';
};
if (window.attachEvent) {
window.attachEvent("onbeforeunload", function(){
__flash_unloadHandler = function() {};
__flash_savedUnloadHandler = function() {};
});
}
})();
(function($) {
$.jPlayerCount = 0;
var methods = {
jPlayer: function(options) {
$.jPlayerCount++;
var config = {
ready: null,
cssPrefix: "jqjp",
swfPath: "js",
volume: 80,
oggSupport: false,
position: "absolute",
width: 0,
height: 0,
top: 0,
left: 0,
quality: "high",
bgcolor: "#ffffff"
};
$.extend(config, options);
var configWithoutOptions = {
id: $(this).attr("id"),
swf: config.swfPath + ((config.swfPath != "") ? "/" : "") + "Jplayer.swf",
fid: config.cssPrefix + "_flash_" + $.jPlayerCount,
aid: config.cssPrefix + "_audio_" + $.jPlayerCount,
hid: config.cssPrefix + "_force_" + $.jPlayerCount,
i: $.jPlayerCount
};
$.extend(config, configWithoutOptions);
$.fn["jPlayerReady" + config.i] = config.ready;
$(this).prepend('<audio id="' + config.aid + '"></audio>'); // Begin check for HTML5 <audio>
var audioArray = $("#"+config.aid).get();
var configForAudioFormat = {
canPlayMP3: Boolean((audioArray[0].canPlayType) ? (("" != audioArray[0].canPlayType("audio/mpeg")) && ("no" != audioArray[0].canPlayType("audio/mpeg"))) : false),
canPlayOGG: Boolean((audioArray[0].canPlayType) ? (("" != audioArray[0].canPlayType("audio/ogg")) && ("no" != audioArray[0].canPlayType("audio/ogg"))) : false),
audio: audioArray[0]
};
$.extend(config, configForAudioFormat);
var configForHtmlAudio = {
html5: Boolean((config.oggSupport) ? ((config.canPlayOGG) ? true : config.canPlayMP3) : config.canPlayMP3)
};
$.extend(config, configForHtmlAudio);
$(this).data("jPlayer.config", config);
var events = {
setButtons: function(e, playing) {
var playId = $(this).data("jPlayer.cssId.play");
var pauseId = $(this).data("jPlayer.cssId.pause");
var prefix = $(this).data("jPlayer.config").cssPrefix;
if(playId != null && pauseId != null) {
if(playing) {
var style = $(this).data("jPlayer.cssDisplay.pause");
$("#"+playId).css("display", "none");
$("#"+pauseId).css("display", style);
} else {
var style = $(this).data("jPlayer.cssDisplay.play");
$("#"+playId).css("display", style);
$("#"+pauseId).css("display", "none");
}
}
}
};
var eventsForFlash = {
setFile: function(e, f) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
m.fl_setFile_mp3(f.mp3);
$(this).trigger("jPlayer.setButtons", false);
},
play: function(e) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
var r = m.fl_play_mp3();
if(r) {
$(this).trigger("jPlayer.setButtons", true);
}
},
pause: function(e) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
var r = m.fl_pause_mp3();
if(r) {
$(this).trigger("jPlayer.setButtons", false);
}
},
stop: function(e) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
var r = m.fl_stop_mp3();
if(r) {
$(this).trigger("jPlayer.setButtons", false);
}
},
playHead: function(e, p) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
var r = m.fl_play_head_mp3(p);
if(r) {
$(this).trigger("jPlayer.setButtons", true);
}
},
playHeadTime: function(e, t) {
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
var r = m.fl_play_head_time_mp3(t);
if(r) {
$(this).trigger("jPlayer.setButtons", true);
}
},
volume: function(e, v) {
$(this).data("jPlayer.config").volume = v;
var fid = $(this).data("jPlayer.config").fid;
var m = $(this).data("jPlayer.getMovie")(fid);
m.fl_volume_mp3(v);
}
};
var eventsForHtmlAudio = {
setFile: function(e, f) {
$("#"+$(this).data("jPlayer.config").aid).remove();
$(this).prepend('<audio id="' + $(this).data("jPlayer.config").aid + '"></audio>');
var audioArray = $("#"+$(this).data("jPlayer.config").aid).get();
$(this).data("jPlayer.config").audio = audioArray[0];
$(this).data("jPlayer.config").audio.volume = $(this).data("jPlayer.config").volume/100;
if($(this).data("jPlayer.config").oggSupport && $(this).data("jPlayer.config").canPlayOGG) {
$(this).data("jPlayer.config").audio.src = f.ogg;
} else {
$(this).data("jPlayer.config").audio.src = f.mp3;
}
$(this).trigger("jPlayer.setButtons", false);
},
play: function(e) {
$(this).data("jPlayer.config").audio.play();
$(this).trigger("jPlayer.setButtons", true);
clearInterval($(this).data("jPlayer.interval.jPlayerController"));
$(this).data("jPlayer.interval.jPlayerController", window.setInterval($(this).jPlayerController, 50, $(this), false));
},
pause: function(e) {
$(this).data("jPlayer.config").audio.pause();
$(this).trigger("jPlayer.setButtons", false);
clearInterval($(this).data("jPlayer.interval.jPlayerController"));
},
stop: function(e) {
$(this).data("jPlayer.config").audio.currentTime = 0;
$(this).trigger("jPlayer.pause");
$(this).jPlayerController($(this), true); // With override true
},
playHead: function(e, p) {
$(this).data("jPlayer.config").audio.currentTime = ($(this).data("jPlayer.config").audio.buffered) ? p * $(this).data("jPlayer.config").audio.buffered.end() / 100 : p * $(this).data("jPlayer.config").audio.duration / 100;
$(this).trigger("jPlayer.play");
},
playHeadTime: function(e, t) {
$(this).data("jPlayer.config").audio.currentTime = t/1000;
$(this).trigger("jPlayer.play");
},
volume: function(e, v) {
$(this).data("jPlayer.config").volume = v;
$(this).data("jPlayer.config").audio.volume = v/100;
$(this).jPlayerVolume(v);
}
};
if( config.html5 ) {
$.extend(events, eventsForHtmlAudio);
} else {
$.extend(events, eventsForFlash);
}
for(var event in events) {
var e = "jPlayer." + event;
$(this).unbind(e);
$(this).bind(e, events[event]);
}
var getMovie = function(fid) {
return document[fid];
};
$(this).data("jPlayer.getMovie", getMovie);
var checkForFlash = function (version){
var flashIsInstalled = false;
var flash;
if(window.ActiveXObject){
try{
flash = new ActiveXObject(("ShockwaveFlash.ShockwaveFlash." + version));
flashIsInstalled = true;
}
catch(e){
}
}
else if(navigator.plugins && navigator.mimeTypes.length > 0){
flash = navigator.plugins["Shockwave Flash"];
if(flash){
var flashVersion = navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/, "$1");
if(flashVersion >= version){
flashIsInstalled = true;
}
}
}
return flashIsInstalled;
};
if( !config.html5 ) {
if(checkForFlash(8)) {
if($.browser.msie) {
var html_obj = '<object id="' + config.fid + '"';
html_obj += ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
html_obj += ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"';
html_obj += ' type="application/x-shockwave-flash"';
html_obj += ' width="' + config.width + '" height="' + config.height + '">';
html_obj += '</object>';
var obj_param = new Array();
obj_param[0] = '<param name="movie" value="' + config.swf + '" />';
obj_param[1] = '<param name="quality" value="high" />';
obj_param[2] = '<param name="FlashVars" value="id=' + escape(config.id) + '&fid=' + escape(config.fid) + '&vol=' + config.volume + '" />';
obj_param[3] = '<param name="allowScriptAccess" value="always" />';
obj_param[4] = '<param name="bgcolor" value="' + config.bgcolor + '" />';
var ie_dom = document.createElement(html_obj);
for(var i=0; i < obj_param.length; i++) {
ie_dom.appendChild(document.createElement(obj_param[i]));
}
$(this).html(ie_dom);
} else {
var html_embed = '<embed name="' + config.fid + '" id="' + config.fid + '" src="' + config.swf + '"';
html_embed += ' width="' + config.width + '" height="' + config.height + '" bgcolor="' + config.bgcolor + '"';
html_embed += ' quality="high" FlashVars="id=' + escape(config.id) + '&fid=' + escape(config.fid) + '&vol=' + config.volume + '"';
html_embed += ' allowScriptAccess="always"';
html_embed += ' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
$(this).html(html_embed);
}
} else {
$(this).html("<p>Flash 8 or above is not installed. <a href='http://get.adobe.com/flashplayer'>Get Flash!</a></p>");
}
}
var html_hidden = '<div id="' + config.hid + '"></div>';
$(this).append(html_hidden);
$(this).css({'position':config.position, 'top':config.top, 'left':config.left});
$("#"+config.hid).css({'text-indent':'-9999px'});
if( config.html5 ) { // Emulate initial flash calls after 100ms
var self = $(this);
window.setTimeout( function() {
self.volume(config.volume);
self.jPlayerReady();
}, 100);
}
return $(this);
},
setFile: function(f1, f2) {
var f = {mp3:f1, ogg:f2};
$(this).trigger("jPlayer.setFile", f);
return $(this);
},
play: function() {
$(this).trigger("jPlayer.play");
return $(this);
},
pause: function() {
$(this).trigger("jPlayer.pause");
return $(this);
},
stop: function() {
$(this).trigger("jPlayer.stop");
return $(this);
},
playHead: function(p) {
$(this).trigger("jPlayer.playHead", p);
return $(this);
},
playHeadTime: function(t) {
$(this).trigger("jPlayer.playHeadTime", t);
return $(this);
},
volume: function(v) {
$(this).trigger("jPlayer.volume", v);
return $(this);
},
jPlayerId: function(fn, id) {
if(id != null) {
var isValid = eval("$(this)."+fn);
if(isValid != null) {
$(this).data("jPlayer.cssId." + fn, id);
var jPlayerId = $(this).data("jPlayer.config").id;
eval("var myHandler = function(e) { $(\"#" + jPlayerId + "\")." + fn + "(e); return false; }");
$("#"+id).click(myHandler).hover($(this).jPlayerRollOver, $(this).jPlayerRollOut).data("jPlayerId", jPlayerId);
var display = $("#"+id).css("display");
$(this).data("jPlayer.cssDisplay." + fn, display);
if(fn == "pause") {
$("#"+id).css("display", "none");
}
} else {
alert("Unknown function assigned in: jPlayerId( fn="+fn+", id="+id+" )");
}
} else {
id = $(this).data("jPlayer.cssId." + fn);
if(id != null) {
return id;
} else {
alert("Unknown function id requested: jPlayerId( fn="+fn+" )");
return false;
}
}
return $(this);
},
loadBar: function(e) { // Handles clicks on the loadBar
var lbId = $(this).data("jPlayer.cssId.loadBar");
if( lbId != null ) {
var offset = $("#"+lbId).offset();
var x = e.pageX - offset.left;
var w = $("#"+lbId).width();
var p = 100*x/w;
$(this).playHead(p);
}
},
playBar: function(e) { // Handles clicks on the playBar
$(this).loadBar(e);
},
onProgressChange: function(fn) {
$.fn["jPlayerOnProgressChange" + $(this).data("jPlayer.config").i] = fn;
return $(this);
},
jPlayerOnProgressChange: function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) { // Called from Flash
var lbId = $(this).data("jPlayer.cssId.loadBar");
if (lbId != null) {
$("#"+lbId).width(loadPercent+"%");
}
var pbId = $(this).data("jPlayer.cssId.playBar");
if (pbId != null ) {
$("#"+pbId).width(playedPercentRelative+"%");
}
$(this)["jPlayerOnProgressChange" + $(this).data("jPlayer.config").i](loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime);
$(this).jPlayerForceUpdate();
return true;
},
jPlayerController: function(self, override) { // For HTML5 interval.
var playedTime = 0;
var totalTime = 0;
var playedPercentAbsolute = 0;
var loadPercent = 0;
var playedPercentRelative = 0;
if(self.data("jPlayer.config").audio.readyState >= 1) {
playedTime = self.data("jPlayer.config").audio.currentTime * 1000; // milliSeconds
totalTime = self.data("jPlayer.config").audio.duration * 1000; // milliSeconds
playedPercentAbsolute = 100 * playedTime / totalTime;
loadPercent = (self.data("jPlayer.config").audio.buffered) ? 100 * self.data("jPlayer.config").audio.buffered.end() / self.data("jPlayer.config").audio.duration : 100;
playedPercentRelative = (self.data("jPlayer.config").audio.buffered) ? 100 * self.data("jPlayer.config").audio.currentTime / self.data("jPlayer.config").audio.buffered.end() : playedPercentAbsolute;
}
if(override) {
self.jPlayerOnProgressChange(loadPercent, 0, 0, 0, totalTime);
} else {
self.jPlayerOnProgressChange(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime);
if (self.data("jPlayer.config").audio.ended) {
clearInterval(self.data("jPlayer.interval.jPlayerController"));
self.jPlayerOnSoundComplete();
}
}
},
volumeMin: function() {
$(this).volume(0);
return $(this);
},
volumeMax: function() {
$(this).volume(100);
return $(this);
},
volumeBar: function(e) { // Handles clicks on the volumeBar
var vbId = $(this).data("jPlayer.cssId.volumeBar");
if( vbId != null ) {
var offset = $("#"+vbId).offset();
var x = e.pageX - offset.left;
var w = $("#"+vbId).width();
var p = 100*x/w;
$(this).volume(p);
}
},
volumeBarValue: function(e) { // Handles clicks on the volumeBarValue
$(this).volumeBar(e);
},
jPlayerVolume: function(v) { // Called from Flash
var vbvId = $(this).data("jPlayer.cssId.volumeBarValue");
if( vbvId != null ) {
$("#"+vbvId).width(v+"%");
$(this).jPlayerForceUpdate();
return true;
}
},
onSoundComplete: function(fn) {
$.fn["jPlayerOnSoundComplete" + $(this).data("jPlayer.config").i] = fn;
return $(this);
},
jPlayerOnSoundComplete: function() { // Called from Flash
$(this).trigger("jPlayer.setButtons", false);
$(this)["jPlayerOnSoundComplete" + $(this).data("jPlayer.config").i]();
return true;
},
jPlayerBufferState: function (b) { // Called from Flash
var lbId = $(this).data("jPlayer.cssId.loadBar");
if( lbId != null ) {
var prefix = $(this).data("jPlayer.config").cssPrefix;
if(b) {
$("#"+lbId).addClass(prefix + "_buffer");
} else {
$("#"+lbId).removeClass(prefix + "_buffer");
}
return true;
} else {
return false;
}
},
bufferMsg: function() {
},
jPlayerBufferMsg: function (msg) { // Called from Flash
var bmId = $(this).data("jPlayer.cssId.bufferMsg");
if( bmId != null ) {
$("#"+bmId).html(msg);
return true;
} else {
return false;
}
},
jPlayerForceUpdate: function() { // For Safari and Chrome
var hid = $(this).data("jPlayer.config").hid;
$("#"+hid).html(Math.random());
},
jPlayerRollOver: function() {
var jPlayerId = $(this).data("jPlayerId");
var prefix = $("#"+jPlayerId).data("jPlayer.config").cssPrefix;
$(this).addClass(prefix + "_hover");
},
jPlayerRollOut: function() {
var jPlayerId = $(this).data("jPlayerId");
var prefix = $("#"+jPlayerId).data("jPlayer.config").cssPrefix;
$(this).removeClass(prefix + "_hover");
},
jPlayerReady: function() { // Called from Flash
$(this)["jPlayerReady" + $(this).data("jPlayer.config").i]();
},
jPlayerGetInfo: function(info) {
return $(this).data("jPlayer.config")[info];
}
};
$.each(methods, function(i) {
$.fn[i] = this;
});
})(jQuery);
var playItem = new Array();
var myPlayList = new Array();
(function($){$(function(){
$(".ref_to_hide").hide();
$("#countries").change(function(){
document.location.href=$(this).val();
});
$("#tabs, #glossary").tabs();
$("#left-block .left-menu li a.link-level-1").click(function(){
$("#left-block .left-menu div.level-2").hide();
$(this).siblings('div.level-2').show();
});
$("#left-block .left-menu li div.level-2 a.close").click(function(){
$("#left-block .left-menu div.level-2").hide();
});
$(".right-block .search input:first").click(function(){
$(this).attr('value','');
});
$("#carousel .jCarouselLite").jCarouselLite({
btnNext: "#carousel .next",
btnPrev: "#carousel .prev",
visible: 1,
circular: true
}).find('div.summary li').removeAttr('style');
$("ul.tree")
.find("li:last-child").addClass("tvil").end()
.find("li:has(ul)").addClass("tvic")
.swapClass("tvil", "tvilc")
.append("<div class=\"tvca\">")
.find("div.tvca")
.click(function(){
$(this).parent("li").swapClass("tvic", "tvie").swapClass("tvilc", "tvile").find(">div.submenu").slideToggle();
});
$("div.level-2 .prev").click(function(){
if($(this).next('.level-2-content').height() < $(this).next('.level-2-content').children('.move').height()){
var pos = $(this).next('.level-2-content').children('.move').css('top');
if(parseInt(pos) != 0){
var move = parseInt(pos) + 200;
$(this).next('.level-2-content').children('.move').css('top',move+'px');
}
}
});
$("div.level-2 .next").click(function(){
if($(this).prev('.level-2-content').height() < $(this).prev('.level-2-content').children('.move').height()){
var pos = $(this).prev('.level-2-content').children('.move').css('top');
if(($(this).prev('.level-2-content').children('.move').height()+parseInt(pos)) > 200) {
var move = parseInt(pos) - 200;
$(this).prev('.level-2-content').children('.move').css('top',move+'px');
}
}
});
$('.move ul.tree li > a.no-link, .sitemap-tree ul.tree li > a.no-link').click(function(){
$(this).parent('li').find('>div.tvca').click();
});
$("#tabs ul.ceva-tabs li a ").click(function(){
var tree=$($(this).attr('href')).find('.sitemap-tree ul.tree');
if(!tree.hasClass('done')){
tree.addClass('done');
tree.find('li').slice(1).find('>div.tvca').click();
}
});
$("#tabs ul.ceva-tabs li:first a ").click();
$('#faq li a').click(function(){
$(this).parents("li").swapClass("faq-content active","faq-content").find("div.faq-item").slideToggle();
});
$("#register-forms-select input").click(function(){
var identifiant = $(this).attr('id');
$("#register-forms-list form").addClass("hide");
$("#register-forms-list").find('form#form-'+identifiant).swapClass("register-select-content hide","register-select-content")
});
$("a.thickbox-repro").click(function(){
var id = $(this).attr('id').split('-');
$("#repro-"+id[1])
.dialog({bgiframe: true,
width:1030,
closeOnEscape: true,
modal: true,
position:top,
title: $(this).attr('title'),
dialogClass: 'thickbox'
})
.dialog('open');
});
$("a.thickbox-link").click(function(){
var id = $(this).attr('id').split('-');
$("#product-"+id[1])
.dialog({bgiframe: true,
width:560,
closeOnEscape: true,
modal: true,
title: $(this).attr('title'),
dialogClass: 'thickbox'
})
.dialog('open');
});
$("a.listthickbox-link").click(function(){
var id = $(this).attr('id').split('-');
$("#listproduct-"+id[1])
.dialog({bgiframe: true,
width:560,
closeOnEscape: true,
modal: true,
title: $(this).attr('title'),
dialogClass: 'thickbox'
})
.dialog('open');
});
$(".quizz input").click(function(){
$(this).parent().parent().parent().find("li").removeClass('error').removeClass('good-answer');
$(this).parent().parent().parent().find("li.quizz-submit span").removeClass('show').addClass('hide');
});
$(".quizz-submit a").click(function(){
var quiz = $(this).parent().parent().parent();
var answer = $(quiz).find('input:checked');
$(answer).parent().parent().find('p.hide').removeClass('hide').addClass('show');
if (answer.attr('class') == 'good'){
$(answer).parent().parent().addClass('good-answer');
$(this).parent().next().find('.good-answer').removeClass('hide').addClass('show');
}
else {
$(quiz).find('.good').parent().parent().addClass('good-answer');
$(quiz).find('.good').parent().parent().find('p.hide').removeClass('hide').addClass('show');
$(answer).parent().parent().addClass('error');
$(this).parent().next().find('.error').removeClass('hide').addClass('show');
}
return false;
});
});
$.fn.swapClass = function(c1,c2) {
return this.each(function() {
if ($.hasWord(this, c1)) {
$(this).removeClass(c1);
$(this).addClass(c2);
} else if ($.hasWord(this, c2)) {
$(this).removeClass(c2);
$(this).addClass(c1);
}
});
};
jQuery.hasWord = function(e,a) {
if ( e == undefined ) return;
if ( e.className ) e = e.className;
return new RegExp("(^|\\s)" + a + "(\\s|$)").test(e);
};
})(jQuery);
function launchJPlayer(id, filepath) {
$("#jpAudio_"+id).jPlayer({
ready: function () {
$(this).setFile(filepath);
},
swfPath: '/extension/reprology/design/reprology/javascript',
volume: 50
})
.jPlayerId("play", "player_play_"+id)
.jPlayerId("pause", "player_pause_"+id)
.jPlayerId("stop", "player_stop_"+id)
.jPlayerId("loadBar", "player_progress_load_bar_"+id)
.jPlayerId("playBar", "player_progress_play_bar_"+id)
.jPlayerId("volumeMin", "player_volume_min_"+id)
.jPlayerId("volumeMax", "player_volume_max_"+id)
.jPlayerId("volumeBar", "player_volume_bar_"+id)
.jPlayerId("volumeBarValue", "player_volume_bar_value_"+id)
.onProgressChange( function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {
var myPlayedTime = new Date(playedTime);
var ptMin = (myPlayedTime.getUTCMinutes() < 10) ? "0" + myPlayedTime.getUTCMinutes() : myPlayedTime.getUTCMinutes();
var ptSec = (myPlayedTime.getUTCSeconds() < 10) ? "0" + myPlayedTime.getUTCSeconds() : myPlayedTime.getUTCSeconds();
$("#play_time_"+id).text(ptMin+":"+ptSec);
var myTotalTime = new Date(totalTime);
var ttMin = (myTotalTime.getUTCMinutes() < 10) ? "0" + myTotalTime.getUTCMinutes() : myTotalTime.getUTCMinutes();
var ttSec = (myTotalTime.getUTCSeconds() < 10) ? "0" + myTotalTime.getUTCSeconds() : myTotalTime.getUTCSeconds();
$("#total_time_"+id).text(ttMin+":"+ttSec);
})
.onSoundComplete( function() {
$(this).pause();
});
}
function launchJPlayerPlaylist(playlistId) {
$("#jpAudio_"+playlistId).jPlayer({
ready: function () {
displayPlayList(playlistId);
playListInit(false,playlistId);
},
swfPath: '/extension/reprology/design/reprology/javascript',
volume: 50
})
.jPlayerId("play", "player_play_"+playlistId)
.jPlayerId("pause", "player_pause_"+playlistId)
.jPlayerId("stop", "player_stop_"+playlistId)
.jPlayerId("loadBar", "player_progress_load_bar_"+playlistId)
.jPlayerId("playBar", "player_progress_play_bar_"+playlistId)
.jPlayerId("volumeMin", "player_volume_min_"+playlistId)
.jPlayerId("volumeMax", "player_volume_max_"+playlistId)
.jPlayerId("volumeBar", "player_volume_bar_"+playlistId)
.jPlayerId("volumeBarValue", "player_volume_bar_value_"+playlistId)
.onProgressChange( function(loadPercent, playedPercentRelative, playedPercentAbsolute, playedTime, totalTime) {
var myPlayedTime = new Date(playedTime);
var ptMin = (myPlayedTime.getUTCMinutes() < 10) ? "0" + myPlayedTime.getUTCMinutes() : myPlayedTime.getUTCMinutes();
var ptSec = (myPlayedTime.getUTCSeconds() < 10) ? "0" + myPlayedTime.getUTCSeconds() : myPlayedTime.getUTCSeconds();
$("#play_time_"+playlistId).text(ptMin+":"+ptSec);
var myTotalTime = new Date(totalTime);
var ttMin = (myTotalTime.getUTCMinutes() < 10) ? "0" + myTotalTime.getUTCMinutes() : myTotalTime.getUTCMinutes();
var ttSec = (myTotalTime.getUTCSeconds() < 10) ? "0" + myTotalTime.getUTCSeconds() : myTotalTime.getUTCSeconds();
$("#total_time_"+playlistId).text(ttMin+":"+ttSec);
})
.onSoundComplete( function() {
playListNext(playlistId);
});
}
function displayPlayList(playlistId) {
for (i=0; i < myPlayList[playlistId].length; i++) {
$("#playlist_list_"+playlistId+" ul").append("<li id='playlist_item_"+playlistId+"_"+i+"'>"+ myPlayList[playlistId][i].name +"</li>");
$("#playlist_item_"+playlistId+"_"+i).data( "index", i ).hover(
function() {
if (playItem[playlistId] != $(this).data("index")) {
$(this).addClass("playlist_hover");
}
},
function() {
$(this).removeClass("playlist_hover");
}
).click( function() {
var index = $(this).data("index");
if (playItem[playlistId] != index) {
playListChange( index, playlistId );
} else {
$("#jpAudio_"+playlistId).play();
}
});
}
}
function playListInit(autoplay,playlistId) {
if(autoplay) {
playListChange( 0, playlistId );
} else {
playListConfig( 0, playlistId );
}
}
function playListConfig( index, playlistId ) {
$("#playlist_item_"+playlistId+"_"+playItem[playlistId]).removeClass("playlist_current");
$("#playlist_item_"+playlistId+"_"+index).addClass("playlist_current");
playItem[playlistId] = index;
if ( playItem[playlistId] )
{
$("#jpAudio_"+playlistId).setFile(myPlayList[playlistId][playItem[playlistId]].mp3, myPlayList[playlistId][playItem[playlistId]].ogg);
}
else
{
$("#jpAudio_"+playlistId).setFile(myPlayList[playlistId][0].mp3, myPlayList[playlistId][0].ogg);
}
}
function playListChange( index, playlistId ) {
playListConfig( index, playlistId );
$("#jpAudio_"+playlistId).play();
}
function playListNext(playlistId) {
var index = (playItem[playlistId]+1 < myPlayList[playlistId].length) ? playItem[playlistId]+1 : 0;
if (playItem[playlistId]+1 < myPlayList[playlistId].length) //on ne veut pas boucler de nouveau au debut de la playlist
{
playListChange( index, playlistId );
}
}
function playListPrev(playlistId) {
var index = (playItem[playlistId]-1 >= 0) ? playItem[playlistId]-1 : myPlayList[playlistId].length-1;
playListChange( index, playlistId );
}
