if(!("console" in window)||!("firebug" in console)){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];
if(!("console" in window)){window.console={}
}for(var i=0;
i<names.length;
++i){if(!window.console[names[i]]){window.console[names[i]]=window.console.log?window.console.log:function(){}
}}}var SWFUpload;
if(SWFUpload==undefined){SWFUpload=function(a){this.initSWFUpload(a)
}}SWFUpload.prototype.initSWFUpload=function(b){try{this.customSettings={};
this.settings=b;
this.eventQueue=[];
this.movieName="SWFUpload_"+SWFUpload.movieCount++;
this.movieElement=null;
SWFUpload.instances[this.movieName]=this;
this.initSettings();
this.loadFlash();
this.displayDebugInfo()
}catch(a){delete SWFUpload.instances[this.movieName];
throw a
}};SWFUpload.instances={};
SWFUpload.movieCount=0;
SWFUpload.version="2.2.0 2009-03-25";
SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};
SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290};
SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};
SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120};
SWFUpload.CURSOR={ARROW:-1,HAND:-2};
SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};
SWFUpload.completeURL=function(a){if(typeof(a)!=="string"||a.match(/^https?:\/\//i)||a.match(/^\//)){return a
}var c=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");
var b=window.location.pathname.lastIndexOf("/");
if(b<=0){path="/"
}else{path=window.location.pathname.substr(0,b)+"/"
}return path+a
};SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(b,a){this.settings[b]=(this.settings[b]==undefined)?a:this.settings[b]
};this.ensureDefault("upload_url","");
this.ensureDefault("preserve_relative_urls",false);
this.ensureDefault("file_post_name","Filedata");
this.ensureDefault("post_params",{});
this.ensureDefault("use_query_string",false);
this.ensureDefault("requeue_on_error",false);
this.ensureDefault("http_success",[]);
this.ensureDefault("assume_success_timeout",0);
this.ensureDefault("file_types","*.*");
this.ensureDefault("file_types_description","All Files");
this.ensureDefault("file_size_limit",0);
this.ensureDefault("file_upload_limit",0);
this.ensureDefault("file_queue_limit",0);
this.ensureDefault("flash_url","swfupload.swf");
this.ensureDefault("prevent_swf_caching",true);
this.ensureDefault("button_image_url","");
this.ensureDefault("button_width",1);
this.ensureDefault("button_height",1);
this.ensureDefault("button_text","");
this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");
this.ensureDefault("button_text_top_padding",0);
this.ensureDefault("button_text_left_padding",0);
this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);
this.ensureDefault("button_disabled",false);
this.ensureDefault("button_placeholder_id","");
this.ensureDefault("button_placeholder",null);
this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);
this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);
this.ensureDefault("debug",false);
this.settings.debug_enabled=this.settings.debug;
this.settings.return_upload_start_handler=this.returnUploadStart;
this.ensureDefault("swfupload_loaded_handler",null);
this.ensureDefault("file_dialog_start_handler",null);
this.ensureDefault("file_queued_handler",null);
this.ensureDefault("file_queue_error_handler",null);
this.ensureDefault("file_dialog_complete_handler",null);
this.ensureDefault("upload_start_handler",null);
this.ensureDefault("upload_progress_handler",null);
this.ensureDefault("upload_error_handler",null);
this.ensureDefault("upload_success_handler",null);
this.ensureDefault("upload_complete_handler",null);
this.ensureDefault("debug_handler",this.debugMessage);
this.ensureDefault("custom_settings",{});
this.customSettings=this.settings.custom_settings;
if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime()
}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);
this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)
}delete this.ensureDefault
};SWFUpload.prototype.loadFlash=function(){var a,b;
if(document.getElementById(this.movieName)!==null){throw"ID "+this.movieName+" is already in use. The Flash Object could not be added"
}a=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;
if(a==undefined){throw"Could not find the placeholder element: "+this.settings.button_placeholder_id
}b=document.createElement("div");
b.innerHTML=this.getFlashHTML();
a.parentNode.replaceChild(b.firstChild,a);
if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()
}};SWFUpload.prototype.getFlashHTML=function(){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")
};SWFUpload.prototype.getFlashVars=function(){var b=this.buildParamString();
var a=this.settings.http_success.join(",");
return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(a),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",encodeURIComponent(b),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")
};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)
}if(this.movieElement===null){throw"Could not find Flash element"
}return this.movieElement
};SWFUpload.prototype.buildParamString=function(){var c=this.settings.post_params;
var b=[];
if(typeof(c)==="object"){for(var a in c){if(c.hasOwnProperty(a)){b.push(encodeURIComponent(a.toString())+"="+encodeURIComponent(c[a].toString()))
}}}return b.join("&amp;")
};SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,false);
var a=null;
a=this.getMovieElement();
if(a&&typeof(a.CallFunction)==="unknown"){for(var c in a){try{if(typeof(a[c])==="function"){a[c]=null
}}catch(e){}}try{a.parentNode.removeChild(a)
}catch(b){}}window[this.movieName]=null;
SWFUpload.instances[this.movieName]=null;
delete SWFUpload.instances[this.movieName];
this.movieElement=null;
this.settings=null;
this.customSettings=null;
this.eventQueue=null;
this.movieName=null;
return true
}catch(d){return false
}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url:               ",this.settings.upload_url,"\n","\t","flash_url:                ",this.settings.flash_url,"\n","\t","use_query_string:         ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n","\t","http_success:             ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout:   ",this.settings.assume_success_timeout,"\n","\t","file_post_name:           ",this.settings.file_post_name,"\n","\t","post_params:              ",this.settings.post_params.toString(),"\n","\t","file_types:               ",this.settings.file_types,"\n","\t","file_types_description:   ",this.settings.file_types_description,"\n","\t","file_size_limit:          ",this.settings.file_size_limit,"\n","\t","file_upload_limit:        ",this.settings.file_upload_limit,"\n","\t","file_queue_limit:         ",this.settings.file_queue_limit,"\n","\t","debug:                    ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching:      ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder:       ",(this.settings.button_placeholder?"Set":"Not Set"),"\n","\t","button_image_url:         ",this.settings.button_image_url.toString(),"\n","\t","button_width:             ",this.settings.button_width.toString(),"\n","\t","button_height:            ",this.settings.button_height.toString(),"\n","\t","button_text:              ",this.settings.button_text.toString(),"\n","\t","button_text_style:        ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding:  ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action:            ",this.settings.button_action.toString(),"\n","\t","button_disabled:          ",this.settings.button_disabled.toString(),"\n","\t","custom_settings:          ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned:  ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_start_handler assigned:      ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned:             ",(typeof this.settings.debug_handler==="function").toString(),"\n"].join(""))
};SWFUpload.prototype.addSetting=function(b,c,a){if(c==undefined){return(this.settings[b]=a)
}else{return(this.settings[b]=c)
}};SWFUpload.prototype.getSetting=function(a){if(this.settings[a]!=undefined){return this.settings[a]
}return""
};SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];
var movieElement=this.getMovieElement();
var returnValue,returnString;
try{returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>");
returnValue=eval(returnString)
}catch(ex){throw"Call to "+functionName+" failed"
}if(returnValue!=undefined&&typeof returnValue.post==="object"){returnValue=this.unescapeFilePostParams(returnValue)
}return returnValue
};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")
};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")
};SWFUpload.prototype.startUpload=function(a){this.callFlash("StartUpload",[a])
};SWFUpload.prototype.cancelUpload=function(a,b){if(b!==false){b=true
}this.callFlash("CancelUpload",[a,b])
};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")
};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")
};SWFUpload.prototype.setStats=function(a){this.callFlash("SetStats",[a])
};SWFUpload.prototype.getFile=function(a){if(typeof(a)==="number"){return this.callFlash("GetFileByIndex",[a])
}else{return this.callFlash("GetFile",[a])
}};SWFUpload.prototype.addFileParam=function(a,b,c){return this.callFlash("AddFileParam",[a,b,c])
};SWFUpload.prototype.removeFileParam=function(a,b){this.callFlash("RemoveFileParam",[a,b])
};SWFUpload.prototype.setUploadURL=function(a){this.settings.upload_url=a.toString();
this.callFlash("SetUploadURL",[a])
};SWFUpload.prototype.setPostParams=function(a){this.settings.post_params=a;
this.callFlash("SetPostParams",[a])
};SWFUpload.prototype.addPostParam=function(a,b){this.settings.post_params[a]=b;
this.callFlash("SetPostParams",[this.settings.post_params])
};SWFUpload.prototype.removePostParam=function(a){delete this.settings.post_params[a];
this.callFlash("SetPostParams",[this.settings.post_params])
};SWFUpload.prototype.setFileTypes=function(a,b){this.settings.file_types=a;
this.settings.file_types_description=b;
this.callFlash("SetFileTypes",[a,b])
};SWFUpload.prototype.setFileSizeLimit=function(a){this.settings.file_size_limit=a;
this.callFlash("SetFileSizeLimit",[a])
};SWFUpload.prototype.setFileUploadLimit=function(a){this.settings.file_upload_limit=a;
this.callFlash("SetFileUploadLimit",[a])
};SWFUpload.prototype.setFileQueueLimit=function(a){this.settings.file_queue_limit=a;
this.callFlash("SetFileQueueLimit",[a])
};SWFUpload.prototype.setFilePostName=function(a){this.settings.file_post_name=a;
this.callFlash("SetFilePostName",[a])
};SWFUpload.prototype.setUseQueryString=function(a){this.settings.use_query_string=a;
this.callFlash("SetUseQueryString",[a])
};SWFUpload.prototype.setRequeueOnError=function(a){this.settings.requeue_on_error=a;
this.callFlash("SetRequeueOnError",[a])
};SWFUpload.prototype.setHTTPSuccess=function(a){if(typeof a==="string"){a=a.replace(" ","").split(",")
}this.settings.http_success=a;
this.callFlash("SetHTTPSuccess",[a])
};SWFUpload.prototype.setAssumeSuccessTimeout=function(a){this.settings.assume_success_timeout=a;
this.callFlash("SetAssumeSuccessTimeout",[a])
};SWFUpload.prototype.setDebugEnabled=function(a){this.settings.debug_enabled=a;
this.callFlash("SetDebugEnabled",[a])
};SWFUpload.prototype.setButtonImageURL=function(a){if(a==undefined){a=""
}this.settings.button_image_url=a;
this.callFlash("SetButtonImageURL",[a])
};SWFUpload.prototype.setButtonDimensions=function(c,a){this.settings.button_width=c;
this.settings.button_height=a;
var b=this.getMovieElement();
if(b!=undefined){b.style.width=c+"px";
b.style.height=a+"px"
}this.callFlash("SetButtonDimensions",[c,a])
};SWFUpload.prototype.setButtonText=function(a){this.settings.button_text=a;
this.callFlash("SetButtonText",[a])
};SWFUpload.prototype.setButtonTextPadding=function(b,a){this.settings.button_text_top_padding=a;
this.settings.button_text_left_padding=b;
this.callFlash("SetButtonTextPadding",[b,a])
};SWFUpload.prototype.setButtonTextStyle=function(a){this.settings.button_text_style=a;
this.callFlash("SetButtonTextStyle",[a])
};SWFUpload.prototype.setButtonDisabled=function(a){this.settings.button_disabled=a;
this.callFlash("SetButtonDisabled",[a])
};SWFUpload.prototype.setButtonAction=function(a){this.settings.button_action=a;
this.callFlash("SetButtonAction",[a])
};SWFUpload.prototype.setButtonCursor=function(a){this.settings.button_cursor=a;
this.callFlash("SetButtonCursor",[a])
};SWFUpload.prototype.queueEvent=function(b,c){if(c==undefined){c=[]
}else{if(!(c instanceof Array)){c=[c]
}}var a=this;
if(typeof this.settings[b]==="function"){this.eventQueue.push(function(){this.settings[b].apply(this,c)
});setTimeout(function(){a.executeNextEvent()
},0)}else{if(this.settings[b]!==null){throw"Event handler "+b+" is unknown or is not a function"
}}};SWFUpload.prototype.executeNextEvent=function(){var a=this.eventQueue?this.eventQueue.shift():null;
if(typeof(a)==="function"){a.apply(this)
}};SWFUpload.prototype.unescapeFilePostParams=function(c){var e=/[$]([0-9a-f]{4})/i;
var f={};
var d;
if(c!=undefined){for(var a in c.post){if(c.post.hasOwnProperty(a)){d=a;
var b;
while((b=e.exec(d))!==null){d=d.replace(b[0],String.fromCharCode(parseInt("0x"+b[1],16)))
}f[d]=c.post[a]
}}c.post=f
}return c
};SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")
}catch(a){return false
}};SWFUpload.prototype.flashReady=function(){var a=this.getMovieElement();
if(!a){this.debug("Flash called back ready but the flash movie can't be found.");
return
}this.cleanUp(a);
this.queueEvent("swfupload_loaded_handler")
};SWFUpload.prototype.cleanUp=function(a){try{if(this.movieElement&&typeof(a.CallFunction)==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");
for(var c in a){try{if(typeof(a[c])==="function"){a[c]=null
}}catch(b){}}}}catch(d){}window.__flash__removeCallback=function(e,f){try{if(e){e[f]=null
}}catch(g){}}
};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")
};SWFUpload.prototype.fileQueued=function(a){a=this.unescapeFilePostParams(a);
this.queueEvent("file_queued_handler",a)
};SWFUpload.prototype.fileQueueError=function(a,c,b){a=this.unescapeFilePostParams(a);
this.queueEvent("file_queue_error_handler",[a,c,b])
};SWFUpload.prototype.fileDialogComplete=function(b,c,a){this.queueEvent("file_dialog_complete_handler",[b,c,a])
};SWFUpload.prototype.uploadStart=function(a){a=this.unescapeFilePostParams(a);
this.queueEvent("return_upload_start_handler",a)
};SWFUpload.prototype.returnUploadStart=function(a){var b;
if(typeof this.settings.upload_start_handler==="function"){a=this.unescapeFilePostParams(a);
b=this.settings.upload_start_handler.call(this,a)
}else{if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function"
}}if(b===undefined){b=true
}b=!!b;
this.callFlash("ReturnUploadStart",[b])
};SWFUpload.prototype.uploadProgress=function(a,c,b){a=this.unescapeFilePostParams(a);
this.queueEvent("upload_progress_handler",[a,c,b])
};SWFUpload.prototype.uploadError=function(a,c,b){a=this.unescapeFilePostParams(a);
this.queueEvent("upload_error_handler",[a,c,b])
};SWFUpload.prototype.uploadSuccess=function(b,a,c){b=this.unescapeFilePostParams(b);
this.queueEvent("upload_success_handler",[b,a,c])
};SWFUpload.prototype.uploadComplete=function(a){a=this.unescapeFilePostParams(a);
this.queueEvent("upload_complete_handler",a)
};SWFUpload.prototype.debug=function(a){this.queueEvent("debug_handler",a)
};SWFUpload.prototype.debugMessage=function(c){if(this.settings.debug){var a,d=[];
if(typeof c==="object"&&typeof c.name==="string"&&typeof c.message==="string"){for(var b in c){if(c.hasOwnProperty(b)){d.push(b+": "+c[b])
}}a=d.join("\n")||"";
d=a.split("\n");
a="EXCEPTION: "+d.join("\nEXCEPTION: ");
SWFUpload.Console.writeLine(a)
}else{SWFUpload.Console.writeLine(c)
}}};SWFUpload.Console={};
SWFUpload.Console.writeLine=function(d){var b,a;
try{b=document.getElementById("SWFUpload_Console");
if(!b){a=document.createElement("form");
document.getElementsByTagName("body")[0].appendChild(a);
b=document.createElement("textarea");
b.id="SWFUpload_Console";
b.style.fontFamily="monospace";
b.setAttribute("wrap","off");
b.wrap="off";
b.style.overflow="auto";
b.style.width="700px";
b.style.height="350px";
b.style.margin="5px";
a.appendChild(b)
}b.value+=d+"\n";
b.scrollTop=b.scrollHeight-b.clientHeight
}catch(c){alert("Exception: "+c.name+" Message: "+c.message)
}};
/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var E="undefined",s="object",T="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash",S="SWFObjectExprInst",y="onreadystatechange",P=window,k=document,u=navigator,U=false,V=[h],p=[],O=[],J=[],m,R,F,C,K=false,a=false,o,H,n=true,N=function(){var ab=typeof k.getElementById!=E&&typeof k.getElementsByTagName!=E&&typeof k.createElement!=E,ai=u.userAgent.toLowerCase(),Z=u.platform.toLowerCase(),af=Z?/win/.test(Z):/win/.test(ai),ad=Z?/mac/.test(Z):/mac/.test(ai),ag=/webkit/.test(ai)?parseFloat(ai.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,Y=!+"\v1",ah=[0,0,0],ac=null;
if(typeof u.plugins!=E&&typeof u.plugins[T]==s){ac=u.plugins[T].description;
if(ac&&!(typeof u.mimeTypes!=E&&u.mimeTypes[r]&&!u.mimeTypes[r].enabledPlugin)){U=true;
Y=false;
ac=ac.replace(/^.*\s+(\S+\s+\S+$)/,"$1");
ah[0]=parseInt(ac.replace(/^(.*)\..*$/,"$1"),10);
ah[1]=parseInt(ac.replace(/^.*\.(.*)\s.*$/,"$1"),10);
ah[2]=/[a-zA-Z]/.test(ac)?parseInt(ac.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0
}}else{if(typeof P.ActiveXObject!=E){try{var ae=new ActiveXObject(X);
if(ae){ac=ae.GetVariable("$version");
if(ac){Y=true;
ac=ac.split(" ")[1].split(",");
ah=[parseInt(ac[0],10),parseInt(ac[1],10),parseInt(ac[2],10)]
}}}catch(aa){}}}return{w3:ab,pv:ah,wk:ag,ie:Y,win:af,mac:ad}
}(),l=function(){if(!N.w3){return
}if((typeof k.readyState!=E&&k.readyState=="complete")||(typeof k.readyState==E&&(k.getElementsByTagName("body")[0]||k.body))){f()
}if(!K){if(typeof k.addEventListener!=E){k.addEventListener("DOMContentLoaded",f,false)
}if(N.ie&&N.win){k.attachEvent(y,function(){if(k.readyState=="complete"){k.detachEvent(y,arguments.callee);
f()}});
if(P==top){(function(){if(K){return
}try{k.documentElement.doScroll("left")
}catch(Y){setTimeout(arguments.callee,0);
return
}f()})()
}}if(N.wk){(function(){if(K){return
}if(!/loaded|complete/.test(k.readyState)){setTimeout(arguments.callee,0);
return
}f()})()
}t(f)}}();
function f(){if(K){return
}try{var aa=k.getElementsByTagName("body")[0].appendChild(D("span"));
aa.parentNode.removeChild(aa)
}catch(ab){return
}K=true;
var Y=V.length;
for(var Z=0;
Z<Y;Z++){V[Z]()
}}function L(Y){if(K){Y()
}else{V[V.length]=Y
}}function t(Z){if(typeof P.addEventListener!=E){P.addEventListener("load",Z,false)
}else{if(typeof k.addEventListener!=E){k.addEventListener("load",Z,false)
}else{if(typeof P.attachEvent!=E){j(P,"onload",Z)
}else{if(typeof P.onload=="function"){var Y=P.onload;
P.onload=function(){Y();
Z()}}else{P.onload=Z
}}}}}function h(){if(U){W()
}else{I()
}}function W(){var Y=k.getElementsByTagName("body")[0];
var ab=D(s);
ab.setAttribute("type",r);
var aa=Y.appendChild(ab);
if(aa){var Z=0;
(function(){if(typeof aa.GetVariable!=E){var ac=aa.GetVariable("$version");
if(ac){ac=ac.split(" ")[1].split(",");
N.pv=[parseInt(ac[0],10),parseInt(ac[1],10),parseInt(ac[2],10)]
}}else{if(Z<10){Z++;
setTimeout(arguments.callee,10);
return
}}Y.removeChild(ab);
aa=null;
I()})()
}else{I()
}}function I(){var ah=p.length;
if(ah>0){for(var ag=0;
ag<ah;
ag++){var Z=p[ag].id;
var ac=p[ag].callbackFn;
var ab={success:false,id:Z};
if(N.pv[0]>0){var af=c(Z);
if(af){if(G(p[ag].swfVersion)&&!(N.wk&&N.wk<312)){x(Z,true);
if(ac){ab.success=true;
ab.ref=A(Z);
ac(ab)
}}else{if(p[ag].expressInstall&&B()){var aj={};
aj.data=p[ag].expressInstall;
aj.width=af.getAttribute("width")||"0";
aj.height=af.getAttribute("height")||"0";
if(af.getAttribute("class")){aj.styleclass=af.getAttribute("class")
}if(af.getAttribute("align")){aj.align=af.getAttribute("align")
}var ai={};
var Y=af.getElementsByTagName("param");
var ad=Y.length;
for(var ae=0;
ae<ad;
ae++){if(Y[ae].getAttribute("name").toLowerCase()!="movie"){ai[Y[ae].getAttribute("name")]=Y[ae].getAttribute("value")
}}Q(aj,ai,Z,ac)
}else{q(af);
if(ac){ac(ab)
}}}}}else{x(Z,true);
if(ac){var aa=A(Z);
if(aa&&typeof aa.SetVariable!=E){ab.success=true;
ab.ref=aa
}ac(ab)
}}}}}function A(ab){var Y=null;
var Z=c(ab);
if(Z&&Z.nodeName=="OBJECT"){if(typeof Z.SetVariable!=E){Y=Z
}else{var aa=Z.getElementsByTagName(s)[0];
if(aa){Y=aa
}}}return Y
}function B(){return !a&&G("6.0.65")&&(N.win||N.mac)&&!(N.wk&&N.wk<312)
}function Q(ab,ac,Y,aa){a=true;
F=aa||null;
C={success:false,id:Y};
var af=c(Y);
if(af){if(af.nodeName=="OBJECT"){m=g(af);
R=null
}else{m=af;
R=Y}ab.id=S;
if(typeof ab.width==E||(!/%$/.test(ab.width)&&parseInt(ab.width,10)<310)){ab.width="310"
}if(typeof ab.height==E||(!/%$/.test(ab.height)&&parseInt(ab.height,10)<137)){ab.height="137"
}k.title=k.title.slice(0,47)+" - Flash Player Installation";
var ae=N.ie&&N.win?"ActiveX":"PlugIn",ad="MMredirectURL="+P.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ae+"&MMdoctitle="+k.title;
if(typeof ac.flashvars!=E){ac.flashvars+="&"+ad
}else{ac.flashvars=ad
}if(N.ie&&N.win&&af.readyState!=4){var Z=D("div");
Y+="SWFObjectNew";
Z.setAttribute("id",Y);
af.parentNode.insertBefore(Z,af);
af.style.display="none";
(function(){if(af.readyState==4){af.parentNode.removeChild(af)
}else{setTimeout(arguments.callee,10)
}})()}v(ab,ac,Y)
}}function q(Z){if(N.ie&&N.win&&Z.readyState!=4){var Y=D("div");
Z.parentNode.insertBefore(Y,Z);
Y.parentNode.replaceChild(g(Z),Y);
Z.style.display="none";
(function(){if(Z.readyState==4){Z.parentNode.removeChild(Z)
}else{setTimeout(arguments.callee,10)
}})()}else{Z.parentNode.replaceChild(g(Z),Z)
}}function g(ad){var ab=D("div");
if(N.win&&N.ie){ab.innerHTML=ad.innerHTML
}else{var Z=ad.getElementsByTagName(s)[0];
if(Z){var ae=Z.childNodes;
if(ae){var Y=ae.length;
for(var aa=0;
aa<Y;aa++){if(!(ae[aa].nodeType==1&&ae[aa].nodeName=="PARAM")&&!(ae[aa].nodeType==8)){ab.appendChild(ae[aa].cloneNode(true))
}}}}}return ab
}function v(aj,ah,Z){var Y,ab=c(Z);
if(N.wk&&N.wk<312){return Y
}if(ab){if(typeof aj.id==E){aj.id=Z
}if(N.ie&&N.win){var ai="";
for(var af in aj){if(aj[af]!=Object.prototype[af]){if(af.toLowerCase()=="data"){ah.movie=aj[af]
}else{if(af.toLowerCase()=="styleclass"){ai+=' class="'+aj[af]+'"'
}else{if(af.toLowerCase()!="classid"){ai+=" "+af+'="'+aj[af]+'"'
}}}}}var ag="";
for(var ae in ah){if(ah[ae]!=Object.prototype[ae]){ag+='<param name="'+ae+'" value="'+ah[ae]+'" />'
}}ab.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ai+">"+ag+"</object>";
O[O.length]=aj.id;
Y=c(aj.id)
}else{var aa=D(s);
aa.setAttribute("type",r);
for(var ad in aj){if(aj[ad]!=Object.prototype[ad]){if(ad.toLowerCase()=="styleclass"){aa.setAttribute("class",aj[ad])
}else{if(ad.toLowerCase()!="classid"){aa.setAttribute(ad,aj[ad])
}}}}for(var ac in ah){if(ah[ac]!=Object.prototype[ac]&&ac.toLowerCase()!="movie"){e(aa,ac,ah[ac])
}}ab.parentNode.replaceChild(aa,ab);
Y=aa}}return Y
}function e(aa,Y,Z){var ab=D("param");
ab.setAttribute("name",Y);
ab.setAttribute("value",Z);
aa.appendChild(ab)
}function z(Z){var Y=c(Z);
if(Y&&Y.nodeName=="OBJECT"){if(N.ie&&N.win){Y.style.display="none";
(function(){if(Y.readyState==4){b(Z)
}else{setTimeout(arguments.callee,10)
}})()}else{Y.parentNode.removeChild(Y)
}}}function b(aa){var Z=c(aa);
if(Z){for(var Y in Z){if(typeof Z[Y]=="function"){Z[Y]=null
}}Z.parentNode.removeChild(Z)
}}function c(aa){var Y=null;
try{Y=k.getElementById(aa)
}catch(Z){}return Y
}function D(Y){return k.createElement(Y)
}function j(aa,Y,Z){aa.attachEvent(Y,Z);
J[J.length]=[aa,Y,Z]
}function G(aa){var Z=N.pv,Y=aa.split(".");
Y[0]=parseInt(Y[0],10);
Y[1]=parseInt(Y[1],10)||0;
Y[2]=parseInt(Y[2],10)||0;
return(Z[0]>Y[0]||(Z[0]==Y[0]&&Z[1]>Y[1])||(Z[0]==Y[0]&&Z[1]==Y[1]&&Z[2]>=Y[2]))?true:false
}function w(ad,Z,ae,ac){if(N.ie&&N.mac){return
}var ab=k.getElementsByTagName("head")[0];
if(!ab){return
}var Y=(ae&&typeof ae=="string")?ae:"screen";
if(ac){o=null;
H=null
}if(!o||H!=Y){var aa=D("style");
aa.setAttribute("type","text/css");
aa.setAttribute("media",Y);
o=ab.appendChild(aa);
if(N.ie&&N.win&&typeof k.styleSheets!=E&&k.styleSheets.length>0){o=k.styleSheets[k.styleSheets.length-1]
}H=Y}if(N.ie&&N.win){if(o&&typeof o.addRule==s){o.addRule(ad,Z)
}}else{if(o&&typeof k.createTextNode!=E){o.appendChild(k.createTextNode(ad+" {"+Z+"}"))
}}}function x(aa,Y){if(!n){return
}var Z=Y?"visible":"hidden";
if(K&&c(aa)){c(aa).style.visibility=Z
}else{w("#"+aa,"visibility:"+Z)
}}function M(Z){var aa=/[\\\"<>\.;]/;
var Y=aa.exec(Z)!=null;
return Y&&typeof encodeURIComponent!=E?encodeURIComponent(Z):Z
}var d=function(){if(N.ie&&N.win){window.attachEvent("onunload",function(){var ad=J.length;
for(var ac=0;
ac<ad;
ac++){J[ac][0].detachEvent(J[ac][1],J[ac][2])
}var aa=O.length;
for(var ab=0;
ab<aa;
ab++){z(O[ab])
}for(var Z in N){N[Z]=null
}N=null;
for(var Y in swfobject){swfobject[Y]=null
}swfobject=null
})}}();
return{registerObject:function(ac,Y,ab,aa){if(N.w3&&ac&&Y){var Z={};
Z.id=ac;
Z.swfVersion=Y;
Z.expressInstall=ab;
Z.callbackFn=aa;
p[p.length]=Z;
x(ac,false)
}else{if(aa){aa({success:false,id:ac})
}}},getObjectById:function(Y){if(N.w3){return A(Y)
}},embedSWF:function(ac,ai,af,ah,Z,ab,aa,ae,ag,ad){var Y={success:false,id:ai};
if(N.w3&&!(N.wk&&N.wk<312)&&ac&&ai&&af&&ah&&Z){x(ai,false);
L(function(){af+="";
ah+="";
var ak={};
if(ag&&typeof ag===s){for(var am in ag){ak[am]=ag[am]
}}ak.data=ac;
ak.width=af;
ak.height=ah;
var an={};
if(ae&&typeof ae===s){for(var al in ae){an[al]=ae[al]
}}if(aa&&typeof aa===s){for(var aj in aa){if(typeof an.flashvars!=E){an.flashvars+="&"+aj+"="+aa[aj]
}else{an.flashvars=aj+"="+aa[aj]
}}}if(G(Z)){var ao=v(ak,an,ai);
if(ak.id==ai){x(ai,true)
}Y.success=true;
Y.ref=ao
}else{if(ab&&B()){ak.data=ab;
Q(ak,an,ai,ad);
return
}else{x(ai,true)
}}if(ad){ad(Y)
}})}else{if(ad){ad(Y)
}}},switchOffAutoHideShow:function(){n=false
},ua:N,getFlashPlayerVersion:function(){return{major:N.pv[0],minor:N.pv[1],release:N.pv[2]}
},hasFlashPlayerVersion:G,createSWF:function(aa,Z,Y){if(N.w3){return v(aa,Z,Y)
}else{return undefined
}},showExpressInstall:function(aa,ab,Y,Z){if(N.w3&&B()){Q(aa,ab,Y,Z)
}},removeSWF:function(Y){if(N.w3){z(Y)
}},createCSS:function(ab,aa,Z,Y){if(N.w3){w(ab,aa,Z,Y)
}},addDomLoadEvent:L,addLoadEvent:t,getQueryParamValue:function(ab){var aa=k.location.search||k.location.hash;
if(aa){if(/\?/.test(aa)){aa=aa.split("?")[1]
}if(ab==null){return M(aa)
}var Z=aa.split("&");
for(var Y=0;
Y<Z.length;
Y++){if(Z[Y].substring(0,Z[Y].indexOf("="))==ab){return M(Z[Y].substring((Z[Y].indexOf("=")+1)))
}}}return""
},expressInstallCallback:function(){if(a){var Y=c(S);
if(Y&&m){Y.parentNode.replaceChild(m,Y);
if(R){x(R,true);
if(N.ie&&N.win){m.style.display="block"
}}if(F){F(C)
}}a=false
}}}}();
/*!
 * jQuery JavaScript Library v1.6.4
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Sep 12 18:54:48 2011 -0400
 */
(function(a8,L){var aq=a8.document,br=a8.navigator,bi=a8.location;
var b=(function(){var bC=function(bY,bZ){return new bC.fn.init(bY,bZ,bA)
},bS=a8.jQuery,bE=a8.$,bA,bW=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bK=/\S/,bG=/^\s+/,bB=/\s+$/,bF=/\d/,bx=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bL=/^[\],:{}\s]*$/,bU=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bN=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bH=/(?:^|:|,)(?:\s*\[)+/g,bv=/(webkit)[ \/]([\w.]+)/,bP=/(opera)(?:.*version)?[ \/]([\w.]+)/,bO=/(msie) ([\w.]+)/,bQ=/(mozilla)(?:.*? rv:([\w.]+))?/,by=/-([a-z]|[0-9])/ig,bX=/^-ms-/,bR=function(bY,bZ){return(bZ+"").toUpperCase()
},bV=br.userAgent,bT,bz,e,bJ=Object.prototype.toString,bD=Object.prototype.hasOwnProperty,bw=Array.prototype.push,bI=Array.prototype.slice,bM=String.prototype.trim,bs=Array.prototype.indexOf,bu={};
bC.fn=bC.prototype={constructor:bC,init:function(bY,b2,b1){var b0,b3,bZ,b4;
if(!bY){return this
}if(bY.nodeType){this.context=this[0]=bY;
this.length=1;
return this
}if(bY==="body"&&!b2&&aq.body){this.context=aq;
this[0]=aq.body;
this.selector=bY;
this.length=1;
return this
}if(typeof bY==="string"){if(bY.charAt(0)==="<"&&bY.charAt(bY.length-1)===">"&&bY.length>=3){b0=[null,bY,null]
}else{b0=bW.exec(bY)
}if(b0&&(b0[1]||!b2)){if(b0[1]){b2=b2 instanceof bC?b2[0]:b2;
b4=(b2?b2.ownerDocument||b2:aq);
bZ=bx.exec(bY);
if(bZ){if(bC.isPlainObject(b2)){bY=[aq.createElement(bZ[1])];
bC.fn.attr.call(bY,b2,true)
}else{bY=[b4.createElement(bZ[1])]
}}else{bZ=bC.buildFragment([b0[1]],[b4]);
bY=(bZ.cacheable?bC.clone(bZ.fragment):bZ.fragment).childNodes
}return bC.merge(this,bY)
}else{b3=aq.getElementById(b0[2]);
if(b3&&b3.parentNode){if(b3.id!==b0[2]){return b1.find(bY)
}this.length=1;
this[0]=b3
}this.context=aq;
this.selector=bY;
return this
}}else{if(!b2||b2.jquery){return(b2||b1).find(bY)
}else{return this.constructor(b2).find(bY)
}}}else{if(bC.isFunction(bY)){return b1.ready(bY)
}}if(bY.selector!==L){this.selector=bY.selector;
this.context=bY.context
}return bC.makeArray(bY,this)
},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length
},toArray:function(){return bI.call(this,0)
},get:function(bY){return bY==null?this.toArray():(bY<0?this[this.length+bY]:this[bY])
},pushStack:function(bZ,b1,bY){var b0=this.constructor();
if(bC.isArray(bZ)){bw.apply(b0,bZ)
}else{bC.merge(b0,bZ)
}b0.prevObject=this;
b0.context=this.context;
if(b1==="find"){b0.selector=this.selector+(this.selector?" ":"")+bY
}else{if(b1){b0.selector=this.selector+"."+b1+"("+bY+")"
}}return b0
},each:function(bZ,bY){return bC.each(this,bZ,bY)
},ready:function(bY){bC.bindReady();
bz.done(bY);
return this
},eq:function(bY){return bY===-1?this.slice(bY):this.slice(bY,+bY+1)
},first:function(){return this.eq(0)
},last:function(){return this.eq(-1)
},slice:function(){return this.pushStack(bI.apply(this,arguments),"slice",bI.call(arguments).join(","))
},map:function(bY){return this.pushStack(bC.map(this,function(b0,bZ){return bY.call(b0,bZ,b0)
}))},end:function(){return this.prevObject||this.constructor(null)
},push:bw,sort:[].sort,splice:[].splice};
bC.fn.init.prototype=bC.fn;
bC.extend=bC.fn.extend=function(){var b7,b0,bY,bZ,b4,b5,b3=arguments[0]||{},b2=1,b1=arguments.length,b6=false;
if(typeof b3==="boolean"){b6=b3;
b3=arguments[1]||{};
b2=2}if(typeof b3!=="object"&&!bC.isFunction(b3)){b3={}
}if(b1===b2){b3=this;
--b2}for(;
b2<b1;
b2++){if((b7=arguments[b2])!=null){for(b0 in b7){bY=b3[b0];
bZ=b7[b0];
if(b3===bZ){continue
}if(b6&&bZ&&(bC.isPlainObject(bZ)||(b4=bC.isArray(bZ)))){if(b4){b4=false;
b5=bY&&bC.isArray(bY)?bY:[]
}else{b5=bY&&bC.isPlainObject(bY)?bY:{}
}b3[b0]=bC.extend(b6,b5,bZ)
}else{if(bZ!==L){b3[b0]=bZ
}}}}}return b3
};bC.extend({noConflict:function(bY){if(a8.$===bC){a8.$=bE
}if(bY&&a8.jQuery===bC){a8.jQuery=bS
}return bC
},isReady:false,readyWait:1,holdReady:function(bY){if(bY){bC.readyWait++
}else{bC.ready(true)
}},ready:function(bY){if((bY===true&&!--bC.readyWait)||(bY!==true&&!bC.isReady)){if(!aq.body){return setTimeout(bC.ready,1)
}bC.isReady=true;
if(bY!==true&&--bC.readyWait>0){return
}bz.resolveWith(aq,[bC]);
if(bC.fn.trigger){bC(aq).trigger("ready").unbind("ready")
}}},bindReady:function(){if(bz){return
}bz=bC._Deferred();
if(aq.readyState==="complete"){return setTimeout(bC.ready,1)
}if(aq.addEventListener){aq.addEventListener("DOMContentLoaded",e,false);
a8.addEventListener("load",bC.ready,false)
}else{if(aq.attachEvent){aq.attachEvent("onreadystatechange",e);
a8.attachEvent("onload",bC.ready);
var bY=false;
try{bY=a8.frameElement==null
}catch(bZ){}if(aq.documentElement.doScroll&&bY){bt()
}}}},isFunction:function(bY){return bC.type(bY)==="function"
},isArray:Array.isArray||function(bY){return bC.type(bY)==="array"
},isWindow:function(bY){return bY&&typeof bY==="object"&&"setInterval" in bY
},isNaN:function(bY){return bY==null||!bF.test(bY)||isNaN(bY)
},type:function(bY){return bY==null?String(bY):bu[bJ.call(bY)]||"object"
},isPlainObject:function(b0){if(!b0||bC.type(b0)!=="object"||b0.nodeType||bC.isWindow(b0)){return false
}try{if(b0.constructor&&!bD.call(b0,"constructor")&&!bD.call(b0.constructor.prototype,"isPrototypeOf")){return false
}}catch(bZ){return false
}var bY;
for(bY in b0){}return bY===L||bD.call(b0,bY)
},isEmptyObject:function(bZ){for(var bY in bZ){return false
}return true
},error:function(bY){throw bY
},parseJSON:function(bY){if(typeof bY!=="string"||!bY){return null
}bY=bC.trim(bY);
if(a8.JSON&&a8.JSON.parse){return a8.JSON.parse(bY)
}if(bL.test(bY.replace(bU,"@").replace(bN,"]").replace(bH,""))){return(new Function("return "+bY))()
}bC.error("Invalid JSON: "+bY)
},parseXML:function(b0){var bY,bZ;
try{if(a8.DOMParser){bZ=new DOMParser();
bY=bZ.parseFromString(b0,"text/xml")
}else{bY=new ActiveXObject("Microsoft.XMLDOM");
bY.async="false";
bY.loadXML(b0)
}}catch(b1){bY=L
}if(!bY||!bY.documentElement||bY.getElementsByTagName("parsererror").length){bC.error("Invalid XML: "+b0)
}return bY
},noop:function(){},globalEval:function(bY){if(bY&&bK.test(bY)){(a8.execScript||function(bZ){a8["eval"].call(a8,bZ)
})(bY)
}},camelCase:function(bY){return bY.replace(bX,"ms-").replace(by,bR)
},nodeName:function(bZ,bY){return bZ.nodeName&&bZ.nodeName.toUpperCase()===bY.toUpperCase()
},each:function(b1,b4,b0){var bZ,b2=0,b3=b1.length,bY=b3===L||bC.isFunction(b1);
if(b0){if(bY){for(bZ in b1){if(b4.apply(b1[bZ],b0)===false){break
}}}else{for(;
b2<b3;
){if(b4.apply(b1[b2++],b0)===false){break
}}}}else{if(bY){for(bZ in b1){if(b4.call(b1[bZ],bZ,b1[bZ])===false){break
}}}else{for(;
b2<b3;
){if(b4.call(b1[b2],b2,b1[b2++])===false){break
}}}}return b1
},trim:bM?function(bY){return bY==null?"":bM.call(bY)
}:function(bY){return bY==null?"":bY.toString().replace(bG,"").replace(bB,"")
},makeArray:function(b1,bZ){var bY=bZ||[];
if(b1!=null){var b0=bC.type(b1);
if(b1.length==null||b0==="string"||b0==="function"||b0==="regexp"||bC.isWindow(b1)){bw.call(bY,b1)
}else{bC.merge(bY,b1)
}}return bY
},inArray:function(b0,b1){if(!b1){return -1
}if(bs){return bs.call(b1,b0)
}for(var bY=0,bZ=b1.length;
bY<bZ;
bY++){if(b1[bY]===b0){return bY
}}return -1
},merge:function(b2,b0){var b1=b2.length,bZ=0;
if(typeof b0.length==="number"){for(var bY=b0.length;
bZ<bY;
bZ++){b2[b1++]=b0[bZ]
}}else{while(b0[bZ]!==L){b2[b1++]=b0[bZ++]
}}b2.length=b1;
return b2
},grep:function(bZ,b4,bY){var b0=[],b3;
bY=!!bY;
for(var b1=0,b2=bZ.length;
b1<b2;
b1++){b3=!!b4(bZ[b1],b1);
if(bY!==b3){b0.push(bZ[b1])
}}return b0
},map:function(bY,b5,b6){var b3,b4,b2=[],b0=0,bZ=bY.length,b1=bY instanceof bC||bZ!==L&&typeof bZ==="number"&&((bZ>0&&bY[0]&&bY[bZ-1])||bZ===0||bC.isArray(bY));
if(b1){for(;
b0<bZ;
b0++){b3=b5(bY[b0],b0,b6);
if(b3!=null){b2[b2.length]=b3
}}}else{for(b4 in bY){b3=b5(bY[b4],b4,b6);
if(b3!=null){b2[b2.length]=b3
}}}return b2.concat.apply([],b2)
},guid:1,proxy:function(b2,b1){if(typeof b1==="string"){var b0=b2[b1];
b1=b2;
b2=b0}if(!bC.isFunction(b2)){return L
}var bY=bI.call(arguments,2),bZ=function(){return b2.apply(b1,bY.concat(bI.call(arguments)))
};bZ.guid=b2.guid=b2.guid||bZ.guid||bC.guid++;
return bZ
},access:function(bY,b6,b4,b0,b3,b5){var bZ=bY.length;
if(typeof b6==="object"){for(var b1 in b6){bC.access(bY,b1,b6[b1],b0,b3,b4)
}return bY
}if(b4!==L){b0=!b5&&b0&&bC.isFunction(b4);
for(var b2=0;
b2<bZ;
b2++){b3(bY[b2],b6,b0?b4.call(bY[b2],b2,b3(bY[b2],b6)):b4,b5)
}return bY
}return bZ?b3(bY[0],b6):L
},now:function(){return(new Date()).getTime()
},uaMatch:function(bZ){bZ=bZ.toLowerCase();
var bY=bv.exec(bZ)||bP.exec(bZ)||bO.exec(bZ)||bZ.indexOf("compatible")<0&&bQ.exec(bZ)||[];
return{browser:bY[1]||"",version:bY[2]||"0"}
},sub:function(){function bY(b1,b2){return new bY.fn.init(b1,b2)
}bC.extend(true,bY,this);
bY.superclass=this;
bY.fn=bY.prototype=this();
bY.fn.constructor=bY;
bY.sub=this.sub;
bY.fn.init=function b0(b1,b2){if(b2&&b2 instanceof bC&&!(b2 instanceof bY)){b2=bY(b2)
}return bC.fn.init.call(this,b1,b2,bZ)
};bY.fn.init.prototype=bY.fn;
var bZ=bY(aq);
return bY
},browser:{}});
bC.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bZ,bY){bu["[object "+bY+"]"]=bY.toLowerCase()
});bT=bC.uaMatch(bV);
if(bT.browser){bC.browser[bT.browser]=true;
bC.browser.version=bT.version
}if(bC.browser.webkit){bC.browser.safari=true
}if(bK.test("\xA0")){bG=/^[\s\xA0]+/;
bB=/[\s\xA0]+$/
}bA=bC(aq);
if(aq.addEventListener){e=function(){aq.removeEventListener("DOMContentLoaded",e,false);
bC.ready()
}}else{if(aq.attachEvent){e=function(){if(aq.readyState==="complete"){aq.detachEvent("onreadystatechange",e);
bC.ready()
}}}}function bt(){if(bC.isReady){return
}try{aq.documentElement.doScroll("left")
}catch(bY){setTimeout(bt,1);
return
}bC.ready()
}return bC
})();var a="done fail isResolved isRejected promise then always pipe".split(" "),aF=[].slice;
b.extend({_Deferred:function(){var bu=[],bv,bs,bt,e={done:function(){if(!bt){var bx=arguments,by,bB,bA,bz,bw;
if(bv){bw=bv;
bv=0}for(by=0,bB=bx.length;
by<bB;
by++){bA=bx[by];
bz=b.type(bA);
if(bz==="array"){e.done.apply(e,bA)
}else{if(bz==="function"){bu.push(bA)
}}}if(bw){e.resolveWith(bw[0],bw[1])
}}return this
},resolveWith:function(bx,bw){if(!bt&&!bv&&!bs){bw=bw||[];
bs=1;try{while(bu[0]){bu.shift().apply(bx,bw)
}}finally{bv=[bx,bw];
bs=0}}return this
},resolve:function(){e.resolveWith(this,arguments);
return this
},isResolved:function(){return !!(bs||bv)
},cancel:function(){bt=1;
bu=[];
return this
}};return e
},Deferred:function(bs){var e=b._Deferred(),bu=b._Deferred(),bt;
b.extend(e,{then:function(bw,bv){e.done(bw).fail(bv);
return this
},always:function(){return e.done.apply(e,arguments).fail.apply(this,arguments)
},fail:bu.done,rejectWith:bu.resolveWith,reject:bu.resolve,isRejected:bu.isResolved,pipe:function(bw,bv){return b.Deferred(function(bx){b.each({done:[bw,"resolve"],fail:[bv,"reject"]},function(bz,bC){var by=bC[0],bB=bC[1],bA;
if(b.isFunction(by)){e[bz](function(){bA=by.apply(this,arguments);
if(bA&&b.isFunction(bA.promise)){bA.promise().then(bx.resolve,bx.reject)
}else{bx[bB+"With"](this===e?bx:this,[bA])
}})}else{e[bz](bx[bB])
}})}).promise()
},promise:function(bw){if(bw==null){if(bt){return bt
}bt=bw={}
}var bv=a.length;
while(bv--){bw[a[bv]]=e[a[bv]]
}return bw
}});e.done(bu.cancel).fail(e.cancel);
delete e.cancel;
if(bs){bs.call(e,e)
}return e
},when:function(bx){var bs=arguments,bt=0,bw=bs.length,bv=bw,e=bw<=1&&bx&&b.isFunction(bx.promise)?bx:b.Deferred();
function bu(by){return function(bz){bs[by]=arguments.length>1?aF.call(arguments,0):bz;
if(!(--bv)){e.resolveWith(e,aF.call(bs,0))
}}}if(bw>1){for(;
bt<bw;
bt++){if(bs[bt]&&b.isFunction(bs[bt].promise)){bs[bt].promise().then(bu(bt),e.reject)
}else{--bv
}}if(!bv){e.resolveWith(e,bs)
}}else{if(e!==bx){e.resolveWith(e,bw?[bx]:[])
}}return e.promise()
}});b.support=(function(){var bC=aq.createElement("div"),bJ=aq.documentElement,bv,bK,bD,bt,bB,bw,bz,bs,bA,bE,by,bI,bG,bu,bx,bF,bL;
bC.setAttribute("className","t");
bC.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
bv=bC.getElementsByTagName("*");
bK=bC.getElementsByTagName("a")[0];
if(!bv||!bv.length||!bK){return{}
}bD=aq.createElement("select");
bt=bD.appendChild(aq.createElement("option"));
bB=bC.getElementsByTagName("input")[0];
bz={leadingWhitespace:(bC.firstChild.nodeType===3),tbody:!bC.getElementsByTagName("tbody").length,htmlSerialize:!!bC.getElementsByTagName("link").length,style:/top/.test(bK.getAttribute("style")),hrefNormalized:(bK.getAttribute("href")==="/a"),opacity:/^0.55$/.test(bK.style.opacity),cssFloat:!!bK.style.cssFloat,checkOn:(bB.value==="on"),optSelected:bt.selected,getSetAttribute:bC.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};
bB.checked=true;
bz.noCloneChecked=bB.cloneNode(true).checked;
bD.disabled=true;
bz.optDisabled=!bt.disabled;
try{delete bC.test
}catch(bH){bz.deleteExpando=false
}if(!bC.addEventListener&&bC.attachEvent&&bC.fireEvent){bC.attachEvent("onclick",function(){bz.noCloneEvent=false
});bC.cloneNode(true).fireEvent("onclick")
}bB=aq.createElement("input");
bB.value="t";
bB.setAttribute("type","radio");
bz.radioValue=bB.value==="t";
bB.setAttribute("checked","checked");
bC.appendChild(bB);
bs=aq.createDocumentFragment();
bs.appendChild(bC.firstChild);
bz.checkClone=bs.cloneNode(true).cloneNode(true).lastChild.checked;
bC.innerHTML="";
bC.style.width=bC.style.paddingLeft="1px";
bA=aq.getElementsByTagName("body")[0];
by=aq.createElement(bA?"div":"body");
bI={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};
if(bA){b.extend(bI,{position:"absolute",left:"-1000px",top:"-1000px"})
}for(bF in bI){by.style[bF]=bI[bF]
}by.appendChild(bC);
bE=bA||bJ;
bE.insertBefore(by,bE.firstChild);
bz.appendChecked=bB.checked;
bz.boxModel=bC.offsetWidth===2;
if("zoom" in bC.style){bC.style.display="inline";
bC.style.zoom=1;
bz.inlineBlockNeedsLayout=(bC.offsetWidth===2);
bC.style.display="";
bC.innerHTML="<div style='width:4px;'></div>";
bz.shrinkWrapBlocks=(bC.offsetWidth!==2)
}bC.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
bG=bC.getElementsByTagName("td");
bL=(bG[0].offsetHeight===0);
bG[0].style.display="";
bG[1].style.display="none";
bz.reliableHiddenOffsets=bL&&(bG[0].offsetHeight===0);
bC.innerHTML="";
if(aq.defaultView&&aq.defaultView.getComputedStyle){bw=aq.createElement("div");
bw.style.width="0";
bw.style.marginRight="0";
bC.appendChild(bw);
bz.reliableMarginRight=(parseInt((aq.defaultView.getComputedStyle(bw,null)||{marginRight:0}).marginRight,10)||0)===0
}by.innerHTML="";
bE.removeChild(by);
if(bC.attachEvent){for(bF in {submit:1,change:1,focusin:1}){bx="on"+bF;
bL=(bx in bC);
if(!bL){bC.setAttribute(bx,"return;");
bL=(typeof bC[bx]==="function")
}bz[bF+"Bubbles"]=bL
}}by=bs=bD=bt=bA=bw=bC=bB=null;
return bz
})();b.boxModel=b.support.boxModel;
var aM=/^(?:\{.*\}|\[.*\])$/,aw=/([A-Z])/g;
b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];
return !!e&&!T(e)
},data:function(bu,bs,bw,bv){if(!b.acceptData(bu)){return
}var bx,bz,bA=b.expando,by=typeof bs==="string",bB=bu.nodeType,e=bB?b.cache:bu,bt=bB?bu[b.expando]:bu[b.expando]&&b.expando;
if((!bt||(bv&&bt&&(e[bt]&&!e[bt][bA])))&&by&&bw===L){return
}if(!bt){if(bB){bu[b.expando]=bt=++b.uuid
}else{bt=b.expando
}}if(!e[bt]){e[bt]={};
if(!bB){e[bt].toJSON=b.noop
}}if(typeof bs==="object"||typeof bs==="function"){if(bv){e[bt][bA]=b.extend(e[bt][bA],bs)
}else{e[bt]=b.extend(e[bt],bs)
}}bx=e[bt];
if(bv){if(!bx[bA]){bx[bA]={}
}bx=bx[bA]
}if(bw!==L){bx[b.camelCase(bs)]=bw
}if(bs==="events"&&!bx[bs]){return bx[bA]&&bx[bA].events
}if(by){bz=bx[bs];
if(bz==null){bz=bx[b.camelCase(bs)]
}}else{bz=bx
}return bz
},removeData:function(bv,bt,bw){if(!b.acceptData(bv)){return
}var bx,by=b.expando,bz=bv.nodeType,bs=bz?b.cache:bv,bu=bz?bv[b.expando]:b.expando;
if(!bs[bu]){return
}if(bt){bx=bw?bs[bu][by]:bs[bu];
if(bx){if(!bx[bt]){bt=b.camelCase(bt)
}delete bx[bt];
if(!T(bx)){return
}}}if(bw){delete bs[bu][by];
if(!T(bs[bu])){return
}}var e=bs[bu][by];
if(b.support.deleteExpando||!bs.setInterval){delete bs[bu]
}else{bs[bu]=null
}if(e){bs[bu]={};
if(!bz){bs[bu].toJSON=b.noop
}bs[bu][by]=e
}else{if(bz){if(b.support.deleteExpando){delete bv[b.expando]
}else{if(bv.removeAttribute){bv.removeAttribute(b.expando)
}else{bv[b.expando]=null
}}}}},_data:function(bs,e,bt){return b.data(bs,e,bt,true)
},acceptData:function(bs){if(bs.nodeName){var e=b.noData[bs.nodeName.toLowerCase()];
if(e){return !(e===true||bs.getAttribute("classid")!==e)
}}return true
}});b.fn.extend({data:function(bv,bx){var bw=null;
if(typeof bv==="undefined"){if(this.length){bw=b.data(this[0]);
if(this[0].nodeType===1){var e=this[0].attributes,bt;
for(var bu=0,bs=e.length;
bu<bs;
bu++){bt=e[bu].name;
if(bt.indexOf("data-")===0){bt=b.camelCase(bt.substring(5));
a2(this[0],bt,bw[bt])
}}}}return bw
}else{if(typeof bv==="object"){return this.each(function(){b.data(this,bv)
})}}var by=bv.split(".");
by[1]=by[1]?"."+by[1]:"";
if(bx===L){bw=this.triggerHandler("getData"+by[1]+"!",[by[0]]);
if(bw===L&&this.length){bw=b.data(this[0],bv);
bw=a2(this[0],bv,bw)
}return bw===L&&by[1]?this.data(by[0]):bw
}else{return this.each(function(){var bA=b(this),bz=[by[0],bx];
bA.triggerHandler("setData"+by[1]+"!",bz);
b.data(this,bv,bx);
bA.triggerHandler("changeData"+by[1]+"!",bz)
})}},removeData:function(e){return this.each(function(){b.removeData(this,e)
})}});
function a2(bu,bt,bv){if(bv===L&&bu.nodeType===1){var bs="data-"+bt.replace(aw,"-$1").toLowerCase();
bv=bu.getAttribute(bs);
if(typeof bv==="string"){try{bv=bv==="true"?true:bv==="false"?false:bv==="null"?null:!b.isNaN(bv)?parseFloat(bv):aM.test(bv)?b.parseJSON(bv):bv
}catch(bw){}b.data(bu,bt,bv)
}else{bv=L
}}return bv
}function T(bs){for(var e in bs){if(e!=="toJSON"){return false
}}return true
}function be(bv,bu,bx){var bt=bu+"defer",bs=bu+"queue",e=bu+"mark",bw=b.data(bv,bt,L,true);
if(bw&&(bx==="queue"||!b.data(bv,bs,L,true))&&(bx==="mark"||!b.data(bv,e,L,true))){setTimeout(function(){if(!b.data(bv,bs,L,true)&&!b.data(bv,e,L,true)){b.removeData(bv,bt,true);
bw.resolve()
}},0)}}b.extend({_mark:function(bs,e){if(bs){e=(e||"fx")+"mark";
b.data(bs,e,(b.data(bs,e,L,true)||0)+1,true)
}},_unmark:function(bv,bu,bs){if(bv!==true){bs=bu;
bu=bv;
bv=false
}if(bu){bs=bs||"fx";
var e=bs+"mark",bt=bv?0:((b.data(bu,e,L,true)||1)-1);
if(bt){b.data(bu,e,bt,true)
}else{b.removeData(bu,e,true);
be(bu,bs,"mark")
}}},queue:function(bs,e,bu){if(bs){e=(e||"fx")+"queue";
var bt=b.data(bs,e,L,true);
if(bu){if(!bt||b.isArray(bu)){bt=b.data(bs,e,b.makeArray(bu),true)
}else{bt.push(bu)
}}return bt||[]
}},dequeue:function(bu,bt){bt=bt||"fx";
var e=b.queue(bu,bt),bs=e.shift(),bv;
if(bs==="inprogress"){bs=e.shift()
}if(bs){if(bt==="fx"){e.unshift("inprogress")
}bs.call(bu,function(){b.dequeue(bu,bt)
})}if(!e.length){b.removeData(bu,bt+"queue",true);
be(bu,bt,"queue")
}}});b.fn.extend({queue:function(e,bs){if(typeof e!=="string"){bs=e;
e="fx"
}if(bs===L){return b.queue(this[0],e)
}return this.each(function(){var bt=b.queue(this,e,bs);
if(e==="fx"&&bt[0]!=="inprogress"){b.dequeue(this,e)
}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)
})},delay:function(bs,e){bs=b.fx?b.fx.speeds[bs]||bs:bs;
e=e||"fx";
return this.queue(e,function(){var bt=this;
setTimeout(function(){b.dequeue(bt,e)
},bs)})
},clearQueue:function(e){return this.queue(e||"fx",[])
},promise:function(bA,bt){if(typeof bA!=="string"){bt=bA;
bA=L}bA=bA||"fx";
var e=b.Deferred(),bs=this,bv=bs.length,by=1,bw=bA+"defer",bx=bA+"queue",bz=bA+"mark",bu;
function bB(){if(!(--by)){e.resolveWith(bs,[bs])
}}while(bv--){if((bu=b.data(bs[bv],bw,L,true)||(b.data(bs[bv],bx,L,true)||b.data(bs[bv],bz,L,true))&&b.data(bs[bv],bw,b._Deferred(),true))){by++;
bu.done(bB)
}}bB();
return e.promise()
}});var aK=/[\n\t\r]/g,ac=/\s+/,aO=/\r/g,g=/^(?:button|input)$/i,E=/^(?:button|input|object|select|textarea)$/i,m=/^a(?:rea)?$/i,ak=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,bb,aV;
b.fn.extend({attr:function(e,bs){return b.access(this,e,bs,true,b.attr)
},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)
})},prop:function(e,bs){return b.access(this,e,bs,true,b.prop)
},removeProp:function(e){e=b.propFix[e]||e;
return this.each(function(){try{this[e]=L;
delete this[e]
}catch(bs){}})
},addClass:function(bv){var bx,bt,bs,bu,bw,by,e;
if(b.isFunction(bv)){return this.each(function(bz){b(this).addClass(bv.call(this,bz,this.className))
})}if(bv&&typeof bv==="string"){bx=bv.split(ac);
for(bt=0,bs=this.length;
bt<bs;
bt++){bu=this[bt];
if(bu.nodeType===1){if(!bu.className&&bx.length===1){bu.className=bv
}else{bw=" "+bu.className+" ";
for(by=0,e=bx.length;
by<e;by++){if(!~bw.indexOf(" "+bx[by]+" ")){bw+=bx[by]+" "
}}bu.className=b.trim(bw)
}}}}return this
},removeClass:function(bw){var bx,bt,bs,bv,bu,by,e;
if(b.isFunction(bw)){return this.each(function(bz){b(this).removeClass(bw.call(this,bz,this.className))
})}if((bw&&typeof bw==="string")||bw===L){bx=(bw||"").split(ac);
for(bt=0,bs=this.length;
bt<bs;
bt++){bv=this[bt];
if(bv.nodeType===1&&bv.className){if(bw){bu=(" "+bv.className+" ").replace(aK," ");
for(by=0,e=bx.length;
by<e;by++){bu=bu.replace(" "+bx[by]+" "," ")
}bv.className=b.trim(bu)
}else{bv.className=""
}}}}return this
},toggleClass:function(bu,bs){var bt=typeof bu,e=typeof bs==="boolean";
if(b.isFunction(bu)){return this.each(function(bv){b(this).toggleClass(bu.call(this,bv,this.className,bs),bs)
})}return this.each(function(){if(bt==="string"){var bx,bw=0,bv=b(this),by=bs,bz=bu.split(ac);
while((bx=bz[bw++])){by=e?by:!bv.hasClass(bx);
bv[by?"addClass":"removeClass"](bx)
}}else{if(bt==="undefined"||bt==="boolean"){if(this.className){b._data(this,"__className__",this.className)
}this.className=this.className||bu===false?"":b._data(this,"__className__")||""
}}})},hasClass:function(e){var bu=" "+e+" ";
for(var bt=0,bs=this.length;
bt<bs;
bt++){if(this[bt].nodeType===1&&(" "+this[bt].className+" ").replace(aK," ").indexOf(bu)>-1){return true
}}return false
},val:function(bu){var e,bs,bt=this[0];
if(!arguments.length){if(bt){e=b.valHooks[bt.nodeName.toLowerCase()]||b.valHooks[bt.type];
if(e&&"get" in e&&(bs=e.get(bt,"value"))!==L){return bs
}bs=bt.value;
return typeof bs==="string"?bs.replace(aO,""):bs==null?"":bs
}return L
}var bv=b.isFunction(bu);
return this.each(function(bx){var bw=b(this),by;
if(this.nodeType!==1){return
}if(bv){by=bu.call(this,bx,bw.val())
}else{by=bu
}if(by==null){by=""
}else{if(typeof by==="number"){by+=""
}else{if(b.isArray(by)){by=b.map(by,function(bz){return bz==null?"":bz+""
})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];
if(!e||!("set" in e)||e.set(this,by,"value")===L){this.value=by
}})}});
b.extend({valHooks:{option:{get:function(e){var bs=e.attributes.value;
return !bs||bs.specified?e.value:e.text
}},select:{get:function(e){var bx,bv=e.selectedIndex,by=[],bz=e.options,bu=e.type==="select-one";
if(bv<0){return null
}for(var bs=bu?bv:0,bw=bu?bv+1:bz.length;
bs<bw;
bs++){var bt=bz[bs];
if(bt.selected&&(b.support.optDisabled?!bt.disabled:bt.getAttribute("disabled")===null)&&(!bt.parentNode.disabled||!b.nodeName(bt.parentNode,"optgroup"))){bx=b(bt).val();
if(bu){return bx
}by.push(bx)
}}if(bu&&!by.length&&bz.length){return b(bz[bv]).val()
}return by
},set:function(bs,bt){var e=b.makeArray(bt);
b(bs).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0
});if(!e.length){bs.selectedIndex=-1
}return e
}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(bx,bu,by,bw){var bs=bx.nodeType;
if(!bx||bs===3||bs===8||bs===2){return L
}if(bw&&bu in b.attrFn){return b(bx)[bu](by)
}if(!("getAttribute" in bx)){return b.prop(bx,bu,by)
}var bt,e,bv=bs!==1||!b.isXMLDoc(bx);
if(bv){bu=b.attrFix[bu]||bu;
e=b.attrHooks[bu];
if(!e){if(ak.test(bu)){e=aV
}else{if(bb){e=bb
}}}}if(by!==L){if(by===null){b.removeAttr(bx,bu);
return L
}else{if(e&&"set" in e&&bv&&(bt=e.set(bx,by,bu))!==L){return bt
}else{bx.setAttribute(bu,""+by);
return by
}}}else{if(e&&"get" in e&&bv&&(bt=e.get(bx,bu))!==null){return bt
}else{bt=bx.getAttribute(bu);
return bt===null?L:bt
}}},removeAttr:function(bs,e){var bt;
if(bs.nodeType===1){e=b.attrFix[e]||e;
b.attr(bs,e,"");
bs.removeAttribute(e);
if(ak.test(e)&&(bt=b.propFix[e]||e) in bs){bs[bt]=false
}}},attrHooks:{type:{set:function(e,bs){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")
}else{if(!b.support.radioValue&&bs==="radio"&&b.nodeName(e,"input")){var bt=e.value;
e.setAttribute("type",bs);
if(bt){e.value=bt
}return bs
}}}},value:{get:function(bs,e){if(bb&&b.nodeName(bs,"button")){return bb.get(bs,e)
}return e in bs?bs.value:null
},set:function(bs,bt,e){if(bb&&b.nodeName(bs,"button")){return bb.set(bs,bt,e)
}bs.value=bt
}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bw,bu,bx){var bs=bw.nodeType;
if(!bw||bs===3||bs===8||bs===2){return L
}var bt,e,bv=bs!==1||!b.isXMLDoc(bw);
if(bv){bu=b.propFix[bu]||bu;
e=b.propHooks[bu]
}if(bx!==L){if(e&&"set" in e&&(bt=e.set(bw,bx,bu))!==L){return bt
}else{return(bw[bu]=bx)
}}else{if(e&&"get" in e&&(bt=e.get(bw,bu))!==null){return bt
}else{return bw[bu]
}}},propHooks:{tabIndex:{get:function(bs){var e=bs.getAttributeNode("tabindex");
return e&&e.specified?parseInt(e.value,10):E.test(bs.nodeName)||m.test(bs.nodeName)&&bs.href?0:L
}}}});
b.attrHooks.tabIndex=b.propHooks.tabIndex;
aV={get:function(bs,e){var bt;
return b.prop(bs,e)===true||(bt=bs.getAttributeNode(e))&&bt.nodeValue!==false?e.toLowerCase():L
},set:function(bs,bu,e){var bt;
if(bu===false){b.removeAttr(bs,e)
}else{bt=b.propFix[e]||e;
if(bt in bs){bs[bt]=true
}bs.setAttribute(e,e.toLowerCase())
}return e
}};if(!b.support.getSetAttribute){bb=b.valHooks.button={get:function(bt,bs){var e;
e=bt.getAttributeNode(bs);
return e&&e.nodeValue!==""?e.nodeValue:L
},set:function(bt,bu,bs){var e=bt.getAttributeNode(bs);
if(!e){e=aq.createAttribute(bs);
bt.setAttributeNode(e)
}return(e.nodeValue=bu+"")
}};b.each(["width","height"],function(bs,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bt,bu){if(bu===""){bt.setAttribute(e,"auto");
return bu
}}})})
}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bs,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bu){var bt=bu.getAttribute(e,2);
return bt===null?L:bt
}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||L
},set:function(e,bs){return(e.style.cssText=""+bs)
}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bs){var e=bs.parentNode;
if(e){e.selectedIndex;
if(e.parentNode){e.parentNode.selectedIndex
}}return null
}})}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value
}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bs){if(b.isArray(bs)){return(e.checked=b.inArray(b(e).val(),bs)>=0)
}}})});
var aX=/\.(.*)$/,ba=/^(?:textarea|input|select)$/i,O=/\./g,bf=/ /g,aC=/[^\w\s.|`]/g,H=function(e){return e.replace(aC,"\\$&")
};b.event={add:function(bu,by,bD,bw){if(bu.nodeType===3||bu.nodeType===8){return
}if(bD===false){bD=bh
}else{if(!bD){return
}}var bs,bC;
if(bD.handler){bs=bD;
bD=bs.handler
}if(!bD.guid){bD.guid=b.guid++
}var bz=b._data(bu);
if(!bz){return
}var bE=bz.events,bx=bz.handle;
if(!bE){bz.events=bE={}
}if(!bx){bz.handle=bx=function(bF){return typeof b!=="undefined"&&(!bF||b.event.triggered!==bF.type)?b.event.handle.apply(bx.elem,arguments):L
}}bx.elem=bu;
by=by.split(" ");
var bB,bv=0,e;
while((bB=by[bv++])){bC=bs?b.extend({},bs):{handler:bD,data:bw};
if(bB.indexOf(".")>-1){e=bB.split(".");
bB=e.shift();
bC.namespace=e.slice(0).sort().join(".")
}else{e=[];
bC.namespace=""
}bC.type=bB;
if(!bC.guid){bC.guid=bD.guid
}var bt=bE[bB],bA=b.event.special[bB]||{};
if(!bt){bt=bE[bB]=[];
if(!bA.setup||bA.setup.call(bu,bw,e,bx)===false){if(bu.addEventListener){bu.addEventListener(bB,bx,false)
}else{if(bu.attachEvent){bu.attachEvent("on"+bB,bx)
}}}}if(bA.add){bA.add.call(bu,bC);
if(!bC.handler.guid){bC.handler.guid=bD.guid
}}bt.push(bC);
b.event.global[bB]=true
}bu=null
},global:{},remove:function(bG,bB,bt,bx){if(bG.nodeType===3||bG.nodeType===8){return
}if(bt===false){bt=bh
}var bJ,bw,by,bD,bE=0,bu,bz,bC,bv,bA,e,bI,bF=b.hasData(bG)&&b._data(bG),bs=bF&&bF.events;
if(!bF||!bs){return
}if(bB&&bB.type){bt=bB.handler;
bB=bB.type
}if(!bB||typeof bB==="string"&&bB.charAt(0)==="."){bB=bB||"";
for(bw in bs){b.event.remove(bG,bw+bB)
}return
}bB=bB.split(" ");
while((bw=bB[bE++])){bI=bw;
e=null;
bu=bw.indexOf(".")<0;
bz=[];
if(!bu){bz=bw.split(".");
bw=bz.shift();
bC=new RegExp("(^|\\.)"+b.map(bz.slice(0).sort(),H).join("\\.(?:.*\\.)?")+"(\\.|$)")
}bA=bs[bw];
if(!bA){continue
}if(!bt){for(bD=0;
bD<bA.length;
bD++){e=bA[bD];
if(bu||bC.test(e.namespace)){b.event.remove(bG,bI,e.handler,bD);
bA.splice(bD--,1)
}}continue
}bv=b.event.special[bw]||{};
for(bD=bx||0;
bD<bA.length;
bD++){e=bA[bD];
if(bt.guid===e.guid){if(bu||bC.test(e.namespace)){if(bx==null){bA.splice(bD--,1)
}if(bv.remove){bv.remove.call(bG,e)
}}if(bx!=null){break
}}}if(bA.length===0||bx!=null&&bA.length===1){if(!bv.teardown||bv.teardown.call(bG,bz)===false){b.removeEvent(bG,bw,bF.handle)
}bJ=null;
delete bs[bw]
}}if(b.isEmptyObject(bs)){var bH=bF.handle;
if(bH){bH.elem=null
}delete bF.events;
delete bF.handle;
if(b.isEmptyObject(bF)){b.removeData(bG,L,true)
}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(e,by,bw,bD){var bB=e.type||e,bt=[],bs;
if(bB.indexOf("!")>=0){bB=bB.slice(0,-1);
bs=true
}if(bB.indexOf(".")>=0){bt=bB.split(".");
bB=bt.shift();
bt.sort()
}if((!bw||b.event.customEvent[bB])&&!b.event.global[bB]){return
}e=typeof e==="object"?e[b.expando]?e:new b.Event(bB,e):new b.Event(bB);
e.type=bB;
e.exclusive=bs;
e.namespace=bt.join(".");
e.namespace_re=new RegExp("(^|\\.)"+bt.join("\\.(?:.*\\.)?")+"(\\.|$)");
if(bD||!bw){e.preventDefault();
e.stopPropagation()
}if(!bw){b.each(b.cache,function(){var bF=b.expando,bE=this[bF];
if(bE&&bE.events&&bE.events[bB]){b.event.trigger(e,by,bE.handle.elem)
}});return
}if(bw.nodeType===3||bw.nodeType===8){return
}e.result=L;
e.target=bw;
by=by!=null?b.makeArray(by):[];
by.unshift(e);
var bC=bw,bu=bB.indexOf(":")<0?"on"+bB:"";
do{var bz=b._data(bC,"handle");
e.currentTarget=bC;
if(bz){bz.apply(bC,by)
}if(bu&&b.acceptData(bC)&&bC[bu]&&bC[bu].apply(bC,by)===false){e.result=false;
e.preventDefault()
}bC=bC.parentNode||bC.ownerDocument||bC===e.target.ownerDocument&&a8
}while(bC&&!e.isPropagationStopped());
if(!e.isDefaultPrevented()){var bv,bA=b.event.special[bB]||{};
if((!bA._default||bA._default.call(bw.ownerDocument,e)===false)&&!(bB==="click"&&b.nodeName(bw,"a"))&&b.acceptData(bw)){try{if(bu&&bw[bB]){bv=bw[bu];
if(bv){bw[bu]=null
}b.event.triggered=bB;
bw[bB]()
}}catch(bx){}if(bv){bw[bu]=bv
}b.event.triggered=L
}}return e.result
},handle:function(by){by=b.event.fix(by||a8.event);
var bs=((b._data(this,"events")||{})[by.type]||[]).slice(0),bx=!by.exclusive&&!by.namespace,bv=Array.prototype.slice.call(arguments,0);
bv[0]=by;
by.currentTarget=this;
for(var bu=0,e=bs.length;
bu<e;bu++){var bw=bs[bu];
if(bx||by.namespace_re.test(bw.namespace)){by.handler=bw.handler;
by.data=bw.data;
by.handleObj=bw;
var bt=bw.handler.apply(this,bv);
if(bt!==L){by.result=bt;
if(bt===false){by.preventDefault();
by.stopPropagation()
}}if(by.isImmediatePropagationStopped()){break
}}}return by.result
},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(bv){if(bv[b.expando]){return bv
}var bs=bv;
bv=b.Event(bs);
for(var bt=this.props.length,bx;
bt;){bx=this.props[--bt];
bv[bx]=bs[bx]
}if(!bv.target){bv.target=bv.srcElement||aq
}if(bv.target.nodeType===3){bv.target=bv.target.parentNode
}if(!bv.relatedTarget&&bv.fromElement){bv.relatedTarget=bv.fromElement===bv.target?bv.toElement:bv.fromElement
}if(bv.pageX==null&&bv.clientX!=null){var bu=bv.target.ownerDocument||aq,bw=bu.documentElement,e=bu.body;
bv.pageX=bv.clientX+(bw&&bw.scrollLeft||e&&e.scrollLeft||0)-(bw&&bw.clientLeft||e&&e.clientLeft||0);
bv.pageY=bv.clientY+(bw&&bw.scrollTop||e&&e.scrollTop||0)-(bw&&bw.clientTop||e&&e.clientTop||0)
}if(bv.which==null&&(bv.charCode!=null||bv.keyCode!=null)){bv.which=bv.charCode!=null?bv.charCode:bv.keyCode
}if(!bv.metaKey&&bv.ctrlKey){bv.metaKey=bv.ctrlKey
}if(!bv.which&&bv.button!==L){bv.which=(bv.button&1?1:(bv.button&2?3:(bv.button&4?2:0)))
}return bv
},guid:100000000,proxy:b.proxy,special:{ready:{setup:b.bindReady,teardown:b.noop},live:{add:function(e){b.event.add(this,q(e.origType,e.selector),b.extend({},e,{handler:ah,guid:e.handler.guid}))
},remove:function(e){b.event.remove(this,q(e.origType,e.selector),e)
}},beforeunload:{setup:function(bt,bs,e){if(b.isWindow(this)){this.onbeforeunload=e
}},teardown:function(bs,e){if(this.onbeforeunload===e){this.onbeforeunload=null
}}}}};
b.removeEvent=aq.removeEventListener?function(bs,e,bt){if(bs.removeEventListener){bs.removeEventListener(e,bt,false)
}}:function(bs,e,bt){if(bs.detachEvent){bs.detachEvent("on"+e,bt)
}};b.Event=function(bs,e){if(!this.preventDefault){return new b.Event(bs,e)
}if(bs&&bs.type){this.originalEvent=bs;
this.type=bs.type;
this.isDefaultPrevented=(bs.defaultPrevented||bs.returnValue===false||bs.getPreventDefault&&bs.getPreventDefault())?j:bh
}else{this.type=bs
}if(e){b.extend(this,e)
}this.timeStamp=b.now();
this[b.expando]=true
};function bh(){return false
}function j(){return true
}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=j;
var bs=this.originalEvent;
if(!bs){return
}if(bs.preventDefault){bs.preventDefault()
}else{bs.returnValue=false
}},stopPropagation:function(){this.isPropagationStopped=j;
var bs=this.originalEvent;
if(!bs){return
}if(bs.stopPropagation){bs.stopPropagation()
}bs.cancelBubble=true
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=j;
this.stopPropagation()
},isDefaultPrevented:bh,isPropagationStopped:bh,isImmediatePropagationStopped:bh};
var ab=function(bt){var bu=bt.relatedTarget,e=false,bs=bt.type;
bt.type=bt.data;
if(bu!==this){if(bu){e=b.contains(this,bu)
}if(!e){b.event.handle.apply(this,arguments);
bt.type=bs
}}},aS=function(e){e.type=e.data;
b.event.handle.apply(this,arguments)
};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bs,e){b.event.special[bs]={setup:function(bt){b.event.add(this,e,bt&&bt.selector?aS:ab,bs)
},teardown:function(bt){b.event.remove(this,e,bt&&bt.selector?aS:ab)
}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(bs,e){if(!b.nodeName(this,"form")){b.event.add(this,"click.specialSubmit",function(bv){var bu=bv.target,bt=b.nodeName(bu,"input")||b.nodeName(bu,"button")?bu.type:"";
if((bt==="submit"||bt==="image")&&b(bu).closest("form").length){aU("submit",this,arguments)
}});b.event.add(this,"keypress.specialSubmit",function(bv){var bu=bv.target,bt=b.nodeName(bu,"input")||b.nodeName(bu,"button")?bu.type:"";
if((bt==="text"||bt==="password")&&b(bu).closest("form").length&&bv.keyCode===13){aU("submit",this,arguments)
}})}else{return false
}},teardown:function(e){b.event.remove(this,".specialSubmit")
}}}if(!b.support.changeBubbles){var bk,l=function(bs){var e=b.nodeName(bs,"input")?bs.type:"",bt=bs.value;
if(e==="radio"||e==="checkbox"){bt=bs.checked
}else{if(e==="select-multiple"){bt=bs.selectedIndex>-1?b.map(bs.options,function(bu){return bu.selected
}).join("-"):""
}else{if(b.nodeName(bs,"select")){bt=bs.selectedIndex
}}}return bt
},Z=function Z(bu){var bs=bu.target,bt,bv;
if(!ba.test(bs.nodeName)||bs.readOnly){return
}bt=b._data(bs,"_change_data");
bv=l(bs);
if(bu.type!=="focusout"||bs.type!=="radio"){b._data(bs,"_change_data",bv)
}if(bt===L||bv===bt){return
}if(bt!=null||bv){bu.type="change";
bu.liveFired=L;
b.event.trigger(bu,arguments[1],bs)
}};b.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(bu){var bt=bu.target,bs=b.nodeName(bt,"input")?bt.type:"";
if(bs==="radio"||bs==="checkbox"||b.nodeName(bt,"select")){Z.call(this,bu)
}},keydown:function(bu){var bt=bu.target,bs=b.nodeName(bt,"input")?bt.type:"";
if((bu.keyCode===13&&!b.nodeName(bt,"textarea"))||(bu.keyCode===32&&(bs==="checkbox"||bs==="radio"))||bs==="select-multiple"){Z.call(this,bu)
}},beforeactivate:function(bt){var bs=bt.target;
b._data(bs,"_change_data",l(bs))
}},setup:function(bt,bs){if(this.type==="file"){return false
}for(var e in bk){b.event.add(this,e+".specialChange",bk[e])
}return ba.test(this.nodeName)
},teardown:function(e){b.event.remove(this,".specialChange");
return ba.test(this.nodeName)
}};bk=b.event.special.change.filters;
bk.focus=bk.beforeactivate
}function aU(bs,bu,e){var bt=b.extend({},e[0]);
bt.type=bs;
bt.originalEvent={};
bt.liveFired=L;
b.event.handle.call(bu,bt);
if(bt.isDefaultPrevented()){e[0].preventDefault()
}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bu,e){var bs=0;
b.event.special[e]={setup:function(){if(bs++===0){aq.addEventListener(bu,bt,true)
}},teardown:function(){if(--bs===0){aq.removeEventListener(bu,bt,true)
}}};function bt(bv){var bw=b.event.fix(bv);
bw.type=e;
bw.originalEvent={};
b.event.trigger(bw,null,bw.target);
if(bw.isDefaultPrevented()){bv.preventDefault()
}}})}b.each(["bind","one"],function(bs,e){b.fn[e]=function(by,bz,bx){var bw;
if(typeof by==="object"){for(var bv in by){this[e](bv,bz,by[bv],bx)
}return this
}if(arguments.length===2||bz===false){bx=bz;
bz=L}if(e==="one"){bw=function(bA){b(this).unbind(bA,bw);
return bx.apply(this,arguments)
};bw.guid=bx.guid||b.guid++
}else{bw=bx
}if(by==="unload"&&e!=="one"){this.one(by,bz,bx)
}else{for(var bu=0,bt=this.length;
bu<bt;
bu++){b.event.add(this[bu],by,bw,bz)
}}return this
}});b.fn.extend({unbind:function(bv,bu){if(typeof bv==="object"&&!bv.preventDefault){for(var bt in bv){this.unbind(bt,bv[bt])
}}else{for(var bs=0,e=this.length;
bs<e;bs++){b.event.remove(this[bs],bv,bu)
}}return this
},delegate:function(e,bs,bu,bt){return this.live(bs,bu,bt,e)
},undelegate:function(e,bs,bt){if(arguments.length===0){return this.unbind("live")
}else{return this.die(bs,null,bt,e)
}},trigger:function(e,bs){return this.each(function(){b.event.trigger(e,bs,this)
})},triggerHandler:function(e,bs){if(this[0]){return b.event.trigger(e,bs,this[0],true)
}},toggle:function(bu){var bs=arguments,e=bu.guid||b.guid++,bt=0,bv=function(bw){var bx=(b.data(this,"lastToggle"+bu.guid)||0)%bt;
b.data(this,"lastToggle"+bu.guid,bx+1);
bw.preventDefault();
return bs[bx].apply(this,arguments)||false
};bv.guid=e;
while(bt<bs.length){bs[bt++].guid=e
}return this.click(bv)
},hover:function(e,bs){return this.mouseenter(e).mouseleave(bs||e)
}});var aQ={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
b.each(["live","die"],function(bs,e){b.fn[e]=function(bC,bz,bE,bv){var bD,bA=0,bB,bu,bG,bx=bv||this.selector,bt=bv?this:b(this.context);
if(typeof bC==="object"&&!bC.preventDefault){for(var bF in bC){bt[e](bF,bz,bC[bF],bx)
}return this
}if(e==="die"&&!bC&&bv&&bv.charAt(0)==="."){bt.unbind(bv);
return this
}if(bz===false||b.isFunction(bz)){bE=bz||bh;
bz=L}bC=(bC||"").split(" ");
while((bD=bC[bA++])!=null){bB=aX.exec(bD);
bu="";
if(bB){bu=bB[0];
bD=bD.replace(aX,"")
}if(bD==="hover"){bC.push("mouseenter"+bu,"mouseleave"+bu);
continue
}bG=bD;
if(aQ[bD]){bC.push(aQ[bD]+bu);
bD=bD+bu
}else{bD=(aQ[bD]||bD)+bu
}if(e==="live"){for(var by=0,bw=bt.length;
by<bw;
by++){b.event.add(bt[by],"live."+q(bD,bx),{data:bz,selector:bx,handler:bE,origType:bD,origHandler:bE,preType:bG})
}}else{bt.unbind("live."+q(bD,bx),bE)
}}return this
}});function ah(bC){var bz,bu,bI,bw,e,bE,bB,bD,bA,bH,by,bx,bG,bF=[],bv=[],bs=b._data(this,"events");
if(bC.liveFired===this||!bs||!bs.live||bC.target.disabled||bC.button&&bC.type==="click"){return
}if(bC.namespace){bx=new RegExp("(^|\\.)"+bC.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")
}bC.liveFired=this;
var bt=bs.live.slice(0);
for(bB=0;
bB<bt.length;
bB++){e=bt[bB];
if(e.origType.replace(aX,"")===bC.type){bv.push(e.selector)
}else{bt.splice(bB--,1)
}}bw=b(bC.target).closest(bv,bC.currentTarget);
for(bD=0,bA=bw.length;
bD<bA;
bD++){by=bw[bD];
for(bB=0;
bB<bt.length;
bB++){e=bt[bB];
if(by.selector===e.selector&&(!bx||bx.test(e.namespace))&&!by.elem.disabled){bE=by.elem;
bI=null;
if(e.preType==="mouseenter"||e.preType==="mouseleave"){bC.type=e.preType;
bI=b(bC.relatedTarget).closest(e.selector)[0];
if(bI&&b.contains(bE,bI)){bI=bE
}}if(!bI||bI!==bE){bF.push({elem:bE,handleObj:e,level:by.level})
}}}}for(bD=0,bA=bF.length;
bD<bA;
bD++){bw=bF[bD];
if(bu&&bw.level>bu){break
}bC.currentTarget=bw.elem;
bC.data=bw.handleObj.data;
bC.handleObj=bw.handleObj;
bG=bw.handleObj.origHandler.apply(bw.elem,arguments);
if(bG===false||bC.isPropagationStopped()){bu=bw.level;
if(bG===false){bz=false
}if(bC.isImmediatePropagationStopped()){break
}}}return bz
}function q(bs,e){return(bs&&bs!=="*"?bs+".":"")+e.replace(O,"`").replace(bf,"&")
}b.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(bs,e){b.fn[e]=function(bu,bt){if(bt==null){bt=bu;
bu=null
}return arguments.length>0?this.bind(e,bu,bt):this.trigger(e)
};if(b.attrFn){b.attrFn[e]=true
}});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bC=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bD=0,bG=Object.prototype.toString,bx=false,bw=true,bE=/\\/g,bK=/\W/;
[0,0].sort(function(){bw=false;
return 0
});var bu=function(bP,e,bS,bT){bS=bS||[];
e=e||aq;
var bV=e;
if(e.nodeType!==1&&e.nodeType!==9){return[]
}if(!bP||typeof bP!=="string"){return bS
}var bM,bX,b0,bL,bW,bZ,bY,bR,bO=true,bN=bu.isXML(e),bQ=[],bU=bP;
do{bC.exec("");
bM=bC.exec(bU);
if(bM){bU=bM[3];
bQ.push(bM[1]);
if(bM[2]){bL=bM[3];
break}}}while(bM);
if(bQ.length>1&&by.exec(bP)){if(bQ.length===2&&bz.relative[bQ[0]]){bX=bH(bQ[0]+bQ[1],e)
}else{bX=bz.relative[bQ[0]]?[e]:bu(bQ.shift(),e);
while(bQ.length){bP=bQ.shift();
if(bz.relative[bP]){bP+=bQ.shift()
}bX=bH(bP,bX)
}}}else{if(!bT&&bQ.length>1&&e.nodeType===9&&!bN&&bz.match.ID.test(bQ[0])&&!bz.match.ID.test(bQ[bQ.length-1])){bW=bu.find(bQ.shift(),e,bN);
e=bW.expr?bu.filter(bW.expr,bW.set)[0]:bW.set[0]
}if(e){bW=bT?{expr:bQ.pop(),set:bA(bT)}:bu.find(bQ.pop(),bQ.length===1&&(bQ[0]==="~"||bQ[0]==="+")&&e.parentNode?e.parentNode:e,bN);
bX=bW.expr?bu.filter(bW.expr,bW.set):bW.set;
if(bQ.length>0){b0=bA(bX)
}else{bO=false
}while(bQ.length){bZ=bQ.pop();
bY=bZ;
if(!bz.relative[bZ]){bZ=""
}else{bY=bQ.pop()
}if(bY==null){bY=e
}bz.relative[bZ](b0,bY,bN)
}}else{b0=bQ=[]
}}if(!b0){b0=bX
}if(!b0){bu.error(bZ||bP)
}if(bG.call(b0)==="[object Array]"){if(!bO){bS.push.apply(bS,b0)
}else{if(e&&e.nodeType===1){for(bR=0;
b0[bR]!=null;
bR++){if(b0[bR]&&(b0[bR]===true||b0[bR].nodeType===1&&bu.contains(e,b0[bR]))){bS.push(bX[bR])
}}}else{for(bR=0;
b0[bR]!=null;
bR++){if(b0[bR]&&b0[bR].nodeType===1){bS.push(bX[bR])
}}}}}else{bA(b0,bS)
}if(bL){bu(bL,bV,bS,bT);
bu.uniqueSort(bS)
}return bS
};bu.uniqueSort=function(bL){if(bF){bx=bw;
bL.sort(bF);
if(bx){for(var e=1;
e<bL.length;
e++){if(bL[e]===bL[e-1]){bL.splice(e--,1)
}}}}return bL
};bu.matches=function(e,bL){return bu(e,null,null,bL)
};bu.matchesSelector=function(e,bL){return bu(bL,null,null,[e]).length>0
};bu.find=function(bR,e,bS){var bQ;
if(!bR){return[]
}for(var bN=0,bM=bz.order.length;
bN<bM;
bN++){var bO,bP=bz.order[bN];
if((bO=bz.leftMatch[bP].exec(bR))){var bL=bO[1];
bO.splice(1,1);
if(bL.substr(bL.length-1)!=="\\"){bO[1]=(bO[1]||"").replace(bE,"");
bQ=bz.find[bP](bO,e,bS);
if(bQ!=null){bR=bR.replace(bz.match[bP],"");
break}}}}if(!bQ){bQ=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]
}return{set:bQ,expr:bR}
};bu.filter=function(bV,bU,bY,bO){var bQ,e,bM=bV,b0=[],bS=bU,bR=bU&&bU[0]&&bu.isXML(bU[0]);
while(bV&&bU.length){for(var bT in bz.filter){if((bQ=bz.leftMatch[bT].exec(bV))!=null&&bQ[2]){var bZ,bX,bL=bz.filter[bT],bN=bQ[1];
e=false;
bQ.splice(1,1);
if(bN.substr(bN.length-1)==="\\"){continue
}if(bS===b0){b0=[]
}if(bz.preFilter[bT]){bQ=bz.preFilter[bT](bQ,bS,bY,b0,bO,bR);
if(!bQ){e=bZ=true
}else{if(bQ===true){continue
}}}if(bQ){for(var bP=0;
(bX=bS[bP])!=null;
bP++){if(bX){bZ=bL(bX,bQ,bP,bS);
var bW=bO^!!bZ;
if(bY&&bZ!=null){if(bW){e=true
}else{bS[bP]=false
}}else{if(bW){b0.push(bX);
e=true
}}}}}if(bZ!==L){if(!bY){bS=b0
}bV=bV.replace(bz.match[bT],"");
if(!e){return[]
}break
}}}if(bV===bM){if(e==null){bu.error(bV)
}else{break
}}bM=bV
}return bS
};bu.error=function(e){throw"Syntax error, unrecognized expression: "+e
};var bz=bu.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")
},type:function(e){return e.getAttribute("type")
}},relative:{"+":function(bQ,bL){var bN=typeof bL==="string",bP=bN&&!bK.test(bL),bR=bN&&!bP;
if(bP){bL=bL.toLowerCase()
}for(var bM=0,e=bQ.length,bO;
bM<e;bM++){if((bO=bQ[bM])){while((bO=bO.previousSibling)&&bO.nodeType!==1){}bQ[bM]=bR||bO&&bO.nodeName.toLowerCase()===bL?bO||false:bO===bL
}}if(bR){bu.filter(bL,bQ,true)
}},">":function(bQ,bL){var bP,bO=typeof bL==="string",bM=0,e=bQ.length;
if(bO&&!bK.test(bL)){bL=bL.toLowerCase();
for(;bM<e;
bM++){bP=bQ[bM];
if(bP){var bN=bP.parentNode;
bQ[bM]=bN.nodeName.toLowerCase()===bL?bN:false
}}}else{for(;
bM<e;bM++){bP=bQ[bM];
if(bP){bQ[bM]=bO?bP.parentNode:bP.parentNode===bL
}}if(bO){bu.filter(bL,bQ,true)
}}},"":function(bN,bL,bP){var bO,bM=bD++,e=bI;
if(typeof bL==="string"&&!bK.test(bL)){bL=bL.toLowerCase();
bO=bL;
e=bs}e("parentNode",bL,bM,bN,bO,bP)
},"~":function(bN,bL,bP){var bO,bM=bD++,e=bI;
if(typeof bL==="string"&&!bK.test(bL)){bL=bL.toLowerCase();
bO=bL;
e=bs}e("previousSibling",bL,bM,bN,bO,bP)
}},find:{ID:function(bL,bM,bN){if(typeof bM.getElementById!=="undefined"&&!bN){var e=bM.getElementById(bL[1]);
return e&&e.parentNode?[e]:[]
}},NAME:function(bM,bP){if(typeof bP.getElementsByName!=="undefined"){var bL=[],bO=bP.getElementsByName(bM[1]);
for(var bN=0,e=bO.length;
bN<e;bN++){if(bO[bN].getAttribute("name")===bM[1]){bL.push(bO[bN])
}}return bL.length===0?null:bL
}},TAG:function(e,bL){if(typeof bL.getElementsByTagName!=="undefined"){return bL.getElementsByTagName(e[1])
}}},preFilter:{CLASS:function(bN,bL,bM,e,bQ,bR){bN=" "+bN[1].replace(bE,"")+" ";
if(bR){return bN
}for(var bO=0,bP;
(bP=bL[bO])!=null;
bO++){if(bP){if(bQ^(bP.className&&(" "+bP.className+" ").replace(/[\t\n\r]/g," ").indexOf(bN)>=0)){if(!bM){e.push(bP)
}}else{if(bM){bL[bO]=false
}}}}return false
},ID:function(e){return e[1].replace(bE,"")
},TAG:function(bL,e){return bL[1].replace(bE,"").toLowerCase()
},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bu.error(e[0])
}e[2]=e[2].replace(/^\+|\s*/g,"");
var bL=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);
e[2]=(bL[1]+(bL[2]||1))-0;
e[3]=bL[3]-0
}else{if(e[2]){bu.error(e[0])
}}e[0]=bD++;
return e
},ATTR:function(bO,bL,bM,e,bP,bQ){var bN=bO[1]=bO[1].replace(bE,"");
if(!bQ&&bz.attrMap[bN]){bO[1]=bz.attrMap[bN]
}bO[4]=(bO[4]||bO[5]||"").replace(bE,"");
if(bO[2]==="~="){bO[4]=" "+bO[4]+" "
}return bO
},PSEUDO:function(bO,bL,bM,e,bP){if(bO[1]==="not"){if((bC.exec(bO[3])||"").length>1||/^\w/.test(bO[3])){bO[3]=bu(bO[3],null,null,bL)
}else{var bN=bu.filter(bO[3],bL,bM,true^bP);
if(!bM){e.push.apply(e,bN)
}return false
}}else{if(bz.match.POS.test(bO[0])||bz.match.CHILD.test(bO[0])){return true
}}return bO
},POS:function(e){e.unshift(true);
return e
}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"
},disabled:function(e){return e.disabled===true
},checked:function(e){return e.checked===true
},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex
}return e.selected===true
},parent:function(e){return !!e.firstChild
},empty:function(e){return !e.firstChild
},has:function(bM,bL,e){return !!bu(e[3],bM).length
},header:function(e){return(/h\d/i).test(e.nodeName)
},text:function(bM){var e=bM.getAttribute("type"),bL=bM.type;
return bM.nodeName.toLowerCase()==="input"&&"text"===bL&&(e===bL||e===null)
},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type
},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type
},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type
},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type
},submit:function(bL){var e=bL.nodeName.toLowerCase();
return(e==="input"||e==="button")&&"submit"===bL.type
},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type
},reset:function(bL){var e=bL.nodeName.toLowerCase();
return(e==="input"||e==="button")&&"reset"===bL.type
},button:function(bL){var e=bL.nodeName.toLowerCase();
return e==="input"&&"button"===bL.type||e==="button"
},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)
},focus:function(e){return e===e.ownerDocument.activeElement
}},setFilters:{first:function(bL,e){return e===0
},last:function(bM,bL,e,bN){return bL===bN.length-1
},even:function(bL,e){return e%2===0
},odd:function(bL,e){return e%2===1
},lt:function(bM,bL,e){return bL<e[3]-0
},gt:function(bM,bL,e){return bL>e[3]-0
},nth:function(bM,bL,e){return e[3]-0===bL
},eq:function(bM,bL,e){return e[3]-0===bL
}},filter:{PSEUDO:function(bM,bR,bQ,bS){var e=bR[1],bL=bz.filters[e];
if(bL){return bL(bM,bQ,bR,bS)
}else{if(e==="contains"){return(bM.textContent||bM.innerText||bu.getText([bM])||"").indexOf(bR[3])>=0
}else{if(e==="not"){var bN=bR[3];
for(var bP=0,bO=bN.length;
bP<bO;
bP++){if(bN[bP]===bM){return false
}}return true
}else{bu.error(e)
}}}},CHILD:function(e,bN){var bQ=bN[1],bL=e;
switch(bQ){case"only":case"first":while((bL=bL.previousSibling)){if(bL.nodeType===1){return false
}}if(bQ==="first"){return true
}bL=e;
case"last":while((bL=bL.nextSibling)){if(bL.nodeType===1){return false
}}return true;
case"nth":var bM=bN[2],bT=bN[3];
if(bM===1&&bT===0){return true
}var bP=bN[0],bS=e.parentNode;
if(bS&&(bS.sizcache!==bP||!e.nodeIndex)){var bO=0;
for(bL=bS.firstChild;
bL;bL=bL.nextSibling){if(bL.nodeType===1){bL.nodeIndex=++bO
}}bS.sizcache=bP
}var bR=e.nodeIndex-bT;
if(bM===0){return bR===0
}else{return(bR%bM===0&&bR/bM>=0)
}}},ID:function(bL,e){return bL.nodeType===1&&bL.getAttribute("id")===e
},TAG:function(bL,e){return(e==="*"&&bL.nodeType===1)||bL.nodeName.toLowerCase()===e
},CLASS:function(bL,e){return(" "+(bL.className||bL.getAttribute("class"))+" ").indexOf(e)>-1
},ATTR:function(bP,bN){var bM=bN[1],e=bz.attrHandle[bM]?bz.attrHandle[bM](bP):bP[bM]!=null?bP[bM]:bP.getAttribute(bM),bQ=e+"",bO=bN[2],bL=bN[4];
return e==null?bO==="!=":bO==="="?bQ===bL:bO==="*="?bQ.indexOf(bL)>=0:bO==="~="?(" "+bQ+" ").indexOf(bL)>=0:!bL?bQ&&e!==false:bO==="!="?bQ!==bL:bO==="^="?bQ.indexOf(bL)===0:bO==="$="?bQ.substr(bQ.length-bL.length)===bL:bO==="|="?bQ===bL||bQ.substr(0,bL.length+1)===bL+"-":false
},POS:function(bO,bL,bM,bP){var e=bL[2],bN=bz.setFilters[e];
if(bN){return bN(bO,bM,bL,bP)
}}}};var by=bz.match.POS,bt=function(bL,e){return"\\"+(e-0+1)
};for(var bv in bz.match){bz.match[bv]=new RegExp(bz.match[bv].source+(/(?![^\[]*\])(?![^\(]*\))/.source));
bz.leftMatch[bv]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bz.match[bv].source.replace(/\\(\d+)/g,bt))
}var bA=function(bL,e){bL=Array.prototype.slice.call(bL,0);
if(e){e.push.apply(e,bL);
return e
}return bL
};try{Array.prototype.slice.call(aq.documentElement.childNodes,0)[0].nodeType
}catch(bJ){bA=function(bO,bN){var bM=0,bL=bN||[];
if(bG.call(bO)==="[object Array]"){Array.prototype.push.apply(bL,bO)
}else{if(typeof bO.length==="number"){for(var e=bO.length;
bM<e;bM++){bL.push(bO[bM])
}}else{for(;
bO[bM];
bM++){bL.push(bO[bM])
}}}return bL
}}var bF,bB;
if(aq.documentElement.compareDocumentPosition){bF=function(bL,e){if(bL===e){bx=true;
return 0
}if(!bL.compareDocumentPosition||!e.compareDocumentPosition){return bL.compareDocumentPosition?-1:1
}return bL.compareDocumentPosition(e)&4?-1:1
}}else{bF=function(bS,bR){if(bS===bR){bx=true;
return 0
}else{if(bS.sourceIndex&&bR.sourceIndex){return bS.sourceIndex-bR.sourceIndex
}}var bP,bL,bM=[],e=[],bO=bS.parentNode,bQ=bR.parentNode,bT=bO;
if(bO===bQ){return bB(bS,bR)
}else{if(!bO){return -1
}else{if(!bQ){return 1
}}}while(bT){bM.unshift(bT);
bT=bT.parentNode
}bT=bQ;
while(bT){e.unshift(bT);
bT=bT.parentNode
}bP=bM.length;
bL=e.length;
for(var bN=0;
bN<bP&&bN<bL;
bN++){if(bM[bN]!==e[bN]){return bB(bM[bN],e[bN])
}}return bN===bP?bB(bS,e[bN],-1):bB(bM[bN],bR,1)
};bB=function(bL,e,bM){if(bL===e){return bM
}var bN=bL.nextSibling;
while(bN){if(bN===e){return -1
}bN=bN.nextSibling
}return 1
}}bu.getText=function(e){var bL="",bN;
for(var bM=0;
e[bM];
bM++){bN=e[bM];
if(bN.nodeType===3||bN.nodeType===4){bL+=bN.nodeValue
}else{if(bN.nodeType!==8){bL+=bu.getText(bN.childNodes)
}}}return bL
};(function(){var bL=aq.createElement("div"),bM="script"+(new Date()).getTime(),e=aq.documentElement;
bL.innerHTML="<a name='"+bM+"'/>";
e.insertBefore(bL,e.firstChild);
if(aq.getElementById(bM)){bz.find.ID=function(bO,bP,bQ){if(typeof bP.getElementById!=="undefined"&&!bQ){var bN=bP.getElementById(bO[1]);
return bN?bN.id===bO[1]||typeof bN.getAttributeNode!=="undefined"&&bN.getAttributeNode("id").nodeValue===bO[1]?[bN]:L:[]
}};bz.filter.ID=function(bP,bN){var bO=typeof bP.getAttributeNode!=="undefined"&&bP.getAttributeNode("id");
return bP.nodeType===1&&bO&&bO.nodeValue===bN
}}e.removeChild(bL);
e=bL=null
})();(function(){var e=aq.createElement("div");
e.appendChild(aq.createComment(""));
if(e.getElementsByTagName("*").length>0){bz.find.TAG=function(bL,bP){var bO=bP.getElementsByTagName(bL[1]);
if(bL[1]==="*"){var bN=[];
for(var bM=0;
bO[bM];
bM++){if(bO[bM].nodeType===1){bN.push(bO[bM])
}}bO=bN
}return bO
}}e.innerHTML="<a href='#'></a>";
if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bz.attrHandle.href=function(bL){return bL.getAttribute("href",2)
}}e=null
})();if(aq.querySelectorAll){(function(){var e=bu,bN=aq.createElement("div"),bM="__sizzle__";
bN.innerHTML="<p class='TEST'></p>";
if(bN.querySelectorAll&&bN.querySelectorAll(".TEST").length===0){return
}bu=function(bY,bP,bT,bX){bP=bP||aq;
if(!bX&&!bu.isXML(bP)){var bW=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(bY);
if(bW&&(bP.nodeType===1||bP.nodeType===9)){if(bW[1]){return bA(bP.getElementsByTagName(bY),bT)
}else{if(bW[2]&&bz.find.CLASS&&bP.getElementsByClassName){return bA(bP.getElementsByClassName(bW[2]),bT)
}}}if(bP.nodeType===9){if(bY==="body"&&bP.body){return bA([bP.body],bT)
}else{if(bW&&bW[3]){var bS=bP.getElementById(bW[3]);
if(bS&&bS.parentNode){if(bS.id===bW[3]){return bA([bS],bT)
}}else{return bA([],bT)
}}}try{return bA(bP.querySelectorAll(bY),bT)
}catch(bU){}}else{if(bP.nodeType===1&&bP.nodeName.toLowerCase()!=="object"){var bQ=bP,bR=bP.getAttribute("id"),bO=bR||bM,b0=bP.parentNode,bZ=/^\s*[+~]/.test(bY);
if(!bR){bP.setAttribute("id",bO)
}else{bO=bO.replace(/'/g,"\\$&")
}if(bZ&&b0){bP=bP.parentNode
}try{if(!bZ||b0){return bA(bP.querySelectorAll("[id='"+bO+"'] "+bY),bT)
}}catch(bV){}finally{if(!bR){bQ.removeAttribute("id")
}}}}}return e(bY,bP,bT,bX)
};for(var bL in e){bu[bL]=e[bL]
}bN=null
})()}(function(){var e=aq.documentElement,bM=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;
if(bM){var bO=!bM.call(aq.createElement("div"),"div"),bL=false;
try{bM.call(aq.documentElement,"[test!='']:sizzle")
}catch(bN){bL=true
}bu.matchesSelector=function(bQ,bS){bS=bS.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");
if(!bu.isXML(bQ)){try{if(bL||!bz.match.PSEUDO.test(bS)&&!/!=/.test(bS)){var bP=bM.call(bQ,bS);
if(bP||!bO||bQ.document&&bQ.document.nodeType!==11){return bP
}}}catch(bR){}}return bu(bS,null,null,[bQ]).length>0
}}})();
(function(){var e=aq.createElement("div");
e.innerHTML="<div class='test e'></div><div class='test'></div>";
if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return
}e.lastChild.className="e";
if(e.getElementsByClassName("e").length===1){return
}bz.order.splice(1,0,"CLASS");
bz.find.CLASS=function(bL,bM,bN){if(typeof bM.getElementsByClassName!=="undefined"&&!bN){return bM.getElementsByClassName(bL[1])
}};e=null
})();function bs(bL,bQ,bP,bT,bR,bS){for(var bN=0,bM=bT.length;
bN<bM;
bN++){var e=bT[bN];
if(e){var bO=false;
e=e[bL];
while(e){if(e.sizcache===bP){bO=bT[e.sizset];
break}if(e.nodeType===1&&!bS){e.sizcache=bP;
e.sizset=bN
}if(e.nodeName.toLowerCase()===bQ){bO=e;
break}e=e[bL]
}bT[bN]=bO
}}}function bI(bL,bQ,bP,bT,bR,bS){for(var bN=0,bM=bT.length;
bN<bM;
bN++){var e=bT[bN];
if(e){var bO=false;
e=e[bL];
while(e){if(e.sizcache===bP){bO=bT[e.sizset];
break}if(e.nodeType===1){if(!bS){e.sizcache=bP;
e.sizset=bN
}if(typeof bQ!=="string"){if(e===bQ){bO=true;
break}}else{if(bu.filter(bQ,[e]).length>0){bO=e;
break}}}e=e[bL]
}bT[bN]=bO
}}}if(aq.documentElement.contains){bu.contains=function(bL,e){return bL!==e&&(bL.contains?bL.contains(e):true)
}}else{if(aq.documentElement.compareDocumentPosition){bu.contains=function(bL,e){return !!(bL.compareDocumentPosition(e)&16)
}}else{bu.contains=function(){return false
}}}bu.isXML=function(e){var bL=(e?e.ownerDocument||e:0).documentElement;
return bL?bL.nodeName!=="HTML":false
};var bH=function(e,bR){var bP,bN=[],bO="",bM=bR.nodeType?[bR]:bR;
while((bP=bz.match.PSEUDO.exec(e))){bO+=bP[0];
e=e.replace(bz.match.PSEUDO,"")
}e=bz.relative[e]?e+"*":e;
for(var bQ=0,bL=bM.length;
bQ<bL;
bQ++){bu(e,bM[bQ],bN)
}return bu.filter(bO,bN)
};b.find=bu;
b.expr=bu.selectors;
b.expr[":"]=b.expr.filters;
b.unique=bu.uniqueSort;
b.text=bu.getText;
b.isXMLDoc=bu.isXML;
b.contains=bu.contains
})();var Y=/Until$/,am=/^(?:parents|prevUntil|prevAll)/,a6=/,/,bn=/^.[^:#\[\.,]*$/,Q=Array.prototype.slice,I=b.expr.match.POS,au={children:true,contents:true,next:true,prev:true};
b.fn.extend({find:function(e){var bt=this,bv,bs;
if(typeof e!=="string"){return b(e).filter(function(){for(bv=0,bs=bt.length;
bv<bs;
bv++){if(b.contains(bt[bv],this)){return true
}}})}var bu=this.pushStack("","find",e),bx,by,bw;
for(bv=0,bs=this.length;
bv<bs;
bv++){bx=bu.length;
b.find(e,this[bv],bu);
if(bv>0){for(by=bx;
by<bu.length;
by++){for(bw=0;
bw<bx;
bw++){if(bu[bw]===bu[by]){bu.splice(by--,1);
break}}}}}return bu
},has:function(bs){var e=b(bs);
return this.filter(function(){for(var bu=0,bt=e.length;
bu<bt;
bu++){if(b.contains(this,e[bu])){return true
}}})},not:function(e){return this.pushStack(aB(this,e,false),"not",e)
},filter:function(e){return this.pushStack(aB(this,e,true),"filter",e)
},is:function(e){return !!e&&(typeof e==="string"?b.filter(e,this).length>0:this.filter(e).length>0)
},closest:function(bB,bs){var by=[],bv,bt,bA=this[0];
if(b.isArray(bB)){var bx,bu,bw={},e=1;
if(bA&&bB.length){for(bv=0,bt=bB.length;
bv<bt;
bv++){bu=bB[bv];
if(!bw[bu]){bw[bu]=I.test(bu)?b(bu,bs||this.context):bu
}}while(bA&&bA.ownerDocument&&bA!==bs){for(bu in bw){bx=bw[bu];
if(bx.jquery?bx.index(bA)>-1:b(bA).is(bx)){by.push({selector:bu,elem:bA,level:e})
}}bA=bA.parentNode;
e++}}return by
}var bz=I.test(bB)||typeof bB!=="string"?b(bB,bs||this.context):0;
for(bv=0,bt=this.length;
bv<bt;
bv++){bA=this[bv];
while(bA){if(bz?bz.index(bA)>-1:b.find.matchesSelector(bA,bB)){by.push(bA);
break}else{bA=bA.parentNode;
if(!bA||!bA.ownerDocument||bA===bs||bA.nodeType===11){break
}}}}by=by.length>1?b.unique(by):by;
return this.pushStack(by,"closest",bB)
},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1
}if(typeof e==="string"){return b.inArray(this[0],b(e))
}return b.inArray(e.jquery?e[0]:e,this)
},add:function(e,bs){var bu=typeof e==="string"?b(e,bs):b.makeArray(e&&e.nodeType?[e]:e),bt=b.merge(this.get(),bu);
return this.pushStack(D(bu[0])||D(bt[0])?bt:b.unique(bt))
},andSelf:function(){return this.add(this.prevObject)
}});function D(e){return !e||!e.parentNode||e.parentNode.nodeType===11
}b.each({parent:function(bs){var e=bs.parentNode;
return e&&e.nodeType!==11?e:null
},parents:function(e){return b.dir(e,"parentNode")
},parentsUntil:function(bs,e,bt){return b.dir(bs,"parentNode",bt)
},next:function(e){return b.nth(e,2,"nextSibling")
},prev:function(e){return b.nth(e,2,"previousSibling")
},nextAll:function(e){return b.dir(e,"nextSibling")
},prevAll:function(e){return b.dir(e,"previousSibling")
},nextUntil:function(bs,e,bt){return b.dir(bs,"nextSibling",bt)
},prevUntil:function(bs,e,bt){return b.dir(bs,"previousSibling",bt)
},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)
},children:function(e){return b.sibling(e.firstChild)
},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)
}},function(e,bs){b.fn[e]=function(bw,bt){var bv=b.map(this,bs,bw),bu=Q.call(arguments);
if(!Y.test(e)){bt=bw
}if(bt&&typeof bt==="string"){bv=b.filter(bt,bv)
}bv=this.length>1&&!au[e]?b.unique(bv):bv;
if((this.length>1||a6.test(bt))&&am.test(e)){bv=bv.reverse()
}return this.pushStack(bv,e,bu.join(","))
}});b.extend({filter:function(bt,e,bs){if(bs){bt=":not("+bt+")"
}return e.length===1?b.find.matchesSelector(e[0],bt)?[e[0]]:[]:b.find.matches(bt,e)
},dir:function(bt,bs,bv){var e=[],bu=bt[bs];
while(bu&&bu.nodeType!==9&&(bv===L||bu.nodeType!==1||!b(bu).is(bv))){if(bu.nodeType===1){e.push(bu)
}bu=bu[bs]
}return e
},nth:function(bv,e,bt,bu){e=e||1;
var bs=0;
for(;bv;
bv=bv[bt]){if(bv.nodeType===1&&++bs===e){break
}}return bv
},sibling:function(bt,bs){var e=[];
for(;bt;
bt=bt.nextSibling){if(bt.nodeType===1&&bt!==bs){e.push(bt)
}}return e
}});function aB(bu,bt,e){bt=bt||0;
if(b.isFunction(bt)){return b.grep(bu,function(bw,bv){var bx=!!bt.call(bw,bv,bw);
return bx===e
})}else{if(bt.nodeType){return b.grep(bu,function(bw,bv){return(bw===bt)===e
})}else{if(typeof bt==="string"){var bs=b.grep(bu,function(bv){return bv.nodeType===1
});if(bn.test(bt)){return b.filter(bt,bs,!e)
}else{bt=b.filter(bt,bs)
}}}}return b.grep(bu,function(bw,bv){return(b.inArray(bw,bt)>=0)===e
})}var ad=/ jQuery\d+="(?:\d+|null)"/g,an=/^\s+/,S=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,x=/<tbody/i,V=/<|&#?\w+;/,P=/<(?:script|object|embed|option|style)/i,o=/checked\s*(?:[^=]|=\s*.checked.)/i,bj=/\/(java|ecma)script/i,aJ=/^\s*<!(?:\[CDATA\[|\-\-)/,at={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};
at.optgroup=at.option;
at.tbody=at.tfoot=at.colgroup=at.caption=at.thead;
at.th=at.td;
if(!b.support.htmlSerialize){at._default=[1,"div<div>","</div>"]
}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bt){var bs=b(this);
bs.text(e.call(this,bt,bs.text()))
})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||aq).createTextNode(e))
}return b.text(this)
},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bt){b(this).wrapAll(e.call(this,bt))
})}if(this[0]){var bs=b(e,this[0].ownerDocument).eq(0).clone(true);
if(this[0].parentNode){bs.insertBefore(this[0])
}bs.map(function(){var bt=this;
while(bt.firstChild&&bt.firstChild.nodeType===1){bt=bt.firstChild
}return bt
}).append(this)
}return this
},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bs){b(this).wrapInner(e.call(this,bs))
})}return this.each(function(){var bs=b(this),bt=bs.contents();
if(bt.length){bt.wrapAll(e)
}else{bs.append(e)
}})},wrap:function(e){return this.each(function(){b(this).wrapAll(e)
})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)
}}).end()
},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)
}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)
}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bs){this.parentNode.insertBefore(bs,this)
})}else{if(arguments.length){var e=b(arguments[0]);
e.push.apply(e,this.toArray());
return this.pushStack(e,"before",arguments)
}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bs){this.parentNode.insertBefore(bs,this.nextSibling)
})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);
e.push.apply(e,b(arguments[0]).toArray());
return e
}}},remove:function(e,bu){for(var bs=0,bt;
(bt=this[bs])!=null;
bs++){if(!e||b.filter(e,[bt]).length){if(!bu&&bt.nodeType===1){b.cleanData(bt.getElementsByTagName("*"));
b.cleanData([bt])
}if(bt.parentNode){bt.parentNode.removeChild(bt)
}}}return this
},empty:function(){for(var e=0,bs;
(bs=this[e])!=null;
e++){if(bs.nodeType===1){b.cleanData(bs.getElementsByTagName("*"))
}while(bs.firstChild){bs.removeChild(bs.firstChild)
}}return this
},clone:function(bs,e){bs=bs==null?false:bs;
e=e==null?bs:e;
return this.map(function(){return b.clone(this,bs,e)
})},html:function(bu){if(bu===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ad,""):null
}else{if(typeof bu==="string"&&!P.test(bu)&&(b.support.leadingWhitespace||!an.test(bu))&&!at[(d.exec(bu)||["",""])[1].toLowerCase()]){bu=bu.replace(S,"<$1></$2>");
try{for(var bt=0,bs=this.length;
bt<bs;
bt++){if(this[bt].nodeType===1){b.cleanData(this[bt].getElementsByTagName("*"));
this[bt].innerHTML=bu
}}}catch(bv){this.empty().append(bu)
}}else{if(b.isFunction(bu)){this.each(function(bw){var e=b(this);
e.html(bu.call(this,bw,e.html()))
})}else{this.empty().append(bu)
}}}return this
},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bu){var bt=b(this),bs=bt.html();
bt.replaceWith(e.call(this,bu,bs))
})}if(typeof e!=="string"){e=b(e).detach()
}return this.each(function(){var bt=this.nextSibling,bs=this.parentNode;
b(this).remove();
if(bt){b(bt).before(e)
}else{b(bs).append(e)
}})}else{return this.length?this.pushStack(b(b.isFunction(e)?e():e),"replaceWith",e):this
}},detach:function(e){return this.remove(e,true)
},domManip:function(by,bC,bB){var bu,bv,bx,bA,bz=by[0],bs=[];
if(!b.support.checkClone&&arguments.length===3&&typeof bz==="string"&&o.test(bz)){return this.each(function(){b(this).domManip(by,bC,bB,true)
})}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);
by[0]=bz.call(this,bE,bC?bD.html():L);
bD.domManip(by,bC,bB)
})}if(this[0]){bA=bz&&bz.parentNode;
if(b.support.parentNode&&bA&&bA.nodeType===11&&bA.childNodes.length===this.length){bu={fragment:bA}
}else{bu=b.buildFragment(by,this,bs)
}bx=bu.fragment;
if(bx.childNodes.length===1){bv=bx=bx.firstChild
}else{bv=bx.firstChild
}if(bv){bC=bC&&b.nodeName(bv,"tr");
for(var bt=0,e=this.length,bw=e-1;
bt<e;bt++){bB.call(bC?a7(this[bt],bv):this[bt],bu.cacheable||(e>1&&bt<bw)?b.clone(bx,true,true):bx)
}}if(bs.length){b.each(bs,bm)
}}return this
}});function a7(e,bs){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e
}function u(e,by){if(by.nodeType!==1||!b.hasData(e)){return
}var bx=b.expando,bu=b.data(e),bv=b.data(by,bu);
if((bu=bu[bx])){var bz=bu.events;
bv=bv[bx]=b.extend({},bu);
if(bz){delete bv.handle;
bv.events={};
for(var bw in bz){for(var bt=0,bs=bz[bw].length;
bt<bs;
bt++){b.event.add(by,bw+(bz[bw][bt].namespace?".":"")+bz[bw][bt].namespace,bz[bw][bt],bz[bw][bt].data)
}}}}}function ae(bs,e){var bt;
if(e.nodeType!==1){return
}if(e.clearAttributes){e.clearAttributes()
}if(e.mergeAttributes){e.mergeAttributes(bs)
}bt=e.nodeName.toLowerCase();
if(bt==="object"){e.outerHTML=bs.outerHTML
}else{if(bt==="input"&&(bs.type==="checkbox"||bs.type==="radio")){if(bs.checked){e.defaultChecked=e.checked=bs.checked
}if(e.value!==bs.value){e.value=bs.value
}}else{if(bt==="option"){e.selected=bs.defaultSelected
}else{if(bt==="input"||bt==="textarea"){e.defaultValue=bs.defaultValue
}}}}e.removeAttribute(b.expando)
}b.buildFragment=function(bw,bu,bs){var bv,e,bt,bx;
if(bu&&bu[0]){bx=bu[0].ownerDocument||bu[0]
}if(!bx.createDocumentFragment){bx=aq
}if(bw.length===1&&typeof bw[0]==="string"&&bw[0].length<512&&bx===aq&&bw[0].charAt(0)==="<"&&!P.test(bw[0])&&(b.support.checkClone||!o.test(bw[0]))){e=true;
bt=b.fragments[bw[0]];
if(bt&&bt!==1){bv=bt
}}if(!bv){bv=bx.createDocumentFragment();
b.clean(bw,bx,bv,bs)
}if(e){b.fragments[bw[0]]=bt?bv:1
}return{fragment:bv,cacheable:e}
};b.fragments={};
b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bs){b.fn[e]=function(bt){var bw=[],bz=b(bt),by=this.length===1&&this[0].parentNode;
if(by&&by.nodeType===11&&by.childNodes.length===1&&bz.length===1){bz[bs](this[0]);
return this
}else{for(var bx=0,bu=bz.length;
bx<bu;
bx++){var bv=(bx>0?this.clone(true):this).get();
b(bz[bx])[bs](bv);
bw=bw.concat(bv)
}return this.pushStack(bw,e,bz.selector)
}}});function bc(e){if("getElementsByTagName" in e){return e.getElementsByTagName("*")
}else{if("querySelectorAll" in e){return e.querySelectorAll("*")
}else{return[]
}}}function av(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked
}}function F(e){if(b.nodeName(e,"input")){av(e)
}else{if("getElementsByTagName" in e){b.grep(e.getElementsByTagName("input"),av)
}}}b.extend({clone:function(bv,bx,bt){var bw=bv.cloneNode(true),e,bs,bu;
if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bv.nodeType===1||bv.nodeType===11)&&!b.isXMLDoc(bv)){ae(bv,bw);
e=bc(bv);
bs=bc(bw);
for(bu=0;
e[bu];
++bu){if(bs[bu]){ae(e[bu],bs[bu])
}}}if(bx){u(bv,bw);
if(bt){e=bc(bv);
bs=bc(bw);
for(bu=0;
e[bu];
++bu){u(e[bu],bs[bu])
}}}e=bs=null;
return bw
},clean:function(bt,bv,bE,bx){var bC;
bv=bv||aq;
if(typeof bv.createElement==="undefined"){bv=bv.ownerDocument||bv[0]&&bv[0].ownerDocument||aq
}var bF=[],by;
for(var bB=0,bw;
(bw=bt[bB])!=null;
bB++){if(typeof bw==="number"){bw+=""
}if(!bw){continue
}if(typeof bw==="string"){if(!V.test(bw)){bw=bv.createTextNode(bw)
}else{bw=bw.replace(S,"<$1></$2>");
var bH=(d.exec(bw)||["",""])[1].toLowerCase(),bu=at[bH]||at._default,bA=bu[0],bs=bv.createElement("div");
bs.innerHTML=bu[1]+bw+bu[2];
while(bA--){bs=bs.lastChild
}if(!b.support.tbody){var e=x.test(bw),bz=bH==="table"&&!e?bs.firstChild&&bs.firstChild.childNodes:bu[1]==="<table>"&&!e?bs.childNodes:[];
for(by=bz.length-1;
by>=0;
--by){if(b.nodeName(bz[by],"tbody")&&!bz[by].childNodes.length){bz[by].parentNode.removeChild(bz[by])
}}}if(!b.support.leadingWhitespace&&an.test(bw)){bs.insertBefore(bv.createTextNode(an.exec(bw)[0]),bs.firstChild)
}bw=bs.childNodes
}}var bD;
if(!b.support.appendChecked){if(bw[0]&&typeof(bD=bw.length)==="number"){for(by=0;
by<bD;
by++){F(bw[by])
}}else{F(bw)
}}if(bw.nodeType){bF.push(bw)
}else{bF=b.merge(bF,bw)
}}if(bE){bC=function(bI){return !bI.type||bj.test(bI.type)
};for(bB=0;
bF[bB];
bB++){if(bx&&b.nodeName(bF[bB],"script")&&(!bF[bB].type||bF[bB].type.toLowerCase()==="text/javascript")){bx.push(bF[bB].parentNode?bF[bB].parentNode.removeChild(bF[bB]):bF[bB])
}else{if(bF[bB].nodeType===1){var bG=b.grep(bF[bB].getElementsByTagName("script"),bC);
bF.splice.apply(bF,[bB+1,0].concat(bG))
}bE.appendChild(bF[bB])
}}}return bF
},cleanData:function(bs){var bv,bt,e=b.cache,bA=b.expando,by=b.event.special,bx=b.support.deleteExpando;
for(var bw=0,bu;
(bu=bs[bw])!=null;
bw++){if(bu.nodeName&&b.noData[bu.nodeName.toLowerCase()]){continue
}bt=bu[b.expando];
if(bt){bv=e[bt]&&e[bt][bA];
if(bv&&bv.events){for(var bz in bv.events){if(by[bz]){b.event.remove(bu,bz)
}else{b.removeEvent(bu,bz,bv.handle)
}}if(bv.handle){bv.handle.elem=null
}}if(bx){delete bu[b.expando]
}else{if(bu.removeAttribute){bu.removeAttribute(b.expando)
}}delete e[bt]
}}}});
function bm(e,bs){if(bs.src){b.ajax({url:bs.src,async:false,dataType:"script"})
}else{b.globalEval((bs.text||bs.textContent||bs.innerHTML||"").replace(aJ,"/*$0*/"))
}if(bs.parentNode){bs.parentNode.removeChild(bs)
}}var ag=/alpha\([^)]*\)/i,ap=/opacity=([^)]*)/,A=/([A-Z]|^ms)/g,a9=/^-?\d+(?:px)?$/i,bl=/^-?\d/,J=/^([\-+])=([\-+.\de]+)/,a4={position:"absolute",visibility:"hidden",display:"block"},aj=["Left","Right"],aZ=["Top","Bottom"],W,aE,aT;
b.fn.css=function(e,bs){if(arguments.length===2&&bs===L){return this
}return b.access(this,e,bs,true,function(bu,bt,bv){return bv!==L?b.style(bu,bt,bv):b.css(bu,bt)
})};b.extend({cssHooks:{opacity:{get:function(bt,bs){if(bs){var e=W(bt,"opacity","opacity");
return e===""?"1":e
}else{return bt.style.opacity
}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bu,bt,bA,bv){if(!bu||bu.nodeType===3||bu.nodeType===8||!bu.style){return
}var by,bz,bw=b.camelCase(bt),bs=bu.style,bB=b.cssHooks[bw];
bt=b.cssProps[bw]||bw;
if(bA!==L){bz=typeof bA;
if(bz==="string"&&(by=J.exec(bA))){bA=(+(by[1]+1)*+by[2])+parseFloat(b.css(bu,bt));
bz="number"
}if(bA==null||bz==="number"&&isNaN(bA)){return
}if(bz==="number"&&!b.cssNumber[bw]){bA+="px"
}if(!bB||!("set" in bB)||(bA=bB.set(bu,bA))!==L){try{bs[bt]=bA
}catch(bx){}}}else{if(bB&&"get" in bB&&(by=bB.get(bu,false,bv))!==L){return by
}return bs[bt]
}},css:function(bv,bu,bs){var bt,e;
bu=b.camelCase(bu);
e=b.cssHooks[bu];
bu=b.cssProps[bu]||bu;
if(bu==="cssFloat"){bu="float"
}if(e&&"get" in e&&(bt=e.get(bv,true,bs))!==L){return bt
}else{if(W){return W(bv,bu)
}}},swap:function(bu,bt,bv){var e={};
for(var bs in bt){e[bs]=bu.style[bs];
bu.style[bs]=bt[bs]
}bv.call(bu);
for(bs in bt){bu.style[bs]=e[bs]
}}});b.curCSS=b.css;
b.each(["height","width"],function(bs,e){b.cssHooks[e]={get:function(bv,bu,bt){var bw;
if(bu){if(bv.offsetWidth!==0){return p(bv,e,bt)
}else{b.swap(bv,a4,function(){bw=p(bv,e,bt)
})}return bw
}},set:function(bt,bu){if(a9.test(bu)){bu=parseFloat(bu);
if(bu>=0){return bu+"px"
}}else{return bu
}}}});
if(!b.support.opacity){b.cssHooks.opacity={get:function(bs,e){return ap.test((e&&bs.currentStyle?bs.currentStyle.filter:bs.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""
},set:function(bv,bw){var bu=bv.style,bs=bv.currentStyle,e=b.isNaN(bw)?"":"alpha(opacity="+bw*100+")",bt=bs&&bs.filter||bu.filter||"";
bu.zoom=1;
if(bw>=1&&b.trim(bt.replace(ag,""))===""){bu.removeAttribute("filter");
if(bs&&!bs.filter){return
}}bu.filter=ag.test(bt)?bt.replace(ag,e):bt+" "+e
}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bt,bs){var e;
b.swap(bt,{display:"inline-block"},function(){if(bs){e=W(bt,"margin-right","marginRight")
}else{e=bt.style.marginRight
}});return e
}}}});
if(aq.defaultView&&aq.defaultView.getComputedStyle){aE=function(bv,bt){var bs,bu,e;
bt=bt.replace(A,"-$1").toLowerCase();
if(!(bu=bv.ownerDocument.defaultView)){return L
}if((e=bu.getComputedStyle(bv,null))){bs=e.getPropertyValue(bt);
if(bs===""&&!b.contains(bv.ownerDocument.documentElement,bv)){bs=b.style(bv,bt)
}}return bs
}}if(aq.documentElement.currentStyle){aT=function(bv,bt){var bw,bs=bv.currentStyle&&bv.currentStyle[bt],e=bv.runtimeStyle&&bv.runtimeStyle[bt],bu=bv.style;
if(!a9.test(bs)&&bl.test(bs)){bw=bu.left;
if(e){bv.runtimeStyle.left=bv.currentStyle.left
}bu.left=bt==="fontSize"?"1em":(bs||0);
bs=bu.pixelLeft+"px";
bu.left=bw;
if(e){bv.runtimeStyle.left=e
}}return bs===""?"auto":bs
}}W=aE||aT;
function p(bt,bs,e){var bv=bs==="width"?bt.offsetWidth:bt.offsetHeight,bu=bs==="width"?aj:aZ;
if(bv>0){if(e!=="border"){b.each(bu,function(){if(!e){bv-=parseFloat(b.css(bt,"padding"+this))||0
}if(e==="margin"){bv+=parseFloat(b.css(bt,e+this))||0
}else{bv-=parseFloat(b.css(bt,"border"+this+"Width"))||0
}})}return bv+"px"
}bv=W(bt,bs,bs);
if(bv<0||bv==null){bv=bt.style[bs]||0
}bv=parseFloat(bv)||0;
if(e){b.each(bu,function(){bv+=parseFloat(b.css(bt,"padding"+this))||0;
if(e!=="padding"){bv+=parseFloat(b.css(bt,"border"+this+"Width"))||0
}if(e==="margin"){bv+=parseFloat(b.css(bt,e+this))||0
}})}return bv+"px"
}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bt){var bs=bt.offsetWidth,e=bt.offsetHeight;
return(bs===0&&e===0)||(!b.support.reliableHiddenOffsets&&(bt.style.display||b.css(bt,"display"))==="none")
};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)
}}var k=/%20/g,al=/\[\]$/,bq=/\r?\n/g,bo=/#.*$/,az=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aW=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aL=/^(?:GET|HEAD)$/,c=/^\/\//,M=/\?/,a3=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,r=/^(?:select|textarea)/i,h=/\s+/,bp=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,B=b.fn.load,X={},s={},aA,t,aP=["*/"]+["*"];
try{aA=bi.href
}catch(ar){aA=aq.createElement("a");
aA.href="";
aA=aA.href
}t=K.exec(aA.toLowerCase())||[];
function f(e){return function(bv,bx){if(typeof bv!=="string"){bx=bv;
bv="*"
}if(b.isFunction(bx)){var bu=bv.toLowerCase().split(h),bt=0,bw=bu.length,bs,by,bz;
for(;bt<bw;
bt++){bs=bu[bt];
bz=/^\+/.test(bs);
if(bz){bs=bs.substr(1)||"*"
}by=e[bs]=e[bs]||[];
by[bz?"unshift":"push"](bx)
}}}}function aR(bs,bB,bw,bA,by,bu){by=by||bB.dataTypes[0];
bu=bu||{};
bu[by]=true;
var bx=bs[by],bt=0,e=bx?bx.length:0,bv=(bs===X),bz;
for(;bt<e&&(bv||!bz);
bt++){bz=bx[bt](bB,bw,bA);
if(typeof bz==="string"){if(!bv||bu[bz]){bz=L
}else{bB.dataTypes.unshift(bz);
bz=aR(bs,bB,bw,bA,bz,bu)
}}}if((bv||!bz)&&!bu["*"]){bz=aR(bs,bB,bw,bA,"*",bu)
}return bz
}function ai(bt,bu){var bs,e,bv=b.ajaxSettings.flatOptions||{};
for(bs in bu){if(bu[bs]!==L){(bv[bs]?bt:(e||(e={})))[bs]=bu[bs]
}}if(e){b.extend(true,bt,e)
}}b.fn.extend({load:function(bt,bw,bx){if(typeof bt!=="string"&&B){return B.apply(this,arguments)
}else{if(!this.length){return this
}}var bv=bt.indexOf(" ");
if(bv>=0){var e=bt.slice(bv,bt.length);
bt=bt.slice(0,bv)
}var bu="GET";
if(bw){if(b.isFunction(bw)){bx=bw;
bw=L}else{if(typeof bw==="object"){bw=b.param(bw,b.ajaxSettings.traditional);
bu="POST"
}}}var bs=this;
b.ajax({url:bt,type:bu,dataType:"html",data:bw,complete:function(bz,by,bA){bA=bz.responseText;
if(bz.isResolved()){bz.done(function(bB){bA=bB
});bs.html(e?b("<div>").append(bA.replace(a3,"")).find(e):bA)
}if(bx){bs.each(bx,[bA,by,bz])
}}});return this
},serialize:function(){return b.param(this.serializeArray())
},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this
}).filter(function(){return this.name&&!this.disabled&&(this.checked||r.test(this.nodeName)||aW.test(this.type))
}).map(function(e,bs){var bt=b(this).val();
return bt==null?null:b.isArray(bt)?b.map(bt,function(bv,bu){return{name:bs.name,value:bv.replace(bq,"\r\n")}
}):{name:bs.name,value:bt.replace(bq,"\r\n")}
}).get()
}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bs){b.fn[bs]=function(bt){return this.bind(bs,bt)
}});b.each(["get","post"],function(e,bs){b[bs]=function(bt,bv,bw,bu){if(b.isFunction(bv)){bu=bu||bw;
bw=bv;
bv=L}return b.ajax({type:bs,url:bt,data:bv,success:bw,dataType:bu})
}});b.extend({getScript:function(e,bs){return b.get(e,L,bs,"script")
},getJSON:function(e,bs,bt){return b.get(e,bs,bt,"json")
},ajaxSetup:function(bs,e){if(e){ai(bs,b.ajaxSettings)
}else{e=bs;
bs=b.ajaxSettings
}ai(bs,e);
return bs
},ajaxSettings:{url:aA,isLocal:aI.test(t[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aP},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a8.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(X),ajaxTransport:f(s),ajax:function(bw,bu){if(typeof bw==="object"){bu=bw;
bw=L}bu=bu||{};
var bA=b.ajaxSetup({},bu),bP=bA.context||bA,bD=bP!==bA&&(bP.nodeType||bP instanceof b)?b(bP):b.event,bO=b.Deferred(),bK=b._Deferred(),by=bA.statusCode||{},bz,bE={},bL={},bN,bv,bI,bB,bF,bx=0,bt,bH,bG={readyState:0,setRequestHeader:function(bQ,bR){if(!bx){var e=bQ.toLowerCase();
bQ=bL[e]=bL[e]||bQ;
bE[bQ]=bR
}return this
},getAllResponseHeaders:function(){return bx===2?bN:null
},getResponseHeader:function(bQ){var e;
if(bx===2){if(!bv){bv={};
while((e=az.exec(bN))){bv[e[1].toLowerCase()]=e[2]
}}e=bv[bQ.toLowerCase()]
}return e===L?null:e
},overrideMimeType:function(e){if(!bx){bA.mimeType=e
}return this
},abort:function(e){e=e||"abort";
if(bI){bI.abort(e)
}bC(0,e);
return this
}};function bC(bW,bR,bX,bT){if(bx===2){return
}bx=2;
if(bB){clearTimeout(bB)
}bI=L;
bN=bT||"";
bG.readyState=bW>0?4:0;
var bQ,b1,b0,bU=bR,bV=bX?bg(bA,bG,bX):L,bS,bZ;
if(bW>=200&&bW<300||bW===304){if(bA.ifModified){if((bS=bG.getResponseHeader("Last-Modified"))){b.lastModified[bz]=bS
}if((bZ=bG.getResponseHeader("Etag"))){b.etag[bz]=bZ
}}if(bW===304){bU="notmodified";
bQ=true
}else{try{b1=G(bA,bV);
bU="success";
bQ=true
}catch(bY){bU="parsererror";
b0=bY}}}else{b0=bU;
if(!bU||bW){bU="error";
if(bW<0){bW=0
}}}bG.status=bW;
bG.statusText=""+(bR||bU);
if(bQ){bO.resolveWith(bP,[b1,bU,bG])
}else{bO.rejectWith(bP,[bG,bU,b0])
}bG.statusCode(by);
by=L;if(bt){bD.trigger("ajax"+(bQ?"Success":"Error"),[bG,bA,bQ?b1:b0])
}bK.resolveWith(bP,[bG,bU]);
if(bt){bD.trigger("ajaxComplete",[bG,bA]);
if(!(--b.active)){b.event.trigger("ajaxStop")
}}}bO.promise(bG);
bG.success=bG.done;
bG.error=bG.fail;
bG.complete=bK.done;
bG.statusCode=function(bQ){if(bQ){var e;
if(bx<2){for(e in bQ){by[e]=[by[e],bQ[e]]
}}else{e=bQ[bG.status];
bG.then(e,e)
}}return this
};bA.url=((bw||bA.url)+"").replace(bo,"").replace(c,t[1]+"//");
bA.dataTypes=b.trim(bA.dataType||"*").toLowerCase().split(h);
if(bA.crossDomain==null){bF=K.exec(bA.url.toLowerCase());
bA.crossDomain=!!(bF&&(bF[1]!=t[1]||bF[2]!=t[2]||(bF[3]||(bF[1]==="http:"?80:443))!=(t[3]||(t[1]==="http:"?80:443))))
}if(bA.data&&bA.processData&&typeof bA.data!=="string"){bA.data=b.param(bA.data,bA.traditional)
}aR(X,bA,bu,bG);
if(bx===2){return false
}bt=bA.global;
bA.type=bA.type.toUpperCase();
bA.hasContent=!aL.test(bA.type);
if(bt&&b.active++===0){b.event.trigger("ajaxStart")
}if(!bA.hasContent){if(bA.data){bA.url+=(M.test(bA.url)?"&":"?")+bA.data;
delete bA.data
}bz=bA.url;
if(bA.cache===false){var bs=b.now(),bM=bA.url.replace(bp,"$1_="+bs);
bA.url=bM+((bM===bA.url)?(M.test(bA.url)?"&":"?")+"_="+bs:"")
}}if(bA.data&&bA.hasContent&&bA.contentType!==false||bu.contentType){bG.setRequestHeader("Content-Type",bA.contentType)
}if(bA.ifModified){bz=bz||bA.url;
if(b.lastModified[bz]){bG.setRequestHeader("If-Modified-Since",b.lastModified[bz])
}if(b.etag[bz]){bG.setRequestHeader("If-None-Match",b.etag[bz])
}}bG.setRequestHeader("Accept",bA.dataTypes[0]&&bA.accepts[bA.dataTypes[0]]?bA.accepts[bA.dataTypes[0]]+(bA.dataTypes[0]!=="*"?", "+aP+"; q=0.01":""):bA.accepts["*"]);
for(bH in bA.headers){bG.setRequestHeader(bH,bA.headers[bH])
}if(bA.beforeSend&&(bA.beforeSend.call(bP,bG,bA)===false||bx===2)){bG.abort();
return false
}for(bH in {success:1,error:1,complete:1}){bG[bH](bA[bH])
}bI=aR(s,bA,bu,bG);
if(!bI){bC(-1,"No Transport")
}else{bG.readyState=1;
if(bt){bD.trigger("ajaxSend",[bG,bA])
}if(bA.async&&bA.timeout>0){bB=setTimeout(function(){bG.abort("timeout")
},bA.timeout)
}try{bx=1;
bI.send(bE,bC)
}catch(bJ){if(bx<2){bC(-1,bJ)
}else{b.error(bJ)
}}}return bG
},param:function(e,bt){var bs=[],bv=function(bw,bx){bx=b.isFunction(bx)?bx():bx;
bs[bs.length]=encodeURIComponent(bw)+"="+encodeURIComponent(bx)
};if(bt===L){bt=b.ajaxSettings.traditional
}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bv(this.name,this.value)
})}else{for(var bu in e){w(bu,e[bu],bt,bv)
}}return bs.join("&").replace(k,"+")
}});function w(bt,bv,bs,bu){if(b.isArray(bv)){b.each(bv,function(bx,bw){if(bs||al.test(bt)){bu(bt,bw)
}else{w(bt+"["+(typeof bw==="object"||b.isArray(bw)?bx:"")+"]",bw,bs,bu)
}})}else{if(!bs&&bv!=null&&typeof bv==="object"){for(var e in bv){w(bt+"["+e+"]",bv[e],bs,bu)
}}else{bu(bt,bv)
}}}b.extend({active:0,lastModified:{},etag:{}});
function bg(bA,bz,bw){var bs=bA.contents,by=bA.dataTypes,bt=bA.responseFields,bv,bx,bu,e;
for(bx in bt){if(bx in bw){bz[bt[bx]]=bw[bx]
}}while(by[0]==="*"){by.shift();
if(bv===L){bv=bA.mimeType||bz.getResponseHeader("content-type")
}}if(bv){for(bx in bs){if(bs[bx]&&bs[bx].test(bv)){by.unshift(bx);
break}}}if(by[0] in bw){bu=by[0]
}else{for(bx in bw){if(!by[0]||bA.converters[bx+" "+by[0]]){bu=bx;
break}if(!e){e=bx
}}bu=bu||e
}if(bu){if(bu!==by[0]){by.unshift(bu)
}return bw[bu]
}}function G(bE,bw){if(bE.dataFilter){bw=bE.dataFilter(bw,bE.dataType)
}var bA=bE.dataTypes,bD={},bx,bB,bt=bA.length,by,bz=bA[0],bu,bv,bC,bs,e;
for(bx=1;
bx<bt;
bx++){if(bx===1){for(bB in bE.converters){if(typeof bB==="string"){bD[bB.toLowerCase()]=bE.converters[bB]
}}}bu=bz;
bz=bA[bx];
if(bz==="*"){bz=bu
}else{if(bu!=="*"&&bu!==bz){bv=bu+" "+bz;
bC=bD[bv]||bD["* "+bz];
if(!bC){e=L;
for(bs in bD){by=bs.split(" ");
if(by[0]===bu||by[0]==="*"){e=bD[by[1]+" "+bz];
if(e){bs=bD[bs];
if(bs===true){bC=e
}else{if(e===true){bC=bs
}}break
}}}}if(!(bC||e)){b.error("No conversion from "+bv.replace(" "," to "))
}if(bC!==true){bw=bC?bC(bw):e(bs(bw))
}}}}return bw
}var ay=b.now(),v=/(\=)\?(&|$)|\?\?/i;
b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(ay++)
}});b.ajaxPrefilter("json jsonp",function(bA,bx,bz){var bu=bA.contentType==="application/x-www-form-urlencoded"&&(typeof bA.data==="string");
if(bA.dataTypes[0]==="jsonp"||bA.jsonp!==false&&(v.test(bA.url)||bu&&v.test(bA.data))){var by,bt=bA.jsonpCallback=b.isFunction(bA.jsonpCallback)?bA.jsonpCallback():bA.jsonpCallback,bw=a8[bt],e=bA.url,bv=bA.data,bs="$1"+bt+"$2";
if(bA.jsonp!==false){e=e.replace(v,bs);
if(bA.url===e){if(bu){bv=bv.replace(v,bs)
}if(bA.data===bv){e+=(/\?/.test(e)?"&":"?")+bA.jsonp+"="+bt
}}}bA.url=e;
bA.data=bv;
a8[bt]=function(bB){by=[bB]
};bz.always(function(){a8[bt]=bw;
if(by&&b.isFunction(bw)){a8[bt](by[0])
}});bA.converters["script json"]=function(){if(!by){b.error(bt+" was not called")
}return by[0]
};bA.dataTypes[0]="json";
return"script"
}});b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){b.globalEval(e);
return e
}}});b.ajaxPrefilter("script",function(e){if(e.cache===L){e.cache=false
}if(e.crossDomain){e.type="GET";
e.global=false
}});b.ajaxTransport("script",function(bt){if(bt.crossDomain){var e,bs=aq.head||aq.getElementsByTagName("head")[0]||aq.documentElement;
return{send:function(bu,bv){e=aq.createElement("script");
e.async="async";
if(bt.scriptCharset){e.charset=bt.scriptCharset
}e.src=bt.url;
e.onload=e.onreadystatechange=function(bx,bw){if(bw||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;
if(bs&&e.parentNode){bs.removeChild(e)
}e=L;if(!bw){bv(200,"success")
}}};bs.insertBefore(e,bs.firstChild)
},abort:function(){if(e){e.onload(0,1)
}}}}});
var C=a8.ActiveXObject?function(){for(var e in N){N[e](0,1)
}}:false,z=0,N;
function aH(){try{return new a8.XMLHttpRequest()
}catch(bs){}}function af(){try{return new a8.ActiveXObject("Microsoft.XMLHTTP")
}catch(bs){}}b.ajaxSettings.xhr=a8.ActiveXObject?function(){return !this.isLocal&&aH()||af()
}:aH;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})
})(b.ajaxSettings.xhr());
if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var bs;
return{send:function(by,bt){var bx=e.xhr(),bw,bv;
if(e.username){bx.open(e.type,e.url,e.async,e.username,e.password)
}else{bx.open(e.type,e.url,e.async)
}if(e.xhrFields){for(bv in e.xhrFields){bx[bv]=e.xhrFields[bv]
}}if(e.mimeType&&bx.overrideMimeType){bx.overrideMimeType(e.mimeType)
}if(!e.crossDomain&&!by["X-Requested-With"]){by["X-Requested-With"]="XMLHttpRequest"
}try{for(bv in by){bx.setRequestHeader(bv,by[bv])
}}catch(bu){}bx.send((e.hasContent&&e.data)||null);
bs=function(bH,bB){var bC,bA,bz,bF,bE;
try{if(bs&&(bB||bx.readyState===4)){bs=L;
if(bw){bx.onreadystatechange=b.noop;
if(C){delete N[bw]
}}if(bB){if(bx.readyState!==4){bx.abort()
}}else{bC=bx.status;
bz=bx.getAllResponseHeaders();
bF={};
bE=bx.responseXML;
if(bE&&bE.documentElement){bF.xml=bE
}bF.text=bx.responseText;
try{bA=bx.statusText
}catch(bG){bA=""
}if(!bC&&e.isLocal&&!e.crossDomain){bC=bF.text?200:404
}else{if(bC===1223){bC=204
}}}}}catch(bD){if(!bB){bt(-1,bD)
}}if(bF){bt(bC,bA,bF,bz)
}};if(!e.async||bx.readyState===4){bs()
}else{bw=++z;
if(C){if(!N){N={};
b(a8).unload(C)
}N[bw]=bs
}bx.onreadystatechange=bs
}},abort:function(){if(bs){bs(0,1)
}}}}})
}var R={},a5,n,ax=/^(?:toggle|show|hide)$/,aN=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a0,aD=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a1;
b.fn.extend({show:function(bu,bx,bw){var bt,bv;
if(bu||bu===0){return this.animate(aY("show",3),bu,bx,bw)
}else{for(var bs=0,e=this.length;
bs<e;bs++){bt=this[bs];
if(bt.style){bv=bt.style.display;
if(!b._data(bt,"olddisplay")&&bv==="none"){bv=bt.style.display=""
}if(bv===""&&b.css(bt,"display")==="none"){b._data(bt,"olddisplay",y(bt.nodeName))
}}}for(bs=0;
bs<e;bs++){bt=this[bs];
if(bt.style){bv=bt.style.display;
if(bv===""||bv==="none"){bt.style.display=b._data(bt,"olddisplay")||""
}}}return this
}},hide:function(bt,bw,bv){if(bt||bt===0){return this.animate(aY("hide",3),bt,bw,bv)
}else{for(var bs=0,e=this.length;
bs<e;bs++){if(this[bs].style){var bu=b.css(this[bs],"display");
if(bu!=="none"&&!b._data(this[bs],"olddisplay")){b._data(this[bs],"olddisplay",bu)
}}}for(bs=0;
bs<e;bs++){if(this[bs].style){this[bs].style.display="none"
}}return this
}},_toggle:b.fn.toggle,toggle:function(bt,bs,bu){var e=typeof bt==="boolean";
if(b.isFunction(bt)&&b.isFunction(bs)){this._toggle.apply(this,arguments)
}else{if(bt==null||e){this.each(function(){var bv=e?bt:b(this).is(":hidden");
b(this)[bv?"show":"hide"]()
})}else{this.animate(aY("toggle",3),bt,bs,bu)
}}return this
},fadeTo:function(e,bu,bt,bs){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bu},e,bt,bs)
},animate:function(bv,bs,bu,bt){var e=b.speed(bs,bu,bt);
if(b.isEmptyObject(bv)){return this.each(e.complete,[false])
}bv=b.extend({},bv);
return this[e.queue===false?"each":"queue"](function(){if(e.queue===false){b._mark(this)
}var bz=b.extend({},e),bG=this.nodeType===1,bD=bG&&b(this).is(":hidden"),bw,bA,by,bF,bE,bC,bx,bB,bH;
bz.animatedProperties={};
for(by in bv){bw=b.camelCase(by);
if(by!==bw){bv[bw]=bv[by];
delete bv[by]
}bA=bv[bw];
if(b.isArray(bA)){bz.animatedProperties[bw]=bA[1];
bA=bv[bw]=bA[0]
}else{bz.animatedProperties[bw]=bz.specialEasing&&bz.specialEasing[bw]||bz.easing||"swing"
}if(bA==="hide"&&bD||bA==="show"&&!bD){return bz.complete.call(this)
}if(bG&&(bw==="height"||bw==="width")){bz.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];
if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout){this.style.display="inline-block"
}else{bF=y(this.nodeName);
if(bF==="inline"){this.style.display="inline-block"
}else{this.style.display="inline";
this.style.zoom=1
}}}}}if(bz.overflow!=null){this.style.overflow="hidden"
}for(by in bv){bE=new b.fx(this,bz,by);
bA=bv[by];
if(ax.test(bA)){bE[bA==="toggle"?bD?"show":"hide":bA]()
}else{bC=aN.exec(bA);
bx=bE.cur();
if(bC){bB=parseFloat(bC[2]);
bH=bC[3]||(b.cssNumber[by]?"":"px");
if(bH!=="px"){b.style(this,by,(bB||1)+bH);
bx=((bB||1)/bE.cur())*bx;
b.style(this,by,bx+bH)
}if(bC[1]){bB=((bC[1]==="-="?-1:1)*bB)+bx
}bE.custom(bx,bB,bH)
}else{bE.custom(bx,bA,"")
}}}return true
})},stop:function(bs,e){if(bs){this.queue([])
}this.each(function(){var bu=b.timers,bt=bu.length;
if(!e){b._unmark(true,this)
}while(bt--){if(bu[bt].elem===this){if(e){bu[bt](true)
}bu.splice(bt,1)
}}});if(!e){this.dequeue()
}return this
}});function bd(){setTimeout(ao,0);
return(a1=b.now())
}function ao(){a1=L
}function aY(bs,e){var bt={};
b.each(aD.concat.apply([],aD.slice(0,e)),function(){bt[this]=bs
});return bt
}b.each({slideDown:aY("show",1),slideUp:aY("hide",1),slideToggle:aY("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bs){b.fn[e]=function(bt,bv,bu){return this.animate(bs,bt,bv,bu)
}});b.extend({speed:function(bt,bu,bs){var e=bt&&typeof bt==="object"?b.extend({},bt):{complete:bs||!bs&&bu||b.isFunction(bt)&&bt,duration:bt,easing:bs&&bu||bu&&!b.isFunction(bu)&&bu};
e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;
e.old=e.complete;
e.complete=function(bv){if(b.isFunction(e.old)){e.old.call(this)
}if(e.queue!==false){b.dequeue(this)
}else{if(bv!==false){b._unmark(this)
}}};return e
},easing:{linear:function(bt,bu,e,bs){return e+bs*bt
},swing:function(bt,bu,e,bs){return((-Math.cos(bt*Math.PI)/2)+0.5)*bs+e
}},timers:[],fx:function(bs,e,bt){this.options=e;
this.elem=bs;
this.prop=bt;
e.orig=e.orig||{}
}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)
}(b.fx.step[this.prop]||b.fx.step._default)(this)
},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]
}var e,bs=b.css(this.elem,this.prop);
return isNaN(e=parseFloat(bs))?!bs||bs==="auto"?0:bs:e
},custom:function(bw,bv,bu){var e=this,bt=b.fx;
this.startTime=a1||bd();
this.start=bw;
this.end=bv;
this.unit=bu||this.unit||(b.cssNumber[this.prop]?"":"px");
this.now=this.start;
this.pos=this.state=0;
function bs(bx){return e.step(bx)
}bs.elem=this.elem;
if(bs()&&b.timers.push(bs)&&!a0){a0=setInterval(bt.tick,bt.interval)
}},show:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);
this.options.show=true;
this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());
b(this.elem).show()
},hide:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);
this.options.hide=true;
this.custom(this.cur(),0)
},step:function(bv){var bu=a1||bd(),e=true,bw=this.elem,bs=this.options,bt,by;
if(bv||bu>=bs.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
bs.animatedProperties[this.prop]=true;
for(bt in bs.animatedProperties){if(bs.animatedProperties[bt]!==true){e=false
}}if(e){if(bs.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bz,bA){bw.style["overflow"+bA]=bs.overflow[bz]
})}if(bs.hide){b(bw).hide()
}if(bs.hide||bs.show){for(var bx in bs.animatedProperties){b.style(bw,bx,bs.orig[bx])
}}bs.complete.call(bw)
}return false
}else{if(bs.duration==Infinity){this.now=bu
}else{by=bu-this.startTime;
this.state=by/bs.duration;
this.pos=b.easing[bs.animatedProperties[this.prop]](this.state,by,0,1,bs.duration);
this.now=this.start+((this.end-this.start)*this.pos)
}this.update()
}return true
}};b.extend(b.fx,{tick:function(){for(var bs=b.timers,e=0;
e<bs.length;
++e){if(!bs[e]()){bs.splice(e--,1)
}}if(!bs.length){b.fx.stop()
}},interval:13,stop:function(){clearInterval(a0);
a0=null
},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)
},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=(e.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit
}else{e.elem[e.prop]=e.now
}}}});
if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bs){return e===bs.elem
}).length
}}function y(bu){if(!R[bu]){var e=aq.body,bs=b("<"+bu+">").appendTo(e),bt=bs.css("display");
bs.remove();
if(bt==="none"||bt===""){if(!a5){a5=aq.createElement("iframe");
a5.frameBorder=a5.width=a5.height=0
}e.appendChild(a5);
if(!n||!a5.createElement){n=(a5.contentWindow||a5.contentDocument).document;
n.write((aq.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");
n.close()
}bs=n.createElement(bu);
n.body.appendChild(bs);
bt=b.css(bs,"display");
e.removeChild(a5)
}R[bu]=bt
}return R[bu]
}var U=/^t(?:able|d|h)$/i,aa=/^(?:body|html)$/i;
if("getBoundingClientRect" in aq.documentElement){b.fn.offset=function(bF){var bv=this[0],by;
if(bF){return this.each(function(e){b.offset.setOffset(this,bF,e)
})}if(!bv||!bv.ownerDocument){return null
}if(bv===bv.ownerDocument.body){return b.offset.bodyOffset(bv)
}try{by=bv.getBoundingClientRect()
}catch(bC){}var bE=bv.ownerDocument,bt=bE.documentElement;
if(!by||!b.contains(bt,bv)){return by?{top:by.top,left:by.left}:{top:0,left:0}
}var bz=bE.body,bA=aG(bE),bx=bt.clientTop||bz.clientTop||0,bB=bt.clientLeft||bz.clientLeft||0,bs=bA.pageYOffset||b.support.boxModel&&bt.scrollTop||bz.scrollTop,bw=bA.pageXOffset||b.support.boxModel&&bt.scrollLeft||bz.scrollLeft,bD=by.top+bs-bx,bu=by.left+bw-bB;
return{top:bD,left:bu}
}}else{b.fn.offset=function(bC){var bw=this[0];
if(bC){return this.each(function(bD){b.offset.setOffset(this,bC,bD)
})}if(!bw||!bw.ownerDocument){return null
}if(bw===bw.ownerDocument.body){return b.offset.bodyOffset(bw)
}b.offset.initialize();
var bz,bt=bw.offsetParent,bs=bw,bB=bw.ownerDocument,bu=bB.documentElement,bx=bB.body,by=bB.defaultView,e=by?by.getComputedStyle(bw,null):bw.currentStyle,bA=bw.offsetTop,bv=bw.offsetLeft;
while((bw=bw.parentNode)&&bw!==bx&&bw!==bu){if(b.offset.supportsFixedPosition&&e.position==="fixed"){break
}bz=by?by.getComputedStyle(bw,null):bw.currentStyle;
bA-=bw.scrollTop;
bv-=bw.scrollLeft;
if(bw===bt){bA+=bw.offsetTop;
bv+=bw.offsetLeft;
if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&U.test(bw.nodeName))){bA+=parseFloat(bz.borderTopWidth)||0;
bv+=parseFloat(bz.borderLeftWidth)||0
}bs=bt;
bt=bw.offsetParent
}if(b.offset.subtractsBorderForOverflowNotVisible&&bz.overflow!=="visible"){bA+=parseFloat(bz.borderTopWidth)||0;
bv+=parseFloat(bz.borderLeftWidth)||0
}e=bz}if(e.position==="relative"||e.position==="static"){bA+=bx.offsetTop;
bv+=bx.offsetLeft
}if(b.offset.supportsFixedPosition&&e.position==="fixed"){bA+=Math.max(bu.scrollTop,bx.scrollTop);
bv+=Math.max(bu.scrollLeft,bx.scrollLeft)
}return{top:bA,left:bv}
}}b.offset={initialize:function(){var e=aq.body,bs=aq.createElement("div"),bv,bx,bw,by,bt=parseFloat(b.css(e,"marginTop"))||0,bu="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
b.extend(bs.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});
bs.innerHTML=bu;
e.insertBefore(bs,e.firstChild);
bv=bs.firstChild;
bx=bv.firstChild;
by=bv.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=(bx.offsetTop!==5);
this.doesAddBorderForTableAndCells=(by.offsetTop===5);
bx.style.position="fixed";
bx.style.top="20px";
this.supportsFixedPosition=(bx.offsetTop===20||bx.offsetTop===15);
bx.style.position=bx.style.top="";
bv.style.overflow="hidden";
bv.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(bx.offsetTop===-5);
this.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==bt);
e.removeChild(bs);
b.offset.initialize=b.noop
},bodyOffset:function(e){var bt=e.offsetTop,bs=e.offsetLeft;
b.offset.initialize();
if(b.offset.doesNotIncludeMarginInBodyOffset){bt+=parseFloat(b.css(e,"marginTop"))||0;
bs+=parseFloat(b.css(e,"marginLeft"))||0
}return{top:bt,left:bs}
},setOffset:function(bu,bD,bx){var by=b.css(bu,"position");
if(by==="static"){bu.style.position="relative"
}var bw=b(bu),bs=bw.offset(),e=b.css(bu,"top"),bB=b.css(bu,"left"),bC=(by==="absolute"||by==="fixed")&&b.inArray("auto",[e,bB])>-1,bA={},bz={},bt,bv;
if(bC){bz=bw.position();
bt=bz.top;
bv=bz.left
}else{bt=parseFloat(e)||0;
bv=parseFloat(bB)||0
}if(b.isFunction(bD)){bD=bD.call(bu,bx,bs)
}if(bD.top!=null){bA.top=(bD.top-bs.top)+bt
}if(bD.left!=null){bA.left=(bD.left-bs.left)+bv
}if("using" in bD){bD.using.call(bu,bA)
}else{bw.css(bA)
}}};b.fn.extend({position:function(){if(!this[0]){return null
}var bt=this[0],bs=this.offsetParent(),bu=this.offset(),e=aa.test(bs[0].nodeName)?{top:0,left:0}:bs.offset();
bu.top-=parseFloat(b.css(bt,"marginTop"))||0;
bu.left-=parseFloat(b.css(bt,"marginLeft"))||0;
e.top+=parseFloat(b.css(bs[0],"borderTopWidth"))||0;
e.left+=parseFloat(b.css(bs[0],"borderLeftWidth"))||0;
return{top:bu.top-e.top,left:bu.left-e.left}
},offsetParent:function(){return this.map(function(){var e=this.offsetParent||aq.body;
while(e&&(!aa.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent
}return e
})}});
b.each(["Left","Top"],function(bs,e){var bt="scroll"+e;
b.fn[bt]=function(bw){var bu,bv;
if(bw===L){bu=this[0];
if(!bu){return null
}bv=aG(bu);
return bv?("pageXOffset" in bv)?bv[bs?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bv.document.documentElement[bt]||bv.document.body[bt]:bu[bt]
}return this.each(function(){bv=aG(this);
if(bv){bv.scrollTo(!bs?bw:b(bv).scrollLeft(),bs?bw:b(bv).scrollTop())
}else{this[bt]=bw
}})}});
function aG(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false
}b.each(["Height","Width"],function(bs,e){var bt=e.toLowerCase();
b.fn["inner"+e]=function(){var bu=this[0];
return bu&&bu.style?parseFloat(b.css(bu,bt,"padding")):null
};b.fn["outer"+e]=function(bv){var bu=this[0];
return bu&&bu.style?parseFloat(b.css(bu,bt,bv?"margin":"border")):null
};b.fn[bt]=function(bw){var bx=this[0];
if(!bx){return bw==null?null:this
}if(b.isFunction(bw)){return this.each(function(bB){var bA=b(this);
bA[bt](bw.call(this,bB,bA[bt]()))
})}if(b.isWindow(bx)){var by=bx.document.documentElement["client"+e],bu=bx.document.body;
return bx.document.compatMode==="CSS1Compat"&&by||bu&&bu["client"+e]||by
}else{if(bx.nodeType===9){return Math.max(bx.documentElement["client"+e],bx.body["scroll"+e],bx.documentElement["scroll"+e],bx.body["offset"+e],bx.documentElement["offset"+e])
}else{if(bw===L){var bz=b.css(bx,bt),bv=parseFloat(bz);
return b.isNaN(bv)?bz:bv
}else{return this.css(bt,typeof bw==="string"?bw:bw+"px")
}}}}});
a8.jQuery=a8.$=b
})(window);
(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");
return
}var c=a.data(this[0],"validator");
if(c){return c
}c=new a.validator(b,this[0]);
a.data(this[0],"validator",c);
if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true
});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this
})}this.submit(function(d){if(c.settings.debug){d.preventDefault()
}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)
}c.settings.submitHandler.call(c,c.currentForm);
if(c.submitButton){f.remove()
}return false
}return true
}if(c.cancelSubmit){c.cancelSubmit=false;
return e()
}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;
return false
}return e()
}else{c.focusInvalid();
return false
}})}return c
},valid:function(){if(a(this[0]).is("form")){return this.validate().form()
}else{var c=true;
var b=a(this[0].form).validate();
this.each(function(){c&=b.element(this)
});return c
}},removeAttrs:function(d){var b={},c=this;
a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);
c.removeAttr(f)
});return b
},rules:function(e,b){var g=this[0];
if(e){var d=a.data(g.form,"validator").settings;
var j=d.rules;
var k=a.validator.staticRules(g);
switch(e){case"add":a.extend(k,a.validator.normalizeRule(b));
j[g.name]=k;
if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)
}break;
case"remove":if(!b){delete j[g.name];
return k
}var h={};
a.each(b.split(/\s/),function(l,m){h[m]=k[m];
delete k[m]
});return h
}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);
if(f.required){var c=f.required;
delete f.required;
f=a.extend({required:c},f)
}return f
}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)
},filled:function(b){return !!a.trim(""+b.value)
},unchecked:function(b){return !b.checked
}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);
this.currentForm=c;
this.init()
};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);
d.unshift(b);
return a.validator.format.apply(this,d)
}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)
}if(c.constructor!=Array){c=[c]
}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)
});return b
};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;
if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);
this.errorsFor(b).hide()
}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)
}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)
}},onclick:function(b){if(b.name in this.submitted){this.element(b)
}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)
}}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)
},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)
}},setDefaults:function(b){a.extend(a.validator.defaults,b)
},messages:{required:"A mezőt kötelező kitölteni.",remote:"Javítsd ki ezt a mezőt!",email:"Adj meg egy érvényes e-mail címet!",url:"Adj meg egy érvényes URL-t!",date:"Adj meg egy érvényes dátumot!",dateISO:"Adj meg egy érvényes ISO dátumot!",number:"Adj meg egy érvényes számot!",digits:"Csak számokat adhatsz meg!",creditcard:"Adj meg egy érvényes kártyaszámot!",equalTo:"Ismételd meg a számsort!",accept:"Adj meg egy értéket érvényes kiterjesztéssel.",maxlength:a.validator.format("Maximum {0} karaktert adhatsz meg."),minlength:a.validator.format("Legalább {0} karaktert meg kell adnod!"),rangelength:a.validator.format("Adj meg egy számot, amelynek hossza {0} és {1} karakter között van!"),range:a.validator.format("Adj meg egy számot amelynek értéke {0} és {1} között van."),max:a.validator.format("{0}-nál kisebb, vagy egyenlő számot adj meg!"),min:a.validator.format("{0}-nál nagyobb, vagy egyenlő számot adj meg!")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);
this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);
this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);
this.submitted={};
this.valueCache={};
this.pendingRequest=0;
this.pending={};
this.invalid={};
this.reset();
var b=(this.groups={});
a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e
})});var d=this.settings.rules;
a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)
});function c(g){var f=a.data(this[0].form,"validator"),e="on"+g.type.replace(/^validate/,"");
f.settings[e]&&f.settings[e].call(f,this[0])
}a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",c).validateDelegate(":radio, :checkbox, select, option","click",c);
if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)
}},form:function(){this.checkForm();
a.extend(this.submitted,this.errorMap);
this.invalid=a.extend({},this.errorMap);
if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])
}this.showErrors();
return this.valid()
},checkForm:function(){this.prepareForm();
for(var b=0,c=(this.currentElements=this.elements());
c[b];b++){this.check(c[b])
}return this.valid()
},element:function(c){c=this.clean(c);
this.lastElement=c;
this.prepareElement(c);
this.currentElements=a(c);
var b=this.check(c);
if(b){delete this.invalid[c.name]
}else{this.invalid[c.name]=true
}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)
}this.showErrors();
return b
},showErrors:function(c){if(c){a.extend(this.errorMap,c);
this.errorList=[];
for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})
}this.successList=a.grep(this.successList,function(d){return !(d.name in c)
})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()
},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()
}this.submitted={};
this.prepareForm();
this.hideErrors();
this.elements().removeClass(this.settings.errorClass)
},numberOfInvalids:function(){return this.objectLength(this.invalid)
},objectLength:function(d){var c=0;
for(var b in d){c++
}return c
},hideErrors:function(){this.addWrapper(this.toHide).hide()
},valid:function(){return this.size()==0
},size:function(){return this.errorList.length
},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")
}catch(b){}}},findLastActive:function(){var b=this.lastActive;
return b&&a.grep(this.errorList,function(c){return c.element.name==b.name
}).length==1&&b
},elements:function(){var c=this,b={};
return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);
if(this.name in b||!c.objectLength(a(this).rules())){return false
}b[this.name]=true;
return true
})},clean:function(b){return a(b)[0]
},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)
},reset:function(){this.successList=[];
this.errorList=[];
this.errorMap={};
this.toShow=a([]);
this.toHide=a([]);
this.currentElements=a([])
},prepareForm:function(){this.reset();
this.toHide=this.errors().add(this.containers)
},prepareElement:function(b){this.reset();
this.toHide=this.errorsFor(b)
},check:function(c){c=this.clean(c);
if(this.checkable(c)){c=this.findByName(c.name)[0]
}var h=a(c).rules();
var d=false;
for(method in h){var g={method:method,parameters:h[method]};
try{var b=a.validator.methods[method].call(this,a(c).val().replace(/\r/g,""),c,g.parameters);
if(b=="dependency-mismatch"){d=true;
continue
}d=false;
if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));
return
}if(!b){this.formatAndAdd(c,g);
return false
}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method",f);
throw f
}}if(d){return
}if(this.objectLength(h)){this.successList.push(c)
}return true
},customMetaMessage:function(b,d){if(!a.metadata){return
}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();
return c&&c.messages&&c.messages[d]
},customMessage:function(c,d){var b=this.settings.messages[c];
return b&&(b.constructor==String?b:b[d])
},findDefined:function(){for(var b=0;
b<arguments.length;
b++){if(arguments[b]!==undefined){return arguments[b]
}}return undefined
},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")
},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;
if(typeof d=="function"){d=d.call(this,e.parameters,c)
}else{if(b.test(d)){d=jQuery.format(d.replace(b,"{$1}"),e.parameters)
}}this.errorList.push({message:d,element:c});
this.errorMap[c.name]=d;
this.submitted[c.name]=d
},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))
}return b
},defaultShowErrors:function(){for(var c=0;
this.errorList[c];
c++){var b=this.errorList[c];
this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);
this.showLabel(b.element,b.message)
}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)
}if(this.settings.success){for(var c=0;
this.successList[c];
c++){this.showLabel(this.successList[c])
}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();
d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)
}}this.toHide=this.toHide.not(this.toShow);
this.hideErrors();
this.addWrapper(this.toShow).show()
},validElements:function(){return this.currentElements.not(this.invalidElements())
},invalidElements:function(){return a(this.errorList).map(function(){return this.element
})},showLabel:function(c,d){var b=this.errorsFor(c);
if(b.length){b.removeClass().addClass(this.settings.errorClass);
b.attr("generated")&&b.html(d)
}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");
if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()
}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)
}}if(!d&&this.settings.success){b.text("");
typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)
}this.toShow=this.toShow.add(b)
},errorsFor:function(c){var b=this.idOrName(c);
return this.errors().filter(function(){return a(this).attr("for")==b
})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)
},checkable:function(b){return/radio|checkbox/i.test(b.type)
},findByName:function(b){var c=this.currentForm;
return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null
})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;
case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length
}}return c.length
},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true
},dependTypes:{"boolean":function(c,b){return c
},string:function(c,b){return !!a(c,b.form).length
},"function":function(c,b){return c(b)
}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(a(b).val()),b)&&"dependency-mismatch"
},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;
this.pending[b.name]=true
}},stopRequest:function(b,c){this.pendingRequest--;
if(this.pendingRequest<0){this.pendingRequest=0
}delete this.pending[b.name];
if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();
this.formSubmitted=false
}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);
this.formSubmitted=false
}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})
}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)
},classRules:function(c){var d={};
var b=a(c).attr("class");
b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])
}});return d
},attributeRules:function(c){var e={};
var b=a(c);
for(method in a.validator.methods){var d=b.attr(method);
if(d){e[method]=d
}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength
}return e
},metadataRules:function(b){if(!a.metadata){return{}
}var c=a.data(b.form,"validator").settings.meta;
return c?a(b).metadata()[c]:a(b).metadata()
},staticRules:function(c){var d={};
var b=a.data(c.form,"validator");
if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}
}return d
},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];
return
}if(e.param||e.depends){var d=true;
switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;
break;
case"function":d=e.depends.call(b,b);
break}if(d){c[f]=e.param!==undefined?e.param:true
}else{delete c[f]
}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e
});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])
}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]
}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];
delete c.min;
delete c.max
}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];
delete c.minlength;
delete c.maxlength
}}if(c.messages){delete c.messages
}return c
},normalizeRule:function(c){if(typeof c=="string"){var b={};
a.each(c.split(/\s/),function(){b[this]=true
});c=b
}return c
},addMethod:function(b,d,c){a.validator.methods[b]=d;
a.validator.messages[b]=c!=undefined?c:a.validator.messages[b];
if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))
}},methods:{required:function(c,b,e){if(!this.depend(e,b)){return"dependency-mismatch"
}switch(b.nodeName.toLowerCase()){case"select":var d=a(b).val();
return d&&d.length>0;
case"input":if(this.checkable(b)){return this.getLength(c,b)>0
}default:return a.trim(c).length>0
}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"
}var d=this.previousValue(c);
if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}
}d.originalMessage=this.settings.messages[c.name].remote;
this.settings.messages[c.name].remote=d.message;
g=typeof g=="string"&&{url:g}||g;
if(d.old!==f){d.old=f;
var b=this;
this.startRequest(c);
var e={};
e[c.name]=f;
a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(j){b.settings.messages[c.name].remote=d.originalMessage;
var l=j===true;
if(l){var h=b.formSubmitted;
b.prepareElement(c);
b.formSubmitted=h;
b.successList.push(c);
b.showErrors()
}else{var m={};
var k=(d.message=j||b.defaultMessage(c,"remote"));
m[c.name]=a.isFunction(k)?k(f):k;
b.showErrors(m)
}d.valid=l;
b.stopRequest(c,l)
}},g));
return"pending"
}else{if(this.pending[c.name]){return"pending"
}}return d.valid
},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d
},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d
},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);
return this.optional(b)||(c>=e[0]&&c<=e[1])
},min:function(c,b,d){return this.optional(b)||c>=d
},max:function(c,b,d){return this.optional(b)||c<=d
},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])
},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)
},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)
},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))
},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)
},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)
},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)
},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"
}if(/[^0-9-]+/.test(f)){return false
}var g=0,e=0,b=false;
f=f.replace(/\D/g,"");
for(var h=f.length-1;
h>=0;h--){var d=f.charAt(h);
var e=parseInt(d,10);
if(b){if((e*=2)>9){e-=9
}}g+=e;
b=!b}return(g%10)==0
},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";
return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))
},equalTo:function(c,b,e){var d=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()
});return c==d.val()
}}});a.format=a.validator.format
})(jQuery);
(function(c){var b=c.ajax;
var a={};
c.ajax=function(e){e=c.extend(e,c.extend({},c.ajaxSettings,e));
var d=e.port;
if(e.mode=="abort"){if(a[d]){a[d].abort()
}return(a[d]=b.apply(this,arguments))
}return b.apply(this,arguments)
}})(jQuery);
(function(a){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){this.addEventListener(c,d,true)
},teardown:function(){this.removeEventListener(c,d,true)
},handler:function(f){arguments[0]=a.event.fix(f);
arguments[0].type=b;
return a.event.handle.apply(this,arguments)
}};function d(f){f=a.event.fix(f);
f.type=b;
return a.event.handle.call(this,f)
}})}a.extend(a.fn,{validateDelegate:function(d,c,b){return this.bind(c,function(e){var f=a(e.target);
if(f.is(d)){return b.apply(f,arguments)
}})}})
})(jQuery);
/*!
 * jQuery hashchange event - v1.2 - 2/11/2010
 * http://benalman.com/projects/jquery-hashchange-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,j,b){var k,l=$.event.special,c="location",d="hashchange",m="href",f=$.browser,g=document.documentMode,h=f.msie&&(g===b||g<8),e="on"+d in j&&!h;
function a(n){n=n||j[c][m];
return n.replace(/^[^#]*#?(.*)$/,"$1")
}$[d+"Delay"]=100;
l[d]=$.extend(l[d],{setup:function(){if(e){return false
}$(k.start)
},teardown:function(){if(e){return false
}$(k.stop)
}});k=(function(){var n={},s,o,p,r;
function q(){p=r=function(t){return t
};if(h){o=$('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;
r=function(){return a(o.document[c][m])
};p=function(v,t){if(v!==t){var u=o.document;
u.open().close();
u[c].hash="#"+v
}};p(a())
}}n.start=function(){if(s){return
}var u=a();
p||q();
(function t(){var w=a(),v=r(u);
if(w!==u){p(u=w,v);
$(j).trigger(d)
}else{if(v!==u){j[c][m]=j[c][m].replace(/#.*/,"")+"#"+v
}}s=setTimeout(t,$[d+"Delay"])
})()};
n.stop=function(){if(!o){s&&clearTimeout(s);
s=0}};
return n
})()})(jQuery,this);
/*!
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;
$.throttle=a=function(e,f,k,j){var h,d=0;
if(typeof f!=="boolean"){j=k;
k=f;f=c
}function g(){var p=this,n=+new Date()-d,o=arguments;
function m(){d=+new Date();
k.apply(p,o)
}function l(){h=c
}if(j&&!h){m()
}h&&clearTimeout(h);
if(j===c&&n>e){m()
}else{if(f!==true){h=setTimeout(j?l:m,j===c?e-n:e)
}}}if($.guid){g.guid=k.guid=k.guid||$.guid++
}return g
};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)
}})(this);
(function(a){jQuery.fn.intoViewport=function(b){b=a.extend({duration:200,easing:"swing",margins:0},b||{});
return this.each(function(){function c(e){a("html,body").stop().animate({scrollTop:e},b)
}var d=a(document).scrollTop()||a(window).scrollTop();
wheight=a(window).height(),etop=a(this).offset().top,eheight=a(this).outerHeight();
if(d>etop){c(etop-b.margins)
}else{if(d!=etop&&etop+eheight>d+wheight){c(etop+Math.min(eheight-wheight,0)+b.margins)
}}})}})(jQuery);
/*!
 * jQuery Text Overflow v0.7
 *
 * Licensed under the new BSD License.
 * Copyright 2009-2010, Bram Stein
 * All rights reserved.
 */
(function(c){var b=document.documentElement.style,d=("textOverflow" in b||"OTextOverflow" in b),a=function(f,j){var h=0,e=[],g=function(k){var m=0,l;
if(h>j){return
}for(m=0;
m<k.length;
m+=1){if(k[m].nodeType===1){l=k[m].cloneNode(false);
e[e.length-1].appendChild(l);
e.push(l);
g(k[m].childNodes);
e.pop()
}else{if(k[m].nodeType===3){if(h+k[m].length<j){e[e.length-1].appendChild(k[m].cloneNode(false))
}else{l=k[m].cloneNode(false);
l.textContent=c.trim(l.textContent.substring(0,j-h));
e[e.length-1].appendChild(l)
}h+=k[m].length
}else{e.appendChild(k[m].cloneNode(false))
}}}};e.push(f.cloneNode(false));
g(f.childNodes);
return c(e.pop().childNodes)
};c.extend(c.fn,{textOverflow:function(g,e){var f=g||"&#x2026;";
if(!d){return this.each(function(){var m=c(this),n=m.clone(),q=m.clone(),l=m.text(),h=m.width(),o=0,p=0,k=l.length,j=function(){if(h!==m.width()){m.replaceWith(q);
m=q;q=m.clone();
m.textOverflow(g,false);
h=m.width()
}};m.after(n.hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"}));
if(n.width()>h){while(o<k){p=Math.floor(o+((k-o)/2));
n.empty().append(a(q.get(0),p)).append(f);
if(n.width()<h){o=p+1
}else{k=p
}}if(o<l.length){m.empty().append(a(q.get(0),o-1)).append(f)
}}n.remove();
if(e){setInterval(j,200)
}})}else{return this
}}})})(jQuery);
(function(a){a.fn.autogrow=function(c){var g={expandTolerance:1,heightKeeperFunction:null};
c=a.extend(g,c);
var d=!(a.browser.msie||a.browser.opera);
function b(m){var k=a(m.target||m),j=k.val().length,l=k.innerWidth();
if(j!=k.data("autogrow-length")||l!=k.data("autogrow-width")){if(d&&(j<k.data("autogrow-length")||l!=k.data("autogrow-width"))){if(a.isFunction(c.heightKeeperFunction)){(c.heightKeeperFunction(k)).height((c.heightKeeperFunction(k)).height())
}k.css("height","0px")
}var h=Math.max(k.data("autogrow-min"),Math.ceil(Math.min(k.prop("scrollHeight")+c.expandTolerance*k.data("autogrow-line-height"),k.data("autogrow-max"))));
k.css("overflow",(k.prop("scrollHeight")>h?"auto":"hidden"));
k.css("height",h+"px");
if(a.isFunction(c.heightKeeperFunction)){(c.heightKeeperFunction(k)).css({height:"auto"})
}}return k
}function f(h){var j=parseInt(h,10);
return isNaN(j)?null:j
}function e(h){h.data("autogrow-min",c.minHeight||f(h.css("min-height"))||0);
h.data("autogrow-max",c.maxHeight||f(h.css("max-height"))||99999);
h.data("autogrow-line-height",c.lineHeight||f(h.css("line-height")));
b(h)}this.each(function(){var h=a(this);
if(!h.data("autogrow-initialized")){h.css("padding-top",4).css("padding-bottom",4);
h.bind("keyup",b).bind("focus",b);
h.data("autogrow-initialized",true)
}e(h);
setTimeout(function(){e(h)
},100)
});return this
}})(jQuery);
/*!
 * jQuery Text Overflow v0.7
 *
 * Licensed under the new BSD License.
 * Copyright 2009-2010, Bram Stein
 * All rights reserved.
 */
(function(c){var b=document.documentElement.style,d=("textOverflow" in b||"OTextOverflow" in b),a=function(f,j){var h=0,e=[],g=function(k){var m=0,l;
if(h>j){return
}for(m=0;
m<k.length;
m+=1){if(k[m].nodeType===1){l=k[m].cloneNode(false);
e[e.length-1].appendChild(l);
e.push(l);
g(k[m].childNodes);
e.pop()
}else{if(k[m].nodeType===3){if(h+k[m].length<j){e[e.length-1].appendChild(k[m].cloneNode(false))
}else{l=k[m].cloneNode(false);
l.textContent=c.trim(l.textContent.substring(0,j-h));
e[e.length-1].appendChild(l)
}h+=k[m].length
}else{e.appendChild(k[m].cloneNode(false))
}}}};e.push(f.cloneNode(false));
g(f.childNodes);
return c(e.pop().childNodes)
};c.extend(c.fn,{textOverflow:function(g,e){var f=g||"&#x2026;";
if(!d){return this.each(function(){var m=c(this),n=m.clone(),q=m.clone(),l=m.text(),h=m.width(),o=0,p=0,k=l.length,j=function(){if(h!==m.width()){m.replaceWith(q);
m=q;q=m.clone();
m.textOverflow(g,false);
h=m.width()
}};m.after(n.hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"}));
if(n.width()>h){while(o<k){p=Math.floor(o+((k-o)/2));
n.empty().append(a(q.get(0),p)).append(f);
if(n.width()<h){o=p+1
}else{k=p
}}if(o<l.length){m.empty().append(a(q.get(0),o-1)).append(f)
}}n.remove();
if(e){setInterval(j,200)
}})}else{return this
}}})})(jQuery);
(function(b,a){b.fn.lazyload=function(s){var d=function(u){var t=b(u).offset();
if(/; CPU.*OS (?:3_2|4_0)/i.test(navigator.userAgent)&&"getBoundingClientRect" in document.documentElement){t.top-=a.scrollY;
t.left-=a.scrollX
}return t
};var m=!1,o="original",n="src",l=!m,c=this,k={threshold:0,container:a,effect:"show",namespace:".lazyload"};
if(s){b.extend(k,s)
}var e=b(k.container),j=k.namespace,q="appear"+j,g="resize"+j,p="scroll"+j;
var r=function(y){y=b(y);
if(!y.length){return false
}var z=k.threshold,x;
if(e[0]===a){var t=e.height()+e.scrollTop(),w=e.scrollLeft(),D=e.width()+e.scrollLeft(),B=e.scrollTop()
}else{x=d(e);
var t=x.top+e.height(),w=x.left,D=x.left+e.width(),B=x.top
}x=d(y);
var C=x.top+y.height(),u=x.left,A=x.left+y.width(),v=x.top;
return(v+z)<=t&&(u+z)<=D&&(C-z)>=B&&(A-z)>w
};c.each(function(){var t=this;
if(t.lazyloading){return
}if(r(b(t))){t.loaded=l;
if(b(t).attr(o)){b(t).attr(n,b(t).attr(o))
}return
}b(t).data(o,b(t).attr(o)||b(t).attr(n));
t.lazyloading=true;
if(!b(t).attr(n)||k.placeholder===b(t).attr(n)||(!r(b(t)))){k.placeholder?b(t).attr(n,k.placeholder):b(t).removeAttr(n);
t.loaded=m
}b(t).one(q,function(){if(this.loaded){return
}b("<img />").load(function(){b(t).hide().attr(n,b(t).data(o))[k.effect](k.effectSpeed).removeData(o);
t.loaded=l
}).attr(n,b(t).data(o))
})});var f=function(){var t=0;
c.each(function(){var u=this;
if(r(u)&&!u.loaded){b(u).trigger(q)
}});c=b(b.grep(c,function(u){return !u.loaded
}));if(!c.length){e.unbind(p+" "+g,h)
}};var h=jQuery.throttle(500,f);
e.bind(p+" "+g,h);
f.apply(e);
return this
}})(jQuery,window);
if(!this.JSON){this.JSON={}
}(function(){function f(n){return n<10?"0"+n:n
}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null
};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()
}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;
function quote(string){escapable.lastIndex=0;
return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];
return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)
})+'"':'"'+string+'"'
}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];
if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)
}if(typeof rep==="function"){value=rep.call(holder,key,value)
}switch(typeof value){case"string":return quote(value);
case"number":return isFinite(value)?String(value):"null";
case"boolean":case"null":return String(value);
case"object":if(!value){return"null"
}gap+=indent;
partial=[];
if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;
for(i=0;
i<length;
i+=1){partial[i]=str(i,value)||"null"
}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";
gap=mind;
return v
}if(rep&&typeof rep==="object"){length=rep.length;
for(i=0;
i<length;
i+=1){k=rep[i];
if(typeof k==="string"){v=str(k,value);
if(v){partial.push(quote(k)+(gap?": ":":")+v)
}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);
if(v){partial.push(quote(k)+(gap?": ":":")+v)
}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";
gap=mind;
return v
}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;
gap="";
indent="";
if(typeof space==="number"){for(i=0;
i<space;
i+=1){indent+=" "
}}else{if(typeof space==="string"){indent=space
}}rep=replacer;
if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")
}return str("",{"":value})
}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;
function walk(holder,key){var k,v,value=holder[key];
if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);
if(v!==undefined){value[k]=v
}else{delete value[k]
}}}}return reviver.call(holder,key,value)
}text=String(text);
cx.lastIndex=0;
if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)
})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");
return typeof reviver==="function"?walk({"":j},""):j
}throw new SyntaxError("JSON.parse")
}}}());
/*!
 * jQuery UI 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
(function(a){a.ui=a.ui||{};
if(a.ui.version){return
}a.extend(a.ui,{version:"1.8.2",plugin:{add:function(c,d,f){var e=a.ui[c].prototype;
for(var b in f){e.plugins[b]=e.plugins[b]||[];
e.plugins[b].push([d,f[b]])
}},call:function(b,d,c){var f=b.plugins[d];
if(!f||!b.element[0].parentNode){return
}for(var e=0;
e<f.length;
e++){if(b.options[f[e][0]]){f[e][1].apply(b.element,c)
}}}},contains:function(d,c){return document.compareDocumentPosition?d.compareDocumentPosition(c)&16:d!==c&&d.contains(c)
},hasScroll:function(e,c){if(a(e).css("overflow")=="hidden"){return false
}var b=(c&&c=="left")?"scrollLeft":"scrollTop",d=false;
if(e[b]>0){return true
}e[b]=1;
d=(e[b]>0);
e[b]=0;
return d
},isOverAxis:function(c,b,d){return(c>b)&&(c<(b+d))
},isOver:function(g,c,f,e,b,d){return a.ui.isOverAxis(g,f,b)&&a.ui.isOverAxis(c,e,d)
},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});
a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b==="number"?this.each(function(){var d=this;
setTimeout(function(){a(d).focus();
(c&&c.call(d))
},b)}):this._focus.apply(this,arguments)
},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")
},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none")
},scrollParent:function(){var b;
if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){b=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))
}).eq(0)
}else{b=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))
}).eq(0)
}return(/fixed/).test(this.css("position"))||!b.length?a(document):b
},zIndex:function(e){if(e!==undefined){return this.css("zIndex",e)
}if(this.length){var c=a(this[0]),b,d;
while(c.length&&c[0]!==document){b=c.css("position");
if(b=="absolute"||b=="relative"||b=="fixed"){d=parseInt(c.css("zIndex"));
if(!isNaN(d)&&d!=0){return d
}}c=c.parent()
}}return 0
}});a.extend(a.expr[":"],{data:function(d,c,b){return !!a.data(d,b[3])
},focusable:function(c){var d=c.nodeName.toLowerCase(),b=a.attr(c,"tabindex");
return(/input|select|textarea|button|object/.test(d)?!c.disabled:"a"==d||"area"==d?c.href||!isNaN(b):!isNaN(b))&&!a(c)["area"==d?"parents":"closest"](":hidden").length
},tabbable:function(c){var b=a.attr(c,"tabindex");
return(isNaN(b)||b>=0)&&a(c).is(":focusable")
}})})(jQuery);
/*!
 * jQuery UI Widget 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b){var a=b.fn.remove;
b.fn.remove=function(c,d){return this.each(function(){if(!d){if(!c||b.filter(c,[this]).length){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")
})}}return a.call(b(this),c,d)
})};b.widget=function(d,f,c){var e=d.split(".")[0],h;
d=d.split(".")[1];
h=e+"-"+d;
if(!c){c=f;
f=b.Widget
}b.expr[":"][h]=function(j){return !!b.data(j,d)
};b[e]=b[e]||{};
b[e][d]=function(j,k){if(arguments.length){this._createWidget(j,k)
}};var g=new f();
g.options=b.extend({},g.options);
b[e][d].prototype=b.extend(true,g,{namespace:e,widgetName:d,widgetEventPrefix:b[e][d].prototype.widgetEventPrefix||d,widgetBaseClass:h},c);
b.widget.bridge(d,b[e][d])
};b.widget.bridge=function(d,c){b.fn[d]=function(g){var e=typeof g==="string",f=Array.prototype.slice.call(arguments,1),h=this;
g=!e&&f.length?b.extend.apply(null,[true,g].concat(f)):g;
if(e&&g.substring(0,1)==="_"){return h
}if(e){this.each(function(){var j=b.data(this,d),k=j&&b.isFunction(j[g])?j[g].apply(j,f):j;
if(k!==j&&k!==undefined){h=k;
return false
}})}else{this.each(function(){var j=b.data(this,d);
if(j){if(g){j.option(g)
}j._init()
}else{b.data(this,d,new c(g,this))
}})}return h
}};b.Widget=function(c,d){if(arguments.length){this._createWidget(c,d)
}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=b(e).data(this.widgetName,this);
this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(e)[this.widgetName],d);
var c=this;
this.element.bind("remove."+this.widgetName,function(){c.destroy()
});this._create();
this._init()
},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")
},widget:function(){return this.element
},option:function(e,f){var d=e,c=this;
if(arguments.length===0){return b.extend({},c.options)
}if(typeof e==="string"){if(f===undefined){return this.options[e]
}d={};
d[e]=f
}b.each(d,function(g,h){c._setOption(g,h)
});return c
},_setOption:function(c,d){this.options[c]=d;
if(c==="disabled"){this.widget()[d?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",d)
}return this
},enable:function(){return this._setOption("disabled",false)
},disable:function(){return this._setOption("disabled",true)
},_trigger:function(d,e,f){var h=this.options[d];
e=b.Event(e);
e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();
f=f||{};
if(e.originalEvent){for(var c=b.event.props.length,g;
c;){g=b.event.props[--c];
e[g]=e.originalEvent[g]
}}this.element.trigger(e,f);
return !(b.isFunction(h)&&h.call(this.element[0],e,f)===false||e.isDefaultPrevented())
}}})(jQuery);
/*!
 * jQuery UI Mouse 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;
this.element.bind("mousedown."+this.widgetName,function(c){return b._mouseDown(c)
}).bind("click."+this.widgetName,function(c){if(b._preventClickEvent){b._preventClickEvent=false;
c.stopImmediatePropagation();
return false
}});this.started=false
},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)
},_mouseDown:function(d){d.originalEvent=d.originalEvent||{};
if(d.originalEvent.mouseHandled){return
}(this._mouseStarted&&this._mouseUp(d));
this._mouseDownEvent=d;
var c=this,e=(d.which==1),b=(typeof this.options.cancel=="string"?a(d.target).parents().add(d.target).filter(this.options.cancel).length:false);
if(!e||b||!this._mouseCapture(d)){return true
}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true
},this.options.delay)
}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(d)!==false);
if(!this._mouseStarted){d.preventDefault();
return true
}}this._mouseMoveDelegate=function(f){return c._mouseMove(f)
};this._mouseUpDelegate=function(f){return c._mouseUp(f)
};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
(a.browser.safari||d.preventDefault());
d.originalEvent.mouseHandled=true;
return true
},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)
}if(this._mouseStarted){this._mouseDrag(b);
return b.preventDefault()
}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,b)!==false);
(this._mouseStarted?this._mouseDrag(b):this._mouseUp(b))
}return !this._mouseStarted
},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;
this._preventClickEvent=(b.target==this._mouseDownEvent.target);
this._mouseStop(b)
}return false
},_mouseDistanceMet:function(b){return(Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance)
},_mouseDelayMet:function(b){return this.mouseDelayMet
},_mouseStart:function(b){},_mouseDrag:function(b){},_mouseStop:function(b){},_mouseCapture:function(b){return true
}})})(jQuery);
(function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var b=this.options;
this.containerCache={};
this.element.addClass("ui-sortable");
this.refresh();
this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;
this.offset=this.element.offset();
this._mouseInit()
},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
this._mouseDestroy();
for(var b=this.items.length-1;
b>=0;b--){this.items[b].item.removeData("sortable-item")
}return this
},_setOption:function(b,c){if(b==="disabled"){this.options[b]=c;
this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")
}else{a.Widget.prototype._setOption.apply(this,arguments)
}},_mouseCapture:function(e,f){if(this.reverting){return false
}if(this.options.disabled||this.options.type=="static"){return false
}this._refreshItems(e);
var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,"sortable-item")==c){d=a(this);
return false
}});if(a.data(e.target,"sortable-item")==c){d=a(e.target)
}if(!d){return false
}if(this.options.handle&&!f){var g=false;
a(this.options.handle,d).find("*").andSelf().each(function(){if(this==e.target){g=true
}});if(!g){return false
}}this.currentItem=d;
this._removeCurrentsFromItems();
return true
},_mouseStart:function(e,f,b){var g=this.options,c=this;
this.currentContainer=this;
this.refreshPositions();
this.helper=this._createHelper(e);
this._cacheHelperProportions();
this._cacheMargins();
this.scrollParent=this.helper.scrollParent();
this.offset=this.currentItem.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
this.helper.css("position","absolute");
this.cssPosition=this.helper.css("position");
a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(e);
this.originalPageX=e.pageX;
this.originalPageY=e.pageY;
(g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt));
this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()
}this._createPlaceholder();
if(g.containment){this._setContainment()
}if(g.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")
}a("body").css("cursor",g.cursor)
}if(g.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")
}this.helper.css("opacity",g.opacity)
}if(g.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")
}this.helper.css("zIndex",g.zIndex)
}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()
}this._trigger("start",e,this._uiHash());
if(!this._preserveHelperProportions){this._cacheHelperProportions()
}if(!b){for(var d=this.containers.length-1;
d>=0;d--){this.containers[d]._trigger("activate",e,c._uiHash(this))
}}if(a.ui.ddmanager){a.ui.ddmanager.current=this
}if(a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)
}this.dragging=true;
this.helper.addClass("ui-sortable-helper");
this._mouseDrag(e);
return true
},_mouseDrag:function(f){this.position=this._generatePosition(f);
this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs
}if(this.options.scroll){var g=this.options,b=false;
if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop+g.scrollSpeed
}else{if(f.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=b=this.scrollParent[0].scrollTop-g.scrollSpeed
}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-f.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft+g.scrollSpeed
}else{if(f.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=b=this.scrollParent[0].scrollLeft-g.scrollSpeed
}}}else{if(f.pageY-a(document).scrollTop()<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)
}else{if(a(window).height()-(f.pageY-a(document).scrollTop())<g.scrollSensitivity){b=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)
}}if(f.pageX-a(document).scrollLeft()<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)
}else{if(a(window).width()-(f.pageX-a(document).scrollLeft())<g.scrollSensitivity){b=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)
}}}if(b!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)
}}this.positionAbs=this._convertPositionTo("absolute");
if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"
}for(var d=this.items.length-1;
d>=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);
if(!h){continue
}if(c!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=c&&!a.ui.contains(this.placeholder[0],c)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?"down":"up";
if(this.options.tolerance=="pointer"||this._intersectsWithSides(e)){this._rearrange(f,e)
}else{break
}this._trigger("change",f,this._uiHash());
break}}this._contactContainers(f);
if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)
}this._trigger("sort",f,this._uiHash());
this.lastPositionAbs=this.positionAbs;
return false
},_mouseStop:function(c,d){if(!c){return
}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)
}if(this.options.revert){var b=this;
var e=b.placeholder.offset();
b.reverting=true;
a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)
})}else{this._clear(c,d)
}return false
},cancel:function(){var b=this;
if(this.dragging){this._mouseUp();
if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
}else{this.currentItem.show()
}for(var c=this.containers.length-1;
c>=0;c--){this.containers[c]._trigger("deactivate",null,b._uiHash(this));
if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,b._uiHash(this));
this.containers[c].containerCache.over=0
}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])
}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()
}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});
if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)
}else{a(this.domPosition.parent).prepend(this.currentItem)
}return this
},serialize:function(d){var b=this._getItemsAsjQuery(d&&d.connected);
var c=[];
d=d||{};
a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));
if(e){c.push((d.key||e[1]+"[]")+"="+(d.key&&d.expression?e[1]:e[2]))
}});return c.join("&")
},toArray:function(d){var b=this._getItemsAsjQuery(d&&d.connected);
var c=[];
d=d||{};
b.each(function(){c.push(a(d.item||this).attr(d.attribute||"id")||"")
});return c
},_intersectsWith:function(n){var e=this.positionAbs.left,d=e+this.helperProportions.width,m=this.positionAbs.top,k=m+this.helperProportions.height;
var f=n.left,c=f+n.width,o=n.top,j=o+n.height;
var p=this.offset.click.top,h=this.offset.click.left;
var g=(m+p)>o&&(m+p)<j&&(e+h)>f&&(e+h)<c;
if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"])){return g
}else{return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&o<m+(this.helperProportions.height/2)&&k-(this.helperProportions.height/2)<j)
}},_intersectsWithPointer:function(d){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,d.top,d.height),c=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,d.left,d.width),g=e&&c,b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();
if(!g){return false
}return this.floating?(((f&&f=="right")||b=="down")?2:1):(b&&(b=="down"?2:1))
},_intersectsWithSides:function(e){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+(e.height/2),e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+(e.width/2),e.width),b=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();
if(this.floating&&f){return((f=="right"&&d)||(f=="left"&&!d))
}else{return b&&((b=="down"&&c)||(b=="up"&&!c))
}},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;
return b!=0&&(b>0?"down":"up")
},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;
return b!=0&&(b>0?"right":"left")
},refresh:function(b){this._refreshItems(b);
this.refreshPositions();
return this
},_connectWith:function(){var b=this.options;
return b.connectWith.constructor==String?[b.connectWith]:b.connectWith
},_getItemsAsjQuery:function(b){var l=this;
var g=[];
var e=[];
var h=this._connectWith();
if(h&&b){for(var d=h.length-1;
d>=0;d--){var k=a(h[d]);
for(var c=k.length-1;
c>=0;c--){var f=a.data(k[c],"sortable");
if(f&&f!=this&&!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),f])
}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);
for(var d=e.length-1;
d>=0;d--){e[d][0].each(function(){g.push(this)
})}return a(g)
},_removeCurrentsFromItems:function(){var d=this.currentItem.find(":data(sortable-item)");
for(var c=0;
c<this.items.length;
c++){for(var b=0;
b<d.length;
b++){if(d[b]==this.items[c].item[0]){this.items.splice(c,1)
}}}},_refreshItems:function(b){this.items=[];
this.containers=[this];
var h=this.items;
var p=this;
var f=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]];
var l=this._connectWith();
if(l){for(var e=l.length-1;
e>=0;e--){var m=a(l[e]);
for(var d=m.length-1;
d>=0;d--){var g=a.data(m[d],"sortable");
if(g&&g!=this&&!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);
this.containers.push(g)
}}}}for(var e=f.length-1;
e>=0;e--){var k=f[e][1];
var c=f[e][0];
for(var d=0,n=c.length;
d<n;d++){var o=a(c[d]);
o.data("sortable-item",k);
h.push({item:o,instance:k,width:0,height:0,left:0,top:0})
}}},refreshPositions:function(b){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()
}for(var d=this.items.length-1;
d>=0;d--){var e=this.items[d];
var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;
if(!b){e.width=c.outerWidth();
e.height=c.outerHeight()
}var f=c.offset();
e.left=f.left;
e.top=f.top
}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)
}else{for(var d=this.containers.length-1;
d>=0;d--){var f=this.containers[d].element.offset();
this.containers[d].containerCache.left=f.left;
this.containers[d].containerCache.top=f.top;
this.containers[d].containerCache.width=this.containers[d].element.outerWidth();
this.containers[d].containerCache.height=this.containers[d].element.outerHeight()
}}return this
},_createPlaceholder:function(d){var b=d||this,e=b.options;
if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;
e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
if(!c){f.style.visibility="hidden"
}return f
},update:function(f,g){if(c&&!e.forcePlaceholderSize){return
}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10))
}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))
}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));
b.currentItem.after(b.placeholder);
e.placeholder.update(b,b.placeholder)
},_contactContainers:function(b){var d=null,k=null;
for(var f=this.containers.length-1;
f>=0;f--){if(a.ui.contains(this.currentItem[0],this.containers[f].element[0])){continue
}if(this._intersectsWith(this.containers[f].containerCache)){if(d&&a.ui.contains(this.containers[f].element[0],d.element[0])){continue
}d=this.containers[f];
k=f}else{if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",b,this._uiHash(this));
this.containers[f].containerCache.over=0
}}}if(!d){return
}if(this.containers.length===1){this.containers[k]._trigger("over",b,this._uiHash(this));
this.containers[k].containerCache.over=1
}else{if(this.currentContainer!=this.containers[k]){var h=10000;
var g=null;
var c=this.positionAbs[this.containers[k].floating?"left":"top"];
for(var e=this.items.length-1;
e>=0;e--){if(!a.ui.contains(this.containers[k].element[0],this.items[e].item[0])){continue
}var l=this.items[e][this.containers[k].floating?"left":"top"];
if(Math.abs(l-c)<h){h=Math.abs(l-c);
g=this.items[e]
}}if(!g&&!this.options.dropOnEmpty){return
}this.currentContainer=this.containers[k];
g?this._rearrange(b,g,null,true):this._rearrange(b,null,this.containers[k].element,true);
this._trigger("change",b,this._uiHash());
this.containers[k]._trigger("change",b,this._uiHash(this));
this.options.placeholder.update(this.currentContainer,this.placeholder);
this.containers[k]._trigger("over",b,this._uiHash(this));
this.containers[k].containerCache.over=1
}}},_createHelper:function(c){var d=this.options;
var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c,this.currentItem])):(d.helper=="clone"?this.currentItem.clone():this.currentItem);
if(!b.parents("body").length){a(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0])
}if(b[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}
}if(b[0].style.width==""||d.forceHelperSize){b.width(this.currentItem.width())
}if(b[0].style.height==""||d.forceHelperSize){b.height(this.currentItem.height())
}return b
},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")
}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}
}if("left" in b){this.offset.click.left=b.left+this.margins.left
}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left
}if("top" in b){this.offset.click.top=b.top+this.margins.top
}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var b=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();
b.top+=this.scrollParent.scrollTop()
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}
}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();
return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{return{top:0,left:0}
}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}
},_setContainment:function(){var e=this.options;
if(e.containment=="parent"){e.containment=this.helper[0].parentNode
}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!(/^(document|window|parent)$/).test(e.containment)){var c=a(e.containment)[0];
var d=a(e.containment).offset();
var b=(a(c).css("overflow")!="hidden");
this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]
}},_convertPositionTo:function(f,h){if(!h){h=this.position
}var c=f=="absolute"?1:-1;
var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);
return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}
},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(b[0].tagName);
if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()
}var d=e.pageX;
var c=e.pageY;
if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){d=this.containment[0]+this.offset.click.left
}if(e.pageY-this.offset.click.top<this.containment[1]){c=this.containment[1]+this.offset.click.top
}if(e.pageX-this.offset.click.left>this.containment[2]){d=this.containment[2]+this.offset.click.left
}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top
}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];
c=this.containment?(!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:(!(g-this.offset.click.top<this.containment[1])?g-h.grid[1]:g+h.grid[1])):g;
var f=this.originalPageX+Math.round((d-this.originalPageX)/h.grid[0])*h.grid[0];
d=this.containment?(!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:(!(f-this.offset.click.left<this.containment[0])?f-h.grid[0]:f+h.grid[0])):f
}}return{top:(c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:b.scrollTop())))),left:(d-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:b.scrollLeft())))}
},_rearrange:function(g,f,c,e){c?c[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?f.item[0]:f.item[0].nextSibling));
this.counter=this.counter?++this.counter:1;
var d=this,b=this.counter;
window.setTimeout(function(){if(b==d.counter){d.refreshPositions(!e)
}},0)},_clear:function(d,e){this.reverting=false;
var f=[],b=this;
if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)
}this._noFinalSort=null;
if(this.helper[0]==this.currentItem[0]){for(var c in this._storedCSS){if(this._storedCSS[c]=="auto"||this._storedCSS[c]=="static"){this._storedCSS[c]=""
}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
}else{this.currentItem.show()
}if(this.fromOutside&&!e){f.push(function(g){this._trigger("receive",g,this._uiHash(this.fromOutside))
})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!e){f.push(function(g){this._trigger("update",g,this._uiHash())
})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!e){f.push(function(g){this._trigger("remove",g,this._uiHash())
})}for(var c=this.containers.length-1;
c>=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&&!e){f.push((function(g){return function(h){g._trigger("receive",h,this._uiHash(this))
}}).call(this,this.containers[c]));
f.push((function(g){return function(h){g._trigger("update",h,this._uiHash(this))
}}).call(this,this.containers[c]))
}}}for(var c=this.containers.length-1;
c>=0;c--){if(!e){f.push((function(g){return function(h){g._trigger("deactivate",h,this._uiHash(this))
}}).call(this,this.containers[c]))
}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger("out",h,this._uiHash(this))
}}).call(this,this.containers[c]));
this.containers[c].containerCache.over=0
}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)
}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)
}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)
}this.dragging=false;
if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",d,this._uiHash());
for(var c=0;
c<f.length;
c++){f[c].call(this,d)
}this._trigger("stop",d,this._uiHash())
}return false
}if(!e){this._trigger("beforeStop",d,this._uiHash())
}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
if(this.helper[0]!=this.currentItem[0]){this.helper.remove()
}this.helper=null;
if(!e){for(var c=0;
c<f.length;
c++){f[c].call(this,d)
}this._trigger("stop",d,this._uiHash())
}this.fromOutside=false;
return true
},_trigger:function(){if(a.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()
}},_uiHash:function(c){var b=c||this;
return{helper:b.helper,placeholder:b.placeholder||a([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:c?c.element:null}
}});a.extend(a.ui.sortable,{version:"1.8.2"})
})(jQuery);
(function(f){f.ui=f.ui||{};
var c=/left|center|right/,e="center",d=/top|center|bottom/,g="center",a=f.fn.position,b=f.fn.offset;
f.fn.position=function(j){if(!j||!j.of){return a.apply(this,arguments)
}j=f.extend({},j);
var m=f(j.of),o=(j.collision||"flip").split(" "),n=j.offset?j.offset.split(" "):[0,0],l,h,k;
if(j.of.nodeType===9){l=m.width();
h=m.height();
k={top:0,left:0}
}else{if(j.of.scrollTo&&j.of.document){l=m.width();
h=m.height();
k={top:m.scrollTop(),left:m.scrollLeft()}
}else{if(j.of.preventDefault){j.at="left top";
l=h=0;
k={top:j.of.pageY,left:j.of.pageX}
}else{l=m.outerWidth();
h=m.outerHeight();
k=m.offset()
}}}f.each(["my","at"],function(){var p=(j[this]||"").split(" ");
if(p.length===1){p=c.test(p[0])?p.concat([g]):d.test(p[0])?[e].concat(p):[e,g]
}p[0]=c.test(p[0])?p[0]:e;
p[1]=d.test(p[1])?p[1]:g;
j[this]=p
});if(o.length===1){o[1]=o[0]
}n[0]=parseInt(n[0],10)||0;
if(n.length===1){n[1]=n[0]
}n[1]=parseInt(n[1],10)||0;
if(j.at[0]==="right"){k.left+=l
}else{if(j.at[0]===e){k.left+=l/2
}}if(j.at[1]==="bottom"){k.top+=h
}else{if(j.at[1]===g){k.top+=h/2
}}k.left+=n[0];
k.top+=n[1];
return this.each(function(){var s=f(this),r=s.outerWidth(),q=s.outerHeight(),p=f.extend({},k);
if(j.my[0]==="right"){p.left-=r
}else{if(j.my[0]===e){p.left-=r/2
}}if(j.my[1]==="bottom"){p.top-=q
}else{if(j.my[1]===g){p.top-=q/2
}}p.left=parseInt(p.left);
p.top=parseInt(p.top);
f.each(["left","top"],function(u,t){if(f.ui.position[o[u]]){f.ui.position[o[u]][t](p,{targetWidth:l,targetHeight:h,elemWidth:r,elemHeight:q,offset:n,my:j.my,at:j.at})
}});if(f.fn.bgiframe){s.bgiframe()
}s.offset(f.extend(p,{using:j.using}))
})};f.ui.position={fit:{left:function(h,j){var l=f(window),k=h.left+j.elemWidth-l.width()-l.scrollLeft();
h.left=k>0?h.left-k:Math.max(0,h.left)
},top:function(h,j){var l=f(window),k=h.top+j.elemHeight-l.height()-l.scrollTop();
h.top=k>0?h.top-k:Math.max(0,h.top)
}},flip:{left:function(j,k){if(k.at[0]==="center"){return
}var m=f(window),l=j.left+k.elemWidth-m.width()-m.scrollLeft(),h=k.my[0]==="left"?-k.elemWidth:k.my[0]==="right"?k.elemWidth:0,n=-2*k.offset[0];
j.left+=j.left<0?h+k.targetWidth+n:l>0?h-k.targetWidth+n:0
},top:function(j,l){if(l.at[1]==="center"){return
}var n=f(window),m=j.top+l.elemHeight-n.height()-n.scrollTop(),h=l.my[1]==="top"?-l.elemHeight:l.my[1]==="bottom"?l.elemHeight:0,k=l.at[1]==="top"?l.targetHeight:-l.targetHeight,o=-2*l.offset[1];
j.top+=j.top<0?h+l.targetHeight+o:m>0?h+k+o:0
}}};if(!f.offset.setOffset){f.offset.setOffset=function(m,j){if(/static/.test(f.curCSS(m,"position"))){m.style.position="relative"
}var l=f(m),o=l.offset(),h=parseInt(f.curCSS(m,"top",true),10)||0,n=parseInt(f.curCSS(m,"left",true),10)||0,k={top:(j.top-o.top)+h,left:(j.left-o.left)+n};
if("using" in j){j.using.call(m,k)
}else{l.css(k)
}};f.fn.offset=function(h){var j=this[0];
if(!j||!j.ownerDocument){return null
}if(h){return this.each(function(){f.offset.setOffset(this,h)
})}return b.call(this)
}}}(jQuery));
(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"
}(this.options.addClasses&&this.element.addClass("ui-draggable"));
(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));
this._mouseInit()
},destroy:function(){if(!this.element.data("draggable")){return
}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy();
return this
},_mouseCapture:function(c){var d=this.options;
if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false
}this.handle=this._getHandle(c);
if(!this.handle){return false
}return true
},_mouseStart:function(c){var d=this.options;
this.helper=this._createHelper(c);
this._cacheHelperProportions();
if(a.ui.ddmanager){a.ui.ddmanager.current=this
}this._cacheMargins();
this.cssPosition=this.helper.css("position");
this.scrollParent=this.helper.scrollParent();
this.offset=this.positionAbs=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};
a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this.position=this._generatePosition(c);
this.originalPageX=c.pageX;
this.originalPageY=c.pageY;
(d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt));
if(d.containment){this._setContainment()
}if(this._trigger("start",c)===false){this._clear();
return false
}this._cacheHelperProportions();
if(a.ui.ddmanager&&!d.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)
}this.helper.addClass("ui-draggable-dragging");
this._mouseDrag(c,true);
return true
},_mouseDrag:function(c,e){this.position=this._generatePosition(c);
this.positionAbs=this._convertPositionTo("absolute");
if(!e){var d=this._uiHash();
if(this._trigger("drag",c,d)===false){this._mouseUp({});
return false
}this.position=d.position
}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"
}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"
}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,c)
}return false
},_mouseStop:function(d){var e=false;
if(a.ui.ddmanager&&!this.options.dropBehaviour){e=a.ui.ddmanager.drop(this,d)
}if(this.dropped){e=this.dropped;
this.dropped=false
}if(!this.element[0]||!this.element[0].parentNode){return false
}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var c=this;
a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(c._trigger("stop",d)!==false){c._clear()
}})}else{if(this._trigger("stop",d)!==false){this._clear()
}}return false
},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})
}else{this._clear()
}return this
},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;
a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){d=true
}});return d
},_createHelper:function(d){var e=this.options;
var c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[d])):(e.helper=="clone"?this.element.clone():this.element);
if(!c.parents("body").length){c.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))
}if(c[0]!=this.element[0]&&!(/(fixed|absolute)/).test(c.css("position"))){c.css("position","absolute")
}return c
},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ")
}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0}
}if("left" in c){this.offset.click.left=c.left+this.margins.left
}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left
}if("top" in c){this.offset.click.top=c.top+this.margins.top
}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top
}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();
var c=this.offsetParent.offset();
if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();
c.top+=this.scrollParent.scrollTop()
}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0}
}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}
},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();
return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}
}else{return{top:0,left:0}
}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}
},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}
},_setContainment:function(){var f=this.options;
if(f.containment=="parent"){f.containment=this.helper[0].parentNode
}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]
}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var d=a(f.containment)[0];
if(!d){return
}var e=a(f.containment).offset();
var c=(a(d).css("overflow")!="hidden");
this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]
}else{if(f.containment.constructor==Array){this.containment=f.containment
}}},_convertPositionTo:function(g,j){if(!j){j=this.position
}var e=g=="absolute"?1:-1;
var f=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(c[0].tagName);
return{top:(j.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*e)),left:(j.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*e))}
},_generatePosition:function(f){var j=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(c[0].tagName);
var e=f.pageX;
var d=f.pageY;
if(this.originalPosition){if(this.containment){if(f.pageX-this.offset.click.left<this.containment[0]){e=this.containment[0]+this.offset.click.left
}if(f.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top
}if(f.pageX-this.offset.click.left>this.containment[2]){e=this.containment[2]+this.offset.click.left
}if(f.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top
}}if(j.grid){var h=this.originalPageY+Math.round((d-this.originalPageY)/j.grid[1])*j.grid[1];
d=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;
var g=this.originalPageX+Math.round((e-this.originalPageX)/j.grid[0])*j.grid[0];
e=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g
}}return{top:(d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:c.scrollTop())))),left:(e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:c.scrollLeft())))}
},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()
}this.helper=null;
this.cancelHelperRemoval=false
},_trigger:function(c,d,e){e=e||this._uiHash();
a.ui.plugin.call(this,c,[d,e]);
if(c=="drag"){this.positionAbs=this._convertPositionTo("absolute")
}return a.Widget.prototype._trigger.call(this,c,d,e)
},plugins:{},_uiHash:function(c){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}
}});a.extend(a.ui.draggable,{version:"@VERSION"});
a.ui.plugin.add("draggable","connectToSortable",{start:function(d,f){var e=a(this).data("draggable"),g=e.options,c=a.extend({},f,{item:e.element});
e.sortables=[];
a(g.connectToSortable).each(function(){var h=a.data(this,"sortable");
if(h&&!h.options.disabled){e.sortables.push({instance:h,shouldRevert:h.options.revert});
h._refreshItems();
h._trigger("activate",d,c)
}})},stop:function(d,f){var e=a(this).data("draggable"),c=a.extend({},f,{item:e.element});
a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;
e.cancelHelperRemoval=true;
this.instance.cancelHelperRemoval=false;
if(this.shouldRevert){this.instance.options.revert=true
}this.instance._mouseStop(d);
this.instance.options.helper=this.instance.options._helper;
if(e.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})
}}else{this.instance.cancelHelperRemoval=false;
this.instance._trigger("deactivate",d,c)
}})},drag:function(d,g){var f=a(this).data("draggable"),c=this;
var e=function(k){var q=this.offset.click.top,p=this.offset.click.left;
var h=this.positionAbs.top,m=this.positionAbs.left;
var l=k.height,n=k.width;
var r=k.top,j=k.left;
return a.ui.isOver(h+q,m+p,r,j,l,n)
};a.each(f.sortables,function(h){this.instance.positionAbs=f.positionAbs;
this.instance.helperProportions=f.helperProportions;
this.instance.offset.click=f.offset.click;
if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;
this.instance.currentItem=a(c).clone().appendTo(this.instance.element).data("sortable-item",true);
this.instance.options._helper=this.instance.options.helper;
this.instance.options.helper=function(){return g.helper[0]
};d.target=this.instance.currentItem[0];
this.instance._mouseCapture(d,true);
this.instance._mouseStart(d,true,true);
this.instance.offset.click.top=f.offset.click.top;
this.instance.offset.click.left=f.offset.click.left;
this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;
f._trigger("toSortable",d);
f.dropped=this.instance.element;
f.currentItem=f.element;
this.instance.fromOutside=f
}if(this.instance.currentItem){this.instance._mouseDrag(d)
}}else{if(this.instance.isOver){this.instance.isOver=0;
this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;
this.instance._trigger("out",d,this.instance._uiHash(this.instance));
this.instance._mouseStop(d,true);
this.instance.options.helper=this.instance.options._helper;
this.instance.currentItem.remove();
if(this.instance.placeholder){this.instance.placeholder.remove()
}f._trigger("fromSortable",d);
f.dropped=false
}}})}});
a.ui.plugin.add("draggable","cursor",{start:function(d,e){var c=a("body"),f=a(this).data("draggable").options;
if(c.css("cursor")){f._cursor=c.css("cursor")
}c.css("cursor",f.cursor)
},stop:function(c,d){var e=a(this).data("draggable").options;
if(e._cursor){a("body").css("cursor",e._cursor)
}}});a.ui.plugin.add("draggable","iframeFix",{start:function(c,d){var e=a(this).data("draggable").options;
a(e.iframeFix===true?"iframe":e.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")
})},stop:function(c,d){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)
})}});
a.ui.plugin.add("draggable","opacity",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;
if(c.css("opacity")){f._opacity=c.css("opacity")
}c.css("opacity",f.opacity)
},stop:function(c,d){var e=a(this).data("draggable").options;
if(e._opacity){a(d.helper).css("opacity",e._opacity)
}}});a.ui.plugin.add("draggable","scroll",{start:function(d,e){var c=a(this).data("draggable");
if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){c.overflowOffset=c.scrollParent.offset()
}},drag:function(e,f){var d=a(this).data("draggable"),g=d.options,c=false;
if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((d.overflowOffset.top+d.scrollParent[0].offsetHeight)-e.pageY<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop+g.scrollSpeed
}else{if(e.pageY-d.overflowOffset.top<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop-g.scrollSpeed
}}}if(!g.axis||g.axis!="y"){if((d.overflowOffset.left+d.scrollParent[0].offsetWidth)-e.pageX<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft+g.scrollSpeed
}else{if(e.pageX-d.overflowOffset.left<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft-g.scrollSpeed
}}}}else{if(!g.axis||g.axis!="x"){if(e.pageY-a(document).scrollTop()<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)
}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)
}}}if(!g.axis||g.axis!="y"){if(e.pageX-a(document).scrollLeft()<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)
}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)
}}}}if(c!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(d,e)
}}});a.ui.plugin.add("draggable","snap",{start:function(d,e){var c=a(this).data("draggable"),f=c.options;
c.snapElements=[];
a(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var h=a(this);
var g=h.offset();
if(this!=c.element[0]){c.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})
}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;
var y=q.snapTolerance;
var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;
for(var v=g.snapElements.length-1;
v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;
if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))
}g.snapElements[v].snapping=false;
continue
}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;
var z=Math.abs(A-f)<=y;
var j=Math.abs(s-w)<=y;
var k=Math.abs(n-x)<=y;
if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top
}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top
}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left
}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left
}}var h=(c||z||j||k);
if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;
var z=Math.abs(A-e)<=y;
var j=Math.abs(s-x)<=y;
var k=Math.abs(n-w)<=y;
if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top
}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top
}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left
}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left
}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))
}g.snapElements[v].snapping=(c||z||j||k||h)
}}});a.ui.plugin.add("draggable","stack",{start:function(d,e){var g=a(this).data("draggable").options;
var f=a.makeArray(a(g.stack)).sort(function(j,h){return(parseInt(a(j).css("zIndex"),10)||0)-(parseInt(a(h).css("zIndex"),10)||0)
});if(!f.length){return
}var c=parseInt(f[0].style.zIndex)||0;
a(f).each(function(h){this.style.zIndex=c+h
});this[0].style.zIndex=c+f.length
}});a.ui.plugin.add("draggable","zIndex",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;
if(c.css("zIndex")){f._zIndex=c.css("zIndex")
}c.css("zIndex",f.zIndex)
},stop:function(c,d){var e=a(this).data("draggable").options;
if(e._zIndex){a(d.helper).css("zIndex",e._zIndex)
}}})})(jQuery);
(function(b){var a="ui-dialog ui-widget ui-widget-content ui-corner-all ";
b.widget("ui.dialog",{options:{autoOpen:true,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},_create:function(){this.originalTitle=this.element.attr("title");
var l=this,m=l.options,j=m.title||l.originalTitle||"&#160;",d=b.ui.dialog.getTitleId(l.element),k=(l.uiDialog=b("<div></div>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){if(m.closeOnEscape&&n.keyCode&&n.keyCode===b.ui.keyCode.ESCAPE){l.close(n);
n.preventDefault()
}}).attr({role:"dialog","aria-labelledby":d}).mousedown(function(n){l.moveToTop(false,n)
}),f=l.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),e=(l.uiDialogTitlebar=b("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),h=b('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")
},function(){h.removeClass("ui-state-hover")
}).focus(function(){h.addClass("ui-state-focus")
}).blur(function(){h.removeClass("ui-state-focus")
}).click(function(n){l.close(n);
return false
}).appendTo(e),g=(l.uiDialogTitlebarCloseText=b("<span></span>")).addClass("ui-icon ui-icon-close").text(m.closeText).appendTo(h),c=b("<span></span>").addClass("ui-dialog-title").attr("id",d).html(j).prependTo(e);
if(b.isFunction(m.beforeclose)&&!b.isFunction(m.beforeClose)){m.beforeClose=m.beforeclose
}e.find("*").add(e).disableSelection();
if(m.draggable&&b.fn.draggable){l._makeDraggable()
}if(m.resizable&&b.fn.resizable){l._makeResizable()
}l._createButtons(m.buttons);
l._isOpen=false;
if(b.fn.bgiframe){k.bgiframe()
}},_init:function(){if(this.options.autoOpen){this.open()
}},destroy:function(){var c=this;
if(c.overlay){c.overlay.destroy()
}c.uiDialog.hide();
c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
c.uiDialog.remove();
if(c.originalTitle){c.element.attr("title",c.originalTitle)
}return c
},widget:function(){return this.uiDialog
},close:function(e){var c=this,d;
if(false===c._trigger("beforeClose",e)){return
}if(c.overlay){c.overlay.destroy()
}c.uiDialog.unbind("keypress.ui-dialog");
c._isOpen=false;
jQuery(c.uiDialog).trigger("close",e);
if(c.options.hide){c.uiDialog.hide(c.options.hide,function(){c._trigger("close",e)
})}else{c.uiDialog.hide();
c._trigger("close",e)
}b.ui.dialog.overlay.resize();
if(c.options.modal){d=0;
b(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){d=Math.max(d,b(this).css("z-index"))
}});b.ui.dialog.maxZ=d
}return c
},isOpen:function(){return this._isOpen
},moveToTop:function(g,f){var c=this,e=c.options,d;
if((e.modal&&!g)||(!e.stack&&!e.modal)){return c._trigger("focus",f)
}if(e.zIndex>b.ui.dialog.maxZ){b.ui.dialog.maxZ=e.zIndex
}if(c.overlay){b.ui.dialog.maxZ+=1;
c.overlay.$el.css("z-index",b.ui.dialog.overlay.maxZ=b.ui.dialog.maxZ)
}d={scrollTop:c.element.attr("scrollTop"),scrollLeft:c.element.attr("scrollLeft")};
b.ui.dialog.maxZ+=1;
c.uiDialog.css("z-index",b.ui.dialog.maxZ);
c.element.attr(d);
c._trigger("focus",f);
return c
},open:function(){if(this._isOpen){return
}var d=this,e=d.options,c=d.uiDialog;
d.overlay=e.modal?new b.ui.dialog.overlay(d):null;
if(c.next().length){c.appendTo("body")
}d._size();
d._position(e.position);
c.show(e.show);
d.moveToTop(true);
if(e.modal){c.bind("keypress.ui-dialog",function(h){if(h.keyCode!==b.ui.keyCode.TAB){return
}var g=b(":tabbable",this),j=g.filter(":first"),f=g.filter(":last");
if(h.target===f[0]&&!h.shiftKey){j.focus(1);
return false
}else{if(h.target===j[0]&&h.shiftKey){f.focus(1);
return false
}}})}b([]).add(c.find(".ui-dialog-content :tabbable:first")).add(c.find(".ui-dialog-buttonpane :tabbable:first")).add(c).filter(":first").focus();
d._trigger("open");
d._isOpen=true;
return d
},_createButtons:function(f){var e=this,c=false,d=b("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");
e.uiDialog.find(".ui-dialog-buttonpane").remove();
if(typeof f==="object"&&f!==null){b.each(f,function(){return !(c=true)
})}if(c){b.each(f,function(g,j){var h=b('<button type="button"></button>').text(g).click(function(){j.apply(e.element[0],arguments)
}).appendTo(d);
if(b.fn.button){h.button()
}});d.appendTo(e.uiDialog)
}},_makeDraggable:function(){var c=this,f=c.options,g=b(document),e;
function d(h){return{position:h.position,offset:h.offset}
}c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(h,j){e=f.height==="auto"?"auto":b(this).height();
b(this).height(b(this).height()).addClass("ui-dialog-dragging");
c._trigger("dragStart",h,d(j))
},drag:function(h,j){c._trigger("drag",h,d(j))
},stop:function(h,j){f.position=[j.position.left-g.scrollLeft(),j.position.top-g.scrollTop()];
b(this).removeClass("ui-dialog-dragging").height(e);
c._trigger("dragStop",h,d(j));
b.ui.dialog.overlay.resize()
}})},_makeResizable:function(h){h=(h===undefined?this.options.resizable:h);
var d=this,g=d.options,c=d.uiDialog.css("position"),f=(typeof h==="string"?h:"n,e,s,w,se,sw,ne,nw");
function e(j){return{originalPosition:j.originalPosition,originalSize:j.originalSize,position:j.position,size:j.size}
}d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:g.maxWidth,maxHeight:g.maxHeight,minWidth:g.minWidth,minHeight:d._minHeight(),handles:f,start:function(j,k){b(this).addClass("ui-dialog-resizing");
d._trigger("resizeStart",j,e(k))
},resize:function(j,k){d._trigger("resize",j,e(k))
},stop:function(j,k){b(this).removeClass("ui-dialog-resizing");
g.height=b(this).height();
g.width=b(this).width();
d._trigger("resizeStop",j,e(k));
b.ui.dialog.overlay.resize()
}}).css("position",c).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")
},_minHeight:function(){var c=this.options;
if(c.height==="auto"){return c.minHeight
}else{return Math.min(c.minHeight,c.height)
}},_position:function(d){var e=[],f=[0,0],c;
d=d||b.ui.dialog.prototype.options.position;
if(typeof d==="string"||(typeof d==="object"&&"0" in d)){e=d.split?d.split(" "):[d[0],d[1]];
if(e.length===1){e[1]=e[0]
}b.each(["left","top"],function(h,g){if(+e[h]===e[h]){f[h]=e[h];
e[h]=g
}})}else{if(typeof d==="object"){if("left" in d){e[0]="left";
f[0]=d.left
}else{if("right" in d){e[0]="right";
f[0]=-d.right
}}if("top" in d){e[1]="top";
f[1]=d.top
}else{if("bottom" in d){e[1]="bottom";
f[1]=-d.bottom
}}}}c=this.uiDialog.is(":visible");
if(!c){this.uiDialog.show()
}this.uiDialog.css({top:0,left:0}).position({my:e.join(" "),at:e.join(" "),offset:f.join(" "),of:window,collision:"fit",using:function(h){var g=b(this).css(h).offset().top;
if(g<0){b(this).css("top",h.top-g)
}}});if(!c){this.uiDialog.hide()
}},_setOption:function(f,g){var d=this,c=d.uiDialog,h=c.is(":data(resizable)"),e=false;
switch(f){case"beforeclose":f="beforeClose";
break;
case"buttons":d._createButtons(g);
break;
case"closeText":d.uiDialogTitlebarCloseText.text(""+g);
break;
case"dialogClass":c.removeClass(d.options.dialogClass).addClass(a+g);
break;
case"disabled":if(g){c.addClass("ui-dialog-disabled")
}else{c.removeClass("ui-dialog-disabled")
}break;
case"draggable":if(g){d._makeDraggable()
}else{c.draggable("destroy")
}break;
case"height":e=true;
break;
case"maxHeight":if(h){c.resizable("option","maxHeight",g)
}e=true;
break;
case"maxWidth":if(h){c.resizable("option","maxWidth",g)
}e=true;
break;
case"minHeight":if(h){c.resizable("option","minHeight",g)
}e=true;
break;
case"minWidth":if(h){c.resizable("option","minWidth",g)
}e=true;
break;
case"position":d._position(g);
break;
case"resizable":if(h&&!g){c.resizable("destroy")
}if(h&&typeof g==="string"){c.resizable("option","handles",g)
}if(!h&&g!==false){d._makeResizable(g)
}break;
case"title":b(".ui-dialog-title",d.uiDialogTitlebar).html(""+(g||"&#160;"));
break;
case"width":e=true;
break}b.Widget.prototype._setOption.apply(d,arguments);
if(e){d._size()
}},_size:function(){var d=this.options,c;
this.element.css({width:"auto",minHeight:0,height:0});
c=this.uiDialog.css({height:"auto",width:d.width}).height();
this.element.css(d.height==="auto"?{minHeight:Math.max(d.minHeight-c,0),height:"auto"}:{minHeight:0,height:Math.max(d.height-c,0)}).show();
if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())
}}});b.extend(b.ui.dialog,{version:"1.8.2",uuid:0,maxZ:0,getTitleId:function(c){var d=c.attr("id");
if(!d){this.uuid+=1;
d=this.uuid
}return"ui-dialog-title-"+d
},overlay:function(c){this.$el=b.ui.dialog.overlay.create(c)
}});b.extend(b.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:b.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"
}).join(" "),create:function(d){if(this.instances.length===0){setTimeout(function(){if(b.ui.dialog.overlay.instances.length){b(document).bind(b.ui.dialog.overlay.events,function(e){return(b(e.target).zIndex()>=b.ui.dialog.overlay.maxZ)
})}},1);
b(document).bind("keydown.dialog-overlay",function(e){if(d.options.closeOnEscape&&e.keyCode&&e.keyCode===b.ui.keyCode.ESCAPE){d.close(e);
e.preventDefault()
}});b(window).bind("resize.dialog-overlay",b.ui.dialog.overlay.resize)
}var c=(this.oldInstances.pop()||b("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});
if(b.fn.bgiframe){c.bgiframe()
}this.instances.push(c);
return c
},destroy:function(c){this.oldInstances.push(this.instances.splice(b.inArray(c,this.instances),1)[0]);
if(this.instances.length===0){b([document,window]).unbind(".dialog-overlay")
}c.remove();
var d=0;
b.each(this.instances,function(){d=Math.max(d,this.css("z-index"))
});this.maxZ=d
},height:function(){var d,c;
if(b.browser.msie&&b.browser.version<7){d=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);
if(d<c){return b(window).height()+"px"
}else{return d+"px"
}}else{return b(document).height()+"px"
}},width:function(){var c,d;
if(b.browser.msie&&b.browser.version<7){c=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);
d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);
if(c<d){return b(window).width()+"px"
}else{return c+"px"
}}else{return b(document).width()+"px"
}},resize:function(){var c=b([]);
b.each(b.ui.dialog.overlay.instances,function(){c=c.add(this)
});c.css({width:0,height:0}).css({width:b.ui.dialog.overlay.width(),height:b.ui.dialog.overlay.height()})
}});b.extend(b.ui.dialog.overlay.prototype,{destroy:function(){b.ui.dialog.overlay.destroy(this.$el)
}})}(jQuery));
(function(a,b){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},_create:function(){var c=this,e=this.element[0].ownerDocument,d;
this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(f){if(c.options.disabled||c.element.attr("readonly")){return
}d=false;
var g=a.ui.keyCode;
switch(f.keyCode){case g.PAGE_UP:c._move("previousPage",f);
break;
case g.PAGE_DOWN:c._move("nextPage",f);
break;
case g.UP:c._move("previous",f);
f.preventDefault();
break;
case g.DOWN:c._move("next",f);
f.preventDefault();
break;
case g.ENTER:case g.NUMPAD_ENTER:if(c.menu.active){d=true;
f.preventDefault()
}case g.TAB:if(!c.menu.active){return
}c.menu.select(f);
break;
case g.ESCAPE:c.element.val(c.term);
c.close(f);
break;
default:clearTimeout(c.searching);
c.searching=setTimeout(function(){if(c.term!=c.element.val()){c.selectedItem=null;
c.search(null,f)
}},c.options.delay);
break}}).bind("keypress.autocomplete",function(f){if(d){d=false;
f.preventDefault()
}}).bind("focus.autocomplete",function(){if(c.options.disabled){return
}c.selectedItem=null;
c.previous=c.element.val()
}).bind("blur.autocomplete",function(f){if(c.options.disabled){return
}clearTimeout(c.searching);
c.closing=setTimeout(function(){c.close(f);
c._change(f)
},150)
});this._initSource();
this.response=function(){return c._response.apply(c,arguments)
};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",e)[0]).mousedown(function(f){var g=c.menu.element[0];
if(!a(f.target).closest(".ui-menu-item").length){setTimeout(function(){a(document).one("mousedown",function(h){if(h.target!==c.element[0]&&h.target!==g&&!a.ui.contains(g,h.target)){c.close()
}})},1)
}setTimeout(function(){clearTimeout(c.closing)
},13)}).menu({focus:function(g,h){var f=h.item.data("item.autocomplete");
if(false!==c._trigger("focus",g,{item:f})){if(/^key/.test(g.originalEvent.type)){c.element.val(f.value)
}}},selected:function(h,j){var g=j.item.data("item.autocomplete"),f=c.previous;
if(c.element[0]!==e.activeElement){c.element.focus();
c.previous=f;
setTimeout(function(){c.previous=f;
c.selectedItem=g
},1)}if(false!==c._trigger("select",h,{item:g})){c.element.val(g.value)
}c.term=c.element.val();
c.close(h);
c.selectedItem=g
},blur:function(f,g){if(c.menu.element.is(":visible")&&(c.element.val()!==c.term)){c.element.val(c.term)
}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
if(a.fn.bgiframe){this.menu.element.bgiframe()
}},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();
a.Widget.prototype.destroy.call(this)
},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);
if(c==="source"){this._initSource()
}if(c==="appendTo"){this.menu.element.appendTo(a(d||"body",this.element[0].ownerDocument)[0])
}},_initSource:function(){var c=this,e,d;
if(a.isArray(this.options.source)){e=this.options.source;
this.source=function(g,f){f(a.ui.autocomplete.filter(e,g.term))
}}else{if(typeof this.options.source==="string"){d=this.options.source;
this.source=function(g,f){if(c.xhr){c.xhr.abort()
}c.xhr=a.ajax({url:d,data:g,dataType:"json",success:function(j,h,k){if(k===c.xhr){f(j)
}c.xhr=null
},error:function(h){if(h===c.xhr){f([])
}c.xhr=null
}})}}else{this.source=this.options.source
}}},search:function(d,c){d=d!=null?d:this.element.val();
this.term=this.element.val();
if(d.length<this.options.minLength){return this.close(c)
}clearTimeout(this.closing);
if(this._trigger("search",c)===false){return
}return this._search(d)
},_search:function(c){this.element.addClass("ui-autocomplete-loading");
this.source({term:c},this.response)
},_response:function(c){if(c&&c.length){c=this._normalize(c);
this._suggest(c);
this._trigger("open")
}else{this.close()
}this.element.removeClass("ui-autocomplete-loading")
},close:function(c){clearTimeout(this.closing);
if(this.menu.element.is(":visible")){this.menu.element.hide();
this.menu.deactivate();
this._trigger("close",c)
}},_change:function(c){if(this.previous!==this.element.val()){this._trigger("change",c,{item:this.selectedItem})
}},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c
}return a.map(c,function(d){if(typeof d==="string"){return{label:d,value:d}
}return a.extend({label:d.label||d.value,value:d.value||d.label},d)
})},_suggest:function(c){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1);
this._renderMenu(d,c);
this.menu.deactivate();
this.menu.refresh();
d.show();
this._resizeMenu();
d.position(a.extend({of:this.element},this.options.position))
},_resizeMenu:function(){var c=this.menu.element;
c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()))
},_renderMenu:function(e,d){var c=this;
a.each(d,function(f,g){c._renderItem(e,g)
})},_renderItem:function(c,d){return a("<li></li>").data("item.autocomplete",d).append(a("<a></a>").text(d.label)).appendTo(c)
},_move:function(d,c){if(!this.menu.element.is(":visible")){this.search(null,c);
return
}if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);
this.menu.deactivate();
return
}this.menu[d](c)
},widget:function(){return this.menu.element
}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")
},filter:function(e,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");
return a.grep(e,function(f){return d.test(f.label||f.value||f)
})}})}(jQuery));
(function(a){a.widget("ui.menu",{_create:function(){var b=this;
this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length){return
}c.preventDefault();
b.select(c)
});this.refresh()
},refresh:function(){var c=this;
var b=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");
b.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(d){c.activate(d,a(this).parent())
}).mouseleave(function(){c.deactivate()
})},activate:function(e,d){this.deactivate();
if(this.hasScroll()){var f=d.offset().top-this.element.offset().top,b=this.element.attr("scrollTop"),c=this.element.height();
if(f<0){this.element.attr("scrollTop",b+f)
}else{if(f>=c){this.element.attr("scrollTop",b+f-c+d.height())
}}}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();
this._trigger("focus",e,{item:d})
},deactivate:function(){if(!this.active){return
}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");
this.active=null
},next:function(b){this.move("next",".ui-menu-item:first",b)
},previous:function(b){this.move("prev",".ui-menu-item:last",b)
},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length
},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length
},move:function(e,d,c){if(!this.active){this.activate(c,this.element.children(d));
return
}var b=this.active[e+"All"](".ui-menu-item").eq(0);
if(b.length){this.activate(c,b)
}else{this.activate(c,this.element.children(d))
}},nextPage:function(d){if(this.hasScroll()){if(!this.active||this.last()){this.activate(d,this.element.children(".ui-menu-item:first"));
return
}var e=this.active.offset().top,c=this.element.height(),b=this.element.children(".ui-menu-item").filter(function(){var f=a(this).offset().top-e-c+a(this).height();
return f<10&&f>-10
});if(!b.length){b=this.element.children(".ui-menu-item:last")
}this.activate(d,b)
}else{this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))
}},previousPage:function(c){if(this.hasScroll()){if(!this.active||this.first()){this.activate(c,this.element.children(".ui-menu-item:last"));
return
}var d=this.active.offset().top,b=this.element.height();
result=this.element.children(".ui-menu-item").filter(function(){var e=a(this).offset().top-d+b-a(this).height();
return e<10&&e>-10
});if(!result.length){result=this.element.children(".ui-menu-item:first")
}this.activate(c,result)
}else{this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))
}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")
},select:function(b){this._trigger("selected",b,{item:this.active})
}})}(jQuery));
(function(a){a.uniform={options:{selectClass:"selector",radioClass:"radio",checkboxClass:"checker",fileClass:"uploader",filenameClass:"filename",fileBtnClass:"action",fileDefaultText:"No file selected",fileBtnText:"Choose File",checkedClass:"checked",focusClass:"focus",disabledClass:"disabled",buttonClass:"button",activeClass:"active",hoverClass:"hover",useID:true,idPrefix:"uniform",resetSelector:false,autoHide:true},elements:[]};
if(a.browser.msie&&a.browser.version<7){a.support.selectOpacity=false
}else{a.support.selectOpacity=true
}a.fn.uniform=function(l){l=a.extend(a.uniform.options,l);
var d=this;
if(l.resetSelector!=false){a(l.resetSelector).mouseup(function(){function m(){a.uniform.update(d)
}setTimeout(m,10)
})}function k(m){$el=a(m);
$el.addClass($el.attr("type"));
b(m)}function g(m){a(m).addClass("uniform");
b(m)}function j(p){var n=a(p);
var q=a("<div>"),m=a("<span>");
q.addClass(l.buttonClass);
if(l.useID&&n.attr("id")!=""){q.attr("id",l.idPrefix+"-"+n.attr("id"))
}var o;
if(n.is("a")||n.is("button")){o=n.text()
}else{if(n.is(":submit")||n.is(":reset")||n.is("input[type=button]")){o=n.attr("value")
}}o=o==""?n.is(":reset")?"Reset":"Submit":o;
m.html(o);
n.css("opacity",0);
n.wrap(q);
n.wrap(m);
q=n.closest("div");
m=n.closest("span");
if(n.is(":disabled")){q.addClass(l.disabledClass)
}q.bind({"mouseenter.uniform":function(){q.addClass(l.hoverClass)
},"mouseleave.uniform":function(){q.removeClass(l.hoverClass);
q.removeClass(l.activeClass)
},"mousedown.uniform touchbegin.uniform":function(){q.addClass(l.activeClass)
},"mouseup.uniform touchend.uniform":function(){q.removeClass(l.activeClass)
},"click.uniform touchend.uniform":function(s){if(a(s.target).is("span")||a(s.target).is("div")){if(p[0].dispatchEvent){var r=document.createEvent("MouseEvents");
r.initEvent("click",true,true);
p[0].dispatchEvent(r)
}else{p[0].click()
}}}});
p.bind({"focus.uniform":function(){q.addClass(l.focusClass)
},"blur.uniform":function(){q.removeClass(l.focusClass)
}});a.uniform.noSelect(q);
b(p)}function e(p){var n=a(p);
var q=a("<div />"),m=a("<span />");
if(!n.css("display")=="none"&&l.autoHide){q.hide()
}q.addClass(l.selectClass);
if(l.useID&&p.attr("id")!=""){q.attr("id",l.idPrefix+"-"+p.attr("id"))
}var o=p.find(":selected:first");
if(o.length==0){o=p.find("option:first")
}m.text(o.text());
p.css("opacity",0);
p.wrap(q);
p.before(m);
p.data("origOnChange",p.attr("onchange"));
p.removeAttr("onchange");
q=p.parent("div");
m=p.siblings("span");
p.bind({"change.uniform":function(){m.text(p.find(":selected").text());
q.removeClass(l.activeClass);
if(typeof p.data("origOnChange")=="function"){p.data("origOnChange")(arguments)
}},"focus.uniform":function(){q.addClass(l.focusClass)
},"blur.uniform":function(){q.removeClass(l.focusClass);
q.removeClass(l.activeClass)
},"mousedown.uniform touchbegin.uniform":function(){q.addClass(l.activeClass)
},"mouseup.uniform touchend.uniform":function(){q.removeClass(l.activeClass)
},"click.uniform touchend.uniform":function(){q.removeClass(l.activeClass)
},"mouseenter.uniform":function(){q.addClass(l.hoverClass)
},"mouseleave.uniform":function(){q.removeClass(l.hoverClass);
q.removeClass(l.activeClass)
},"keyup.uniform":function(){m.text(p.find(":selected").text())
}});if(a(p).is(":disabled")){q.addClass(l.disabledClass)
}a.uniform.noSelect(m);
b(p)}function f(o){var n=a(o);
var p=a("<div />"),m=a("<span />");
if(!n.css("display")=="none"&&l.autoHide){p.hide()
}p.addClass(l.checkboxClass);
if(l.useID&&o.attr("id")!=""){p.attr("id",l.idPrefix+"-"+o.attr("id"))
}a(o).wrap(p);
a(o).wrap(m);
m=o.parent();
p=m.parent();
a(o).css("opacity",0).bind({"focus.uniform":function(){p.addClass(l.focusClass)
},"blur.uniform":function(){p.removeClass(l.focusClass)
},"click.uniform touchend.uniform":function(){if(!a(o).is(":checked")){m.removeClass(l.checkedClass)
}else{m.addClass(l.checkedClass)
}},"mousedown.uniform touchbegin.uniform":function(){p.addClass(l.activeClass)
},"mouseup.uniform touchend.uniform":function(){p.removeClass(l.activeClass)
},"mouseenter.uniform":function(){p.addClass(l.hoverClass)
},"mouseleave.uniform":function(){p.removeClass(l.hoverClass);
p.removeClass(l.activeClass)
}});if(a(o).is(":checked")){m.addClass(l.checkedClass)
}if(a(o).is(":disabled")){p.addClass(l.disabledClass)
}b(o)}function c(o){var n=a(o);
var p=a("<div />"),m=a("<span />");
if(!n.css("display")=="none"&&l.autoHide){p.hide()
}p.addClass(l.radioClass);
if(l.useID&&o.attr("id")!=""){p.attr("id",l.idPrefix+"-"+o.attr("id"))
}a(o).wrap(p);
a(o).wrap(m);
m=o.parent();
p=m.parent();
a(o).css("opacity",0).bind({"focus.uniform":function(){p.addClass(l.focusClass)
},"blur.uniform":function(){p.removeClass(l.focusClass)
},"click.uniform touchend.uniform":function(){if(!a(o).is(":checked")){m.removeClass(l.checkedClass)
}else{var q=l.radioClass.split(" ")[0];
a("."+q+" span."+l.checkedClass+":has([name='"+a(o).attr("name")+"'])").removeClass(l.checkedClass);
m.addClass(l.checkedClass)
}},"mousedown.uniform touchend.uniform":function(){if(!a(o).is(":disabled")){p.addClass(l.activeClass)
}},"mouseup.uniform touchbegin.uniform":function(){p.removeClass(l.activeClass)
},"mouseenter.uniform touchend.uniform":function(){p.addClass(l.hoverClass)
},"mouseleave.uniform":function(){p.removeClass(l.hoverClass);
p.removeClass(l.activeClass)
}});if(a(o).is(":checked")){m.addClass(l.checkedClass)
}if(a(o).is(":disabled")){p.addClass(l.disabledClass)
}b(o)}function h(r){var p=a(r);
var s=a("<div />"),q=a("<span>"+l.fileDefaultText+"</span>"),n=a("<span>"+l.fileBtnText+"</span>");
if(!p.css("display")=="none"&&l.autoHide){s.hide()
}s.addClass(l.fileClass);
q.addClass(l.filenameClass);
n.addClass(l.fileBtnClass);
if(l.useID&&p.attr("id")!=""){s.attr("id",l.idPrefix+"-"+p.attr("id"))
}p.wrap(s);
p.after(n);
p.after(q);
s=p.closest("div");
q=p.siblings("."+l.filenameClass);
n=p.siblings("."+l.fileBtnClass);
if(!p.attr("size")){var m=s.width();
p.attr("size",m/10)
}var o=function(){var t=p.val();
if(t===""){t=l.fileDefaultText
}else{t=t.split(/[\/\\]+/);
t=t[(t.length-1)]
}q.text(t)
};o();
p.css("opacity",0).bind({"focus.uniform":function(){s.addClass(l.focusClass)
},"blur.uniform":function(){s.removeClass(l.focusClass)
},"mousedown.uniform":function(){if(!a(r).is(":disabled")){s.addClass(l.activeClass)
}},"mouseup.uniform":function(){s.removeClass(l.activeClass)
},"mouseenter.uniform":function(){s.addClass(l.hoverClass)
},"mouseleave.uniform":function(){s.removeClass(l.hoverClass);
s.removeClass(l.activeClass)
}});if(a.browser.msie){p.bind("click.uniform.ie7",function(){setTimeout(o,0)
})}else{p.bind("change.uniform",o)
}if(p.is(":disabled")){s.addClass(l.disabledClass)
}a.uniform.noSelect(q);
a.uniform.noSelect(n);
b(r)}a.uniform.restore=function(m){if(m==undefined){m=a(a.uniform.elements)
}a(m).each(function(){if(a(this).is(":checkbox")){a(this).unwrap().unwrap()
}else{if(a(this).is("select")){a(this).siblings("span").remove();
a(this).unwrap()
}else{if(a(this).is(":radio")){a(this).unwrap().unwrap()
}else{if(a(this).is(":file")){a(this).siblings("span").remove();
a(this).unwrap()
}else{if(a(this).is("button, :submit, :reset, a, input[type='button']")){a(this).unwrap().unwrap()
}}}}}a(this).unbind(".uniform");
a(this).css("opacity","1");
var n=a.inArray(a(m),a.uniform.elements);
a.uniform.elements.splice(n,1)
})};function b(m){m=a(m).get();
if(m.length>1){a.each(m,function(n,o){a.uniform.elements.push(o)
})}else{a.uniform.elements.push(m)
}}a.uniform.noSelect=function(m){function n(){return false
}a(m).each(function(){this.onselectstart=this.ondragstart=n;
a(this).mousedown(n).css({MozUserSelect:"none"})
})};a.uniform.update=function(m){if(m==undefined){m=a(a.uniform.elements)
}m=a(m);
m.each(function(){var o=a(this);
if(o.is("select")){var n=o.siblings("span");
var q=o.parent("div");
q.removeClass(l.hoverClass+" "+l.focusClass+" "+l.activeClass);
n.html(o.find(":selected").text());
if(o.is(":disabled")){q.addClass(l.disabledClass)
}else{q.removeClass(l.disabledClass)
}}else{if(o.is(":checkbox")){var n=o.closest("span");
var q=o.closest("div");
q.removeClass(l.hoverClass+" "+l.focusClass+" "+l.activeClass);
n.removeClass(l.checkedClass);
if(o.is(":checked")){n.addClass(l.checkedClass)
}if(o.is(":disabled")){q.addClass(l.disabledClass)
}else{q.removeClass(l.disabledClass)
}}else{if(o.is(":radio")){var n=o.closest("span");
var q=o.closest("div");
q.removeClass(l.hoverClass+" "+l.focusClass+" "+l.activeClass);
n.removeClass(l.checkedClass);
if(o.is(":checked")){n.addClass(l.checkedClass)
}if(o.is(":disabled")){q.addClass(l.disabledClass)
}else{q.removeClass(l.disabledClass)
}}else{if(o.is(":file")){var q=o.parent("div");
var p=o.siblings(l.filenameClass);
btnTag=o.siblings(l.fileBtnClass);
q.removeClass(l.hoverClass+" "+l.focusClass+" "+l.activeClass);
p.text(o.val());
if(o.is(":disabled")){q.addClass(l.disabledClass)
}else{q.removeClass(l.disabledClass)
}}else{if(o.is(":submit")||o.is(":reset")||o.is("button")||o.is("a")||m.is("input[type=button]")){var q=o.closest("div");
q.removeClass(l.hoverClass+" "+l.focusClass+" "+l.activeClass);
if(o.is(":disabled")){q.addClass(l.disabledClass)
}else{q.removeClass(l.disabledClass)
}}}}}}})
};return this.each(function(){if(a.support.selectOpacity){var m=a(this);
if(m.is("select")){if(m.attr("multiple")!=true){if(m.attr("size")==undefined||m.attr("size")<=1){e(m)
}}}else{if(m.is(":checkbox")){f(m)
}else{if(m.is(":radio")){c(m)
}else{if(m.is(":file")){h(m)
}else{if(m.is(":text, :password, input[type='email']")){k(m)
}else{if(m.is("textarea")){g(m)
}else{if(m.is("a")||m.is(":submit")||m.is(":reset")||m.is("button")||m.is("input[type=button]")){j(m)
}}}}}}}}})
}})(jQuery);
(function(){var a=false,b=/xyz/.test(function(){xyz
})?/\b_super\b/:/.*/;
this.JClass=function(){};
JClass.extend=function(g){var e=this.prototype;
a=true;
var d=new this();
a=false;
for(var c in g){d[c]=typeof g[c]=="function"&&typeof e[c]=="function"&&b.test(g[c])?(function(h,j){return function(){var l=this._super;
this._super=e[h];
var k=j.apply(this,arguments);
this._super=l;
return k
}})(c,g[c]):g[c]
}function f(){if(!a&&this.init){this.init.apply(this,arguments)
}}f.prototype=d;
f.constructor=f;
f.extend=arguments.callee;
return f
}})();
jQuery.noConflict();
jQuery.ajaxSettings.traditional=true;
jQuery.ajaxSettings.contentType="application/x-www-form-urlencoded; charset=UTF-8";
var vc={config:typeof vc_config=="object"?vc_config:{}};
vc.metadata=function(c,h,b){if(typeof b=="undefined"&&jQuery.isArray(h)){b=h;
h=undefined
}var g=jQuery(c),d;
if(g.length<1){return
}d=g.data("metadata");
if(!d){d={};
if(c.nodeType===9){g.find("head meta[name]").each(function(j,k){d[k.getAttribute("name")]=k.getAttribute("content")
})}else{if(b&&g[0].className){jQuery.each(b,function(j,e){if(g.hasClass(e)){d[e]=true
}})}jQuery(g[0].attributes).each(function(){if(this.nodeName.indexOf("data-")==0){d[this.nodeName.substring(5)]=this.nodeValue
}});var a=g.find("script[type=metadata]:first").html();
if(a){try{jQuery.extend(d,JSON.parse(a))
}catch(f){console.error("error parsing metadata json",f)
}}}g.data("metadata",d)
}return jQuery.extend({},h,d)
};vc.l=function(c){var a=vc.lang[vc.config.lang||"hu"];
if(c.indexOf(".")>-1){var d=c.split(".");
for(var b=0;
b<d.length-1;
b++){a=a[d[b]]
}c=d[b]
}return a[c]
};if(typeof $l=="undefined"){$l=vc.localize
}vc.URI=function(g,d){var e=this;
var b={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},protocols:{http:80,https:443,ftp:21,rtsp:554,mms:1755,file:0}};
vc.URI.prototype.toString=function(){return(e.protocol?e.protocol+"://":"")+(e.user?e.user+(e.password?":"+e.password:"")+"@":"")+(e.host||"")+(e.port&&e.port!=b.protocols[e.protocol]?":"+e.port:"")+(e.directory||"/")+(e.file||"")+(e.query?"?"+e.query:"")+(e.anchor?"#"+e.anchor:"")
};vc.URI.prototype.setQueryParam=function(h,j){this.queryKey[h]=j;
this.query=jQuery.param(this.queryKey,true)
};var f=b,a=f.parser[d?"strict":"loose"].exec(g),c=14;
while(c--){e[f.key[c]]=a[c]||""
}e[f.q.name]={};
e[f.key[12]].replace(f.q.parser,function(j,h,k){if(h){e[f.q.name][h]=k
}});return this
};vc.URI.setQueryParam=function(b,a,c){var b=new vc.URI(b);
b.setQueryParam(a,c);
return b.toString()
};vc._getResourcesRoot=function(a){if(typeof vc["_"+a+"Root"]=="undefined"){jQuery("script").each(function(c,d){if(d.src){var b=d.src.match(/(.*?\/((res|common)\/))(js(-gen)?|javascripts?)\//);
if(b&&b[1]){if(b[3]=="common"){vc._imgRoot=b[1]+"image/";
vc._cssRoot=b[1]+(b[4]?"css-gen/":"css/");
vc._jsRoot=b[1]+(b[4]?"js-gen/":"javascript/")
}else{if(b[3]=="res"){vc._imgRoot=b[1]+"img/";
vc._cssRoot=b[1]+"css/";
vc._jsRoot=b[1]+"js/"
}}return false
}}});if(!vc._imgRoot&&vc._imgRoot!=""){console.error("resources root not set and could not be detected, setting all to null");
vc._imgRoot=null;
vc._cssRoot=null;
vc._jsRoot=null
}}return a?vc["_"+a+"Root"]:vc._resourcesRoot
};vc.getImgRoot=function(){return vc._getResourcesRoot("img")
};vc.getCssRoot=function(){return vc._getResourcesRoot("css")
};vc.getJsRoot=function(){return vc._getResourcesRoot("js")
};vc.InfoBar=function(a,b){this.$container=jQuery(a);
this.$content=this.$container.find(".infoBarInner").andSelf().last();
this.$text=this.$content.find(".text").andSelf().last();
this._type=null;
this.appear=true;
this.options=b
};vc.InfoBar.prototype={getType:function(){return this._type
},hide:function(a){if(!a||this.has(a)){this._stop();
this.$container.hide();
this._type=null;
this._message=null;
this.$container.trigger("hideInfoBar",a)
}},has:function(a){return a===this._message
},show:function(e,b){var b=jQuery.extend({},b);
this._stop();
if(b.type){b.type=b.type.toLowerCase()
}else{b.type="notification"
}var d=this.$content;
var c=false;
jQuery.each(["error","success","notification"],function(){var g=this.charAt(0).toUpperCase()+this.substr(1);
if(b.type==this){c=true;
d.addClass("infoBar"+g)
}else{d.removeClass("infoBar"+g)
}});if(!c){this._type="notification";
d.addClass("infoBarNotification")
}else{this._type=b.type
}this._message=e;
this.$text.html(e);
var a=this.$container;
if(this.appear&&this.$container.css("display")!="none"){this.$container.hide().fadeIn(function(){a.trigger("showInfoBar",e,b)
})}else{this.$container.show();
this.$container.trigger("showInfoBar",e,b);
var f;
if((f=b.timeout||(this.options&&this.options.timeout?this.options.timeout[b.type]:0))){this.hideTimer=setTimeout(function(){a.fadeOut()
},f)}}},_stop:function(){clearTimeout(this.hideTimer);
this.$container.stop(true,true)
},success:function(a){this.show(a,{type:"success"})
},notification:function(a){this.show(a,{type:"notification"})
},error:function(a){this.show(a,{type:"error"})
}};jQuery(function(){var b=jQuery("#windowInfoBar");
if(!b.length){b=jQuery("<div/>",{"class":"infoBar windowInfoBar",html:'<span class="infoBarInner"></span>'}).hide().appendTo("body")
}var a=new vc.InfoBar(b,vc.config.infoBar);
a.appear=false;
b.click(function(){a.hide()
});jQuery(["show","hide","error","success","notification","getType","has"]).each(function(c,d){vc.InfoBar[d]=function(){return a?a[d].apply(a,arguments):false
}})});
vc.serializeXML=function(a){if(typeof XMLSerializer!="undefined"&&!a.xml){return new XMLSerializer().serializeToString(a)
}else{if(a.xml){return a.xml
}else{console.error("vc.serializeXML: no serialization method found");
return null
}}};(function(c){var k=/(.*):(?:on([\S]+)$)/;
var a=[];
var b=typeof vc_debug!=="undefined";
var m=[];
jQuery(function(){jQuery.each(m,function(n,o){j.apply(null,o)
});m=null
});jQuery(document).bind("elementInsert",g);
jQuery(g);
vc.attach=function(o,n,r,p){if(typeof n!=="string"&&typeof n.selector==="undefined"){p=r;
r=n;n=o;
o="body"
}if(typeof n.selector!=="undefined"){o=n;
n=c}p=p||{};
var q={};
jQuery.each((r.handlers||r),function(v){var u,t=r.handlers?r[r.handlers[v]]:r[v];
if(v.indexOf("on")===0&&v.length>2){(q[""]||(q[""]={}))[v.substring(2)]=t
}else{if((u=v.match(k))){(q[u[1]]||(q[u[1]]={}))[u[2]]=t
}}});if(p.eager){if(n!==c){a.push([n,q,r,p]);
if(jQuery.isReady){jQuery(n).each(function(){var t=jQuery(this);
j(t,c,q,r,p);
d(t,r,p)
})}}else{console.warn("can not eager bind without selector")
}}else{var s=[o,n,q,r,p];
if(jQuery.isReady){j.apply(null,s)
}else{m.push(s)
}}};function g(n){var o=n.target?jQuery(n.target):jQuery("body");
jQuery.each(a,function(p,r){var q=o.find(r[0]).add(o.filter(r[0])).each(function(){var s=jQuery(this);
j(s,c,r[1],r[2],r[3]);
d(s,r[2],r[3])
}).length;
if(b){vc_debug._eager(r[0],q)
}})}function l(){}function j(o,n,q,r,p){jQuery.each(q,function(u,s){var t="";
jQuery.each(s,function(w){t+=w+" "
});var v={behavior:r,handlers:s,options:p,selector:n};
if(n!==c||u!==""){jQuery(o).delegate((n!==c?n+" "+u:u),t,v,f)
}else{jQuery(o).bind(t,v,f)
}if(b){vc_debug._attach(o,(n!==c?n+" "+u:u),t,p)
}})}function f(o){var n=o.data.selector!==c?jQuery(o.currentTarget).closest(o.data.selector):jQuery(o.liveFired||o.currentTarget);
return o.data.handlers[o.type].apply(d(n,o.data.behavior,o.data.options),arguments)
}function e(p){function n(){}n.prototype=p;
return new n()
}var h=0;
function d(p,q,o){var s=q._attach_id||(q._attach_id=++h);
var r=p.data("instances");
if(!r){r={};
p.data("instances",r)
}var n=r[s];
if(!n){if(typeof q==="function"){n=new q(p,o)
}else{if(typeof q.initialize==="function"){n=e(q);
n.initialize(p,o)
}else{n={}
}}r[s]=n
}return n
}})();
vc.lang={hu:{ajax:{loading:"Betöltés...",stillLoading:"Még mindig töltődik, türelem...",error:"Váratlan hiba történt..."}},en:{ajax:{loading:"Loading...",stillLoading:"Still loading...",error:"Unexpected error..."}}};
(function(){var b=vc.l("ajax.loading"),g=vc.l("ajax.stillLoading"),f=vc.l("ajax.error"),a,h;
function e(){vc.InfoBar.hide()
}function l(o,n,m){if(!m.silent){clearTimeout(a);
a=setTimeout(function(){if(jQuery.active>0&&!vc.InfoBar.has(g)){vc.InfoBar.show(b)
}},1000);
clearTimeout(h);
h=setTimeout(function(){if(jQuery.active>0){vc.InfoBar.show(g)
}},5000)
}}function k(o,n,m){}function j(q,p,m,n){if(p.status<=0||p.status>=600){console.log("req.status == "+p.status+": connection error, or user interrupted")
}else{if(p.status==302){console.error("req.status == 302: this shuld never happen! check crossdomain scripting")
}else{console.log("response has errors. req.status="+p.status,p)
}if(!m.ignoreErrors&&!m.silent){var r=jQuery(p.responseXML).find("msg");
var o=(r.length)?r.attr("code"):"";
if(o==="2773"||o==="6969"){console.log("csrf or auth error")
}else{vc.InfoBar.error(f)
}}}if(n){console.error("exception on ajax request:"+n.message,n)
}}function c(p,o,n,m){if(m&&m.messages.length>0){var q=m.messages[m.messages.length-1];
vc.InfoBar.show(q.body,{type:q.type})
}}function d(){vc.InfoBar.hide(b);
vc.InfoBar.hide(g)
}jQuery(document).bind({ajaxStart:e,ajaxSend:l,ajaxSuccess:k,ajaxError:j,vcAjaxComplete:c,ajaxStop:d})
})();jQuery(document).ajaxComplete(function(c,b,a){if(b&&b.getResponseHeader("X-VRedirect")){window.location=b.getResponseHeader("X-VRedirect")
}});(function(){function b(g){return g.nodeType==4?g.nodeValue:vc.serializeXML(g)
}function c(g){if(g.childNodes.length==1){return b(g.firstChild)
}else{var j="",h=g.firstChild;
while(h){j+=b(h);
h=h.nextSibling
}return j
}}function a(g){var h={content:{},messages:[]};
jQuery(g).find("content, status msg").each(function(k,l){var j=jQuery(l);
if(l.nodeName=="content"){var m=j.attr("id");
h.content[m?m:""]=c(j.get(0))
}else{if(l.nodeName=="msg"){h.messages.push({type:j.attr("type"),code:j.attr("code"),body:c(j.get(0))})
}}});return h
}var d=/<script(.|\s)*?\/script>/gi;
function e(h,g){var j=h;
if(jQuery.isFunction(g.filter)){j=g.filter.call(null,j)
}if(g.selector){j=jQuery("<div/>").html(j.replace(d,"")).find(g.selector)
}return j
}function f(n,m,j,k){if(n){if(j){var h=[];
n.each(function(){h.push([this.parentNode,this.previousSibling,this.nextSibling])
});n.replaceWith(m);
jQuery.each(h,function(){var p=this[1]?this[1].nextSibling:this[0].firstChild;
while(p&&p!==this[1]){jQuery(p).trigger("elementInsert");
p=p.nextSibling
}})}else{n.html(m);
n.children().trigger("elementInsert")
}}if(k&&k.length>0&&n&&n.length>0){var g=n.parentsUntil("body").andSelf().prevAll(".infoBar").last();
if(g.length){var l=g.data("infoBar");
if(!l){l=new vc.InfoBar(g);
g.data("infoBar",l)
}var o=k.pop();
l.show(o.body,{type:o.type})
}}}vc.multiLoad=function(h,k,j){var l;
if(arguments.length===2&&typeof k!=="string"){j=k;
k=h;h=undefined
}else{if(arguments.length===1){k=h;
h=undefined
}}if(h){l=jQuery(h)
}if(typeof j==="function"){j={complete:j}
}var g=j?j.complete:undefined;
j=jQuery.extend({},j,{url:k,complete:function(o,n){var m;
if(jQuery.isXMLDoc(o.responseXML)&&o.responseXML.documentElement.nodeName=="result"){m=a(o.responseXML)
}if(j.beforeComplete){j.beforeComplete(m?(m.content[""]||""):o.responseText,o,n,m)
}if(n==="success"||n==="notmodified"){if(m){jQuery.each(m.content,function(p,q){f((p===""?l:jQuery("#"+p)),e(q,j),j.replace,m.messages)
})}else{f(l,e(o.responseText,j),j.replace)
}}jQuery.event.trigger("vcAjaxComplete",[o,j,m]);
if(g){g(m?(m.content[""]||""):o.responseText,o,n,m)
}}});jQuery.ajax(j)
}})();
vc.ui={};
vc.ui.DefaultText={initialize:function(b,a){if(a.defaultText){this.defaultText=a.defaultText
}else{if(b.next(".valueText").length){this.defaultText=b.next(".valueText").html()
}else{if(b.attr("title")){this.defaultText=b.attr("title");
b.attr("title","")
}else{throw new Error("DefaultText: neither paremeter nor element defaultText found")
}}}b.closest("form").submit(jQuery.proxy(this,"formsubmit"));
this.active=false;
if(b[0].value==this.defaultText||b[0].value==""){b.addClass("defaultTextContent");
b[0].value=this.defaultText;
this.active=true
}else{b.removeClass("defaultTextContent")
}this.element=b;
if(!vc.ui.DefaultText.val){var c=jQuery.fn.val;
vc.ui.DefaultText.val=function(d){if(this.hasClass("defaultTextContent")){if(typeof d==="undefined"){return""
}else{this.removeClass("defaultTextContent");
return c.apply(this,arguments)
}}else{return c.apply(this,arguments)
}};jQuery.fn.val=vc.ui.DefaultText.val
}},onfocusin:function(a){if(this.element[0].value==this.defaultText&&this.active){this.element[0].value="";
this.element.removeClass("defaultTextContent")
}},onfocusout:function(a){if(this.element[0].value==""){this.element.addClass("defaultTextContent");
this.element[0].value=this.defaultText;
this.active=true
}},ondragover:function(a){return this.onfocusin(a)
},onkeypress:function(a){this.active=false
},formsubmit:function(){if(this.element[0].value==this.defaultText&&this.active){this.element.val("");
this.element.removeClass("defaultTextContent")
}}};vc.attach("input.defaultText, textarea.defaultText",vc.ui.DefaultText,{eager:true});
vc.submitForm={onclick:function(c){c.preventDefault();
var f=jQuery(c.currentTarget);
if(f.hasClass("disabled")){return
}var e=f.find("input[type=submit]");
if(e.length){var d=f.find("input[type=hidden]");
if(!d.length){d=jQuery("<input/>",{type:"hidden",name:e.attr("name"),value:e.attr("value")}).appendTo(f)
}d[0].disabled=false
}var b=f.closest("form");
var a;
if(f[0].href&&(a=f[0].getAttribute("href",2))!=="#"&&a!==""){b[0].action=a
}var e=new jQuery.Event("submit");
b.trigger(e);
if(e.isDefaultPrevented()){if(d&&d.length){d[0].disabled=true
}}}};vc.attach(document,"form .submitForm",vc.submitForm);
vc.ui.SubmitOnce={initialize:function(a){this.element=a
},onsubmit:function(a){if(!this.disabled){this.disabled=true;
if(jQuery.browser.msie){setTimeout(jQuery.proxy(this,"disable"),1)
}else{this.disable()
}}else{this.element.addClass("busy");
a.preventDefault();
a.stopPropagation()
}},disable:function(){this.element.find("input[type=submit], input[type=reset], button[type=submit], button[type=reset]").each(function(){this.disabled=true
})}};vc.attach(document,"form.submitOnce",vc.ui.SubmitOnce);
vc.ui.SubmitOnChange={onchange:function(b){var a=jQuery(b.currentTarget).closest("form");
var c=new jQuery.Event("submit");
a.trigger(c)
}};vc.attach(document,"form .submitOnChange",vc.ui.SubmitOnChange);
vc.ui.TextareaMaxlength={initialize:function(b,a){this.element=b;
this.options=jQuery.extend({},vc.metadata(b,a));
this.counter=this.getCounter();
this.firstLoad=true;
this.check();
console.log("TextareaMaxlength",this.options.maxlength)
},getCounter:function(){var a=jQuery("label.counter[for="+this.element[0].id+"], label[for="+this.element[0].id+"] .counter");
if(a.length){return a
}},delayedCheck:function(){setTimeout(jQuery.proxy(this,"check"),100)
},check:function(){var a=this.element.val();
if(a.length>this.options.maxlength){this.element.val(a.substring(0,this.options.maxlength))
}if(this.counter){if(this.firstLoad){this.updateCounter();
this.firstLoad=false;
this.doDebounce=jQuery.debounce(250,jQuery.proxy(this,"updateCounter"))
}else{this.doDebounce()
}}},updateCounter:function(){this.counter.text(Math.max(0,this.options.maxlength-this.element.val().length))
},onkeyup:function(){this.check()
},onpaste:function(){this.delayedCheck()
},ondrop:function(){this.delayedCheck()
},ondragdrop:function(){this.delayedCheck()
}};vc.attach("textarea.maxLength",vc.ui.TextareaMaxlength,{eager:true});
vc.Tooltip=function(){this.options={};
this.target=jQuery(Array.prototype.shift.apply(arguments));
if(typeof arguments[0]!=="object"){this.content=Array.prototype.shift.apply(arguments)
}var a=Array.prototype.shift.apply(arguments)||{};
if(!vc.Tooltip.Styles[a.style]){console.warn("Tooltip: empty or missing style:"+a.styleName)
}this.options=jQuery.extend({},vc.Tooltip.Styles.tip,vc.Tooltip.Styles[a.style],a);
if(typeof this.options.hideOn==="string"){this.options.hideOn=[this.options.hideOn]
}this._observed={};
if(this.options.showOn){this._observe(this.options.showOn)
}this._modalZIndex=vc.Tooltips.zIndexStart+(vc.Tooltips.tips.length*2);
this._zIndex=this._modalZIndex+1;
vc.Tooltips.tips.push(this);
this.target.data("tooltip",this)
};vc.Tooltip.prototype={_observe:function(a){if(!this._observed[a]){this._observed[a]=true;
this.target.bind(a,jQuery.proxy(this,"dispatchEvent"))
}},dispatchEvent:function(a){if(this.options.showOn===a.type){this.show(a)
}if(!a.isDefaultPrevented()&&jQuery.grep(this.options.hideOn,function(b){return b.element==="target"&&a.type===b.event
}).length){this.hide(a)
}},show:function(c,b){var a=this;
if(this.visible){return false
}else{if(!b&&this.options.delay){this._show_t=setTimeout(function(){a.show(null,true)
},1000*this.options.delay)
}else{if(this.options.hideOthers){jQuery.each(vc.Tooltips.tips,function(d,e){if(e!==a){e.hide()
}})}if(!this.wrapper){this._createWrapper()
}if(this.options.modal){vc.Tooltip._modalOverlay.css({zIndex:this._modalZIndex});
vc.Tooltip._modalOverlay.show()
}if(!this.contentLoaded){if(this.content){this.tip.html(this.content);
this._displayAndPosition()
}else{if(this.options.ajax){vc.multiLoad(this.tip,this.options.ajax.url,jQuery.extend({},this.options.ajax.options,{complete:jQuery.proxy(this,"_displayAndPosition")}))
}}this.contentLoaded=true
}else{this._displayAndPosition()
}}}if(c){c.preventDefault()
}return true
},_createWrapper:function(){if(this.options.modal&&!vc.Tooltip._modalOverlay){vc.Tooltip._modalOverlay=jQuery("<div/>",{className:"modalBg",css:{height:$(document.body).getHeight()+"px",position:"absolute",width:"100%",left:"0",top:"0"}}).appendTo("body");
vc.Tooltip._modalOverlay.click(function(){jQuery.each(vc.Tooltips.tips,function(a,b){b.hide()
})})}this.wrapper=jQuery(this.options.template).appendTo("body");
this.wrapper.addClass("tooltip");
this.wrapper.addClass(this.options.className||this.options.style||"tip");
this.wrapper.css({zIndex:this._zIndex});
this.tip=this.wrapper.find(".content");
this.wrapper.data("tooltip",this)
},_registerHideOn:function(){if(!this._hideRegistered){this._hideRegistered=true;
var b=jQuery.proxy(this,"hide");
var a=this;
jQuery.each(this.options.hideOn,function(d,c){if(typeof c==="string"){a.target.bind(c,b)
}else{if(typeof c==="object"){if(c.element==="target"){a._observe(c.event)
}else{if(jQuery.inArray(["element","tip"],c.element)>-1){a[c.element].bind(c.event,b)
}else{if(c.element.indexOf(".")===0){a.wrapper.delegate(c.element,c.event,b)
}}}}}})
}},_displayAndPosition:function(g){this._registerHideOn();
this.visible=true;
this.wrapper.css("visibility","hidden");
this.wrapper.show();
var a=this.wrapper.offset();
this.wrapper.css("position","absolute").offset(a);
var n;
var j;
var f={top:0,left:0};
if(this.options.offset){f.top+=this.options.offset.y||0;
f.left+=this.options.offset.x||0
}if(this.options.hook.tip){var d=new vc.Tooltip.Direction(this.options.hook.tip);
if(g===true){d.flip()
}var h=d.getCorrection();
if(h.left>0||h.top>0){n={width:this.wrapper.width(),height:this.wrapper.height()};
f.left-=n.width*h.left;
f.top-=n.height*h.top
}var e;
if(this.options.stems&&(e=this.options.stems[this.options.hook.tip])){f.left+=e.left;
f.top+=e.top
}if(this._direction){this.wrapper.removeClass(this._direction)
}this._direction=d.name;
this.wrapper.addClass(d.name)
}if(this.options.hook.target){var c=new vc.Tooltip.Direction(this.options.hook.target);
if(g===true){c.flip()
}var o=c.getCorrection();
if(o.left>0||o.top>0){var k={width:this.target.width(),height:this.target.height()};
f.left+=k.width*o.left;
f.top+=k.height*o.top
}var m=this.target.offset();
this.wrapper.offset({left:m.left+f.left,top:m.top+f.top});
var b=jQuery(window);
if(g!==true){if(!n){n={width:this.wrapper.width(),height:this.wrapper.height()}
}if(!j){j={left:b.scrollLeft(),top:b.scrollTop()}
}var l=false;
switch(d.m[1]){case"top":if(this.wrapper.offset().top+n.height>j.top+b.height()){l=true
}break;
case"right":if(this.wrapper.offset().left+n.width>j.left+b.width()){l=true
}break;
case"bottom":if(this.wrapper.offset().top<j.top){l=true
}break;
case"left":if(this.wrapper.offset().left<j.left){l=true
}break;
default:break
}if(l){return this._displayAndPosition(true)
}}this.wrapper.css("visibility","visible")
}else{if(this.options.hook.mouse&&jQuery.inArray(["mousemove","mouseover","mousedown","click"],event.type)>-1){this.wrapper.css({left:f.left+event.pageX,top:f.top+event.pageY})
}else{console.error("Tooltip: invalid event or invalid hook")
}}return null
},hide:function(b){if(!this.visible){return false
}else{if(b&&this.hideAfter){this._hide_t=setTimeout(jQuery.proxy(this,"hide"),this.hideAfter)
}else{this.wrapper.hide();
var a=new jQuery.Event("ondialogclose");
jQuery(this.wrapper).trigger(a);
this.visible=false
}}if(this.options.modal){vc.Tooltip._modalOverlay.hide()
}if(b){b.preventDefault()
}return true
},remove:function(){}};
vc.Tooltip.Direction=function(a){this.name=a;
this.m=a.match(/(top|right|bottom|left)(Left|Middle|Right|Top|Bottom)/)
};vc.Tooltip.Direction.prototype={getCorrection:function(){return{left:(this.m[2]=="Left"||this.m[1]=="left")?0:(this.m[2]=="Right"||this.m[1]=="right")?1:0.5,top:(this.m[1]=="top"||this.m[2]=="Top")?0:(this.m[1]=="bottom"||this.m[2]=="Bottom")?1:0.5}
},flip:function(){this.m[1]=this.m[1]=="top"?"bottom":this.m[1]=="right"?"left":this.m[1]=="bottom"?"top":"right";
this.name=this.m[1]+this.m[2];
return this.name
}};vc.Tooltips=function(){return{zIndexStart:1000,tips:[]}
}();vc.Tooltip.Styles={tip:{template:'<div style="display:none;;"><div class="content"></div></div>',delay:0.14,fixed:false,hideAfter:0,hideOn:"mouseout",hideOthers:true,hook:{target:"topLeft",tip:"bottomRight"},showOn:"mousemove",style:"tip"}};
vc.Tooltip.Styles.bubble={delay:0,showOn:"click",hideOn:[{element:"target",event:"click"},{element:".close",event:"click"}],fixed:true,hook:{tip:"topRight",target:"bottomMiddle"},stems:{topRight:{top:-4,left:23},bottomRight:{top:4,left:37}},offset:{x:0,y:5}};
vc.Tooltip.Styles.pureBubble={delay:0,showOn:"click",hideOn:[{element:"target",event:"click"},{element:".close",event:"click"}],fixed:true,hook:{tip:"topRight",target:"bottomRight"},stems:{topRight:{top:-4,left:22},bottomRight:{top:4,left:37}},offset:{x:0,y:5}};
vc.tags={};
(function(){function a(h,g){var l=h.hasClass("remote")?h:h.parents("div.remoteArea");
g=jQuery.extend({},vc.metadata(l,["methodPost","replace","ignoreErrors"]),g);
if(!g.update){g.update=e(h.get(0))
}if(g.update=="_self"){g.update=h
}else{if(g.update=="_parent"){g.update=h.parent()
}}if(typeof g.update==="string"){g.update=(g.update.indexOf("#")===0?"":"#")+g.update
}g.url=c(h.get(0));
if(g.beforeComplete){var j=g.beforeComplete;
g.beforeComplete=function(){f.apply(this,arguments);
j.apply(this,arguments)
}}else{g.beforeComplete=f
}g.beforeComplete=jQuery.proxy(g.beforeComplete,this);
if(g.complete){var k=g.complete;
g.complete=function(){b.apply(this,arguments);
k.apply(this,arguments)
}}else{g.complete=b
}g.complete=jQuery.proxy(g.complete,this);
g.context=h;
this.options=g;
this.element=h;
console.log("vc.tags.remote initialize",this)
}function d(g){if(g.update){vc.multiLoad(g.update,g.url,g)
}else{vc.multiLoad(g.url,g)
}}function f(j,k,h,g){this.disabled=false;
if(h==="success"||h==="notmodified"){this.element.trigger("response:ok",[k,g]);
if(this.options["msg-onsuccess"]&&(!g||g.messages.length===0)){vc.InfoBar.show(this.options["msg-onsuccess"],"success")
}}else{if(this.options["msg-onerror"]&&(!g||g.messages.length===0)){vc.InfoBar.show(this.options["msg-onerror"],"error")
}}}function b(j,k,h,g){this.element.trigger("remote:complete",[k,g])
}function e(h){var g=h.nodeName.toLowerCase()=="form"?h.action:h.href;
if(g){return g.lastIndexOf("#")>-1?g.substring(g.lastIndexOf("#")+1):null
}}function c(h){var g=h.nodeName.toLowerCase()=="form"?h.action:h.href;
if(g){return g.lastIndexOf("#")>-1?g.substring(0,g.indexOf("#")):g
}}vc.tags.remoteLink={initialize:a,onclick:function(g){if(!this.disabled){this.options.type=this.options.methodPost?"POST":"GET";
this.disabled=true;
d(this.options)
}g.preventDefault()
}};vc.attach(document,"a.remote, div.remoteArea a",vc.tags.remoteLink);
vc.tags.remoteForm={initialize:a,onsubmit:function(g){if(!this.disabled){this.disabled=true;
this.options.type=this.element.get(0).getAttributeNode("method")?this.element.get(0).getAttributeNode("method").value.toUpperCase():"GET";
var h=this.element.serializeArray();
if(this.submitButton){h.push({name:this.submitButton.name,value:this.submitButton.value});
delete this.submitButton
}this.options.data=jQuery.param(h);
d(this.options)
}g.preventDefault()
},onclick:function(g){if(jQuery(g.target).is("input[type=submit], button[type=submit]")){this.submitButton=g.target
}}};vc.attach(document,"form.remote, div.remoteArea form",vc.tags.remoteForm);
vc.tags.remoteLoad=function(j,h){h=jQuery.extend(vc.metadata(j,["methodPost","ignoreErrors"]),h);
h.type=h.methodPost?"POST":"GET";
var g=j.children("a:first").attr("href");
vc.multiLoad(j,g,h);
j.bind("reload",function(k){vc.multiLoad(j,g,h)
})};vc.attach(document,"div.remoteLoad",vc.tags.remoteLoad,{eager:true})
})();(function(){function a(f,d){var e=vc.metadata(f,["autoClose","notModal","modal","draggable","resizable"]);
this.options=jQuery.extend({impl:"default",autoClose:false,notModal:false,modal:true,draggable:false,resizable:false,width:"autodetect",height:"auto"},e,d);
if(this.options["class"]){this.options.dialogClass=this.options["class"]
}var c=vc.tags.showWindow.impl[this.options.impl].initialize;
if(c){c(f.get(0),this.options)
}}function b(c){vc.tags.showWindow.impl[this.options.impl].handle(c.currentTarget,this.options,c);
c.preventDefault()
}vc.tags.showWindow={impl:{},initialize:a,onclick:b};
vc.attach(document,".showWindow",vc.tags.showWindow)
})();(function(){function a(b){if(!this.initialized){this.tip.dispatchEvent(b);
this.initialized=true
}}jQuery(document).delegate(".tooltip","response:ok",function(c,e,b){console.log("response:ok");
var d=jQuery(c.currentTarget).data("tooltip");
if(d){c.stopPropagation();
jQuery(d.target).trigger("response:ok",[e,b]);
if(d.options.autoClose&&(jQuery.trim(e.responseText).length===0||(b&&!b.content[""]))){d.hide()
}}});vc.tags.showBubble={initialize:function(f,b){var e=jQuery.grep(f[0].className.split(" "),function(k){k=jQuery.trim(k);
return k.indexOf("style_")>-1
});e=(e[0])?e[0].substring(6):"bubble";
var b=jQuery.extend({style:e,autoClose:false,notModal:false,modal:false,hideOthers:false},vc.metadata(f,["for","autoClose","modal","hideOthers","onClick"]),b);
this.options=b;
var d=f[0];
var j;
if(b["for"]){if(d.rel){j=d.rel
}else{j=f.prev()[0]
}}else{j=d
}var g;
if(d.href){b.ajax={url:d.href};
d.href="javascript:;"
}else{if(d.title){g=d.title;
d.removeAttribute("title")
}else{if(b["for"]){g=d.innerHTML
}}}var h=g?new vc.Tooltip(j,g,b):new vc.Tooltip(j,b);
if(b.bubbletitle){var c=jQuery("<div>"+h.options.template+"</div>");
c.find(".head div div").text(b.bubbletitle);
h.options.template=jQuery.trim(c.html())
}this.tip=h
},onclick:a,onmousemove:a}
})();vc.attach(document,".showBubble",vc.tags.showBubble);
vc.tags.tabber={initialize:function(b){var a=b.find(".secondary .active a");
if(a.length){this.secondary=b.children(".tab:not(.secondary)").has("[rel="+a[0].rel+"]")
}this.tabber=b;
this.contents=this.tabber.next(".tabContents");
var c;
if((c=this.tabber.find(".tab.ajax.active")).length){this.load(c,c.find("a"),true)
}},".tab:onclick":function(c){var a=jQuery(c.currentTarget),b=a.find("a");
if(jQuery(c.target).closest(".tab").hasClass("secondary")){a.toggleClass("active");
c.preventDefault();
c.stopPropagation();
return
}if(b.length&&b[0].rel){c.preventDefault();
this.load(a,b)
}},load:function(b,d,e){var c=this.contents.find(".tabContent").filter("."+d[0].rel);
if(b.hasClass("ajax")&&!(e&&c.length)){if(!this.contents.length){this.contents=jQuery('<div class="tabContents"></div>').insertAfter(this.tabber)
}if(!c.length){c=jQuery('<div class="tabContent '+d[0].rel+'"></div>').appendTo(this.contents)
}var a=this;
vc.multiLoad(c,d[0].href,{complete:function(h,j,g,f){a.activate(b,c)
}})}else{this.activate(b,c)
}},activate:function(a,b){this.contents.find(".tabContent").removeClass("active");
b.addClass("active");
this.tabber.find(".tab").removeClass("active");
this.tabber.find(".secondary").removeClass("active");
var c=a.closest(".secondary");
if(c.length){if(this.secondary){this.secondary.remove()
}this.secondary=a.clone().addClass("active").insertBefore(c)
}else{a.addClass("active")
}}};vc.attach(".tabber",vc.tags.tabber,{eager:true});
if(jQuery.browser.msie){jQuery(null).delegate("a[href] button","click",function(b){if(b.returnValue!==false){var a=jQuery(b.target).closest("a").attr("href");
if(a){window.location=a
}}})}(function(){vc.tags.showWindow.impl.dialog={handle:function(d,b){var f=jQuery(d);
var c=f.data("dialog");
var g=d.href&&d.getAttribute("href",2)!=="#";
if(g&&c&&c.options.reload!==false){c.destroy();
c.element.remove();
c=null
}if(!c){if(g){var e=jQuery("<div>").bind("elementInsert",false).one("dialogopen",function(h){e.unbind("elementInsert",false).trigger("elementInsert")
});vc.multiLoad(e,d.href,{selector:b.selector,complete:function(){a(e,f,b)
}})}else{if(b.selector){var e=jQuery(b.selector).remove();
a(e.show().wrap("<div>").parent(),f,b)
}}}else{c.open()
}}};function a(g,f,d){if(!d.title){d.title=g.find(".dialogTitle").remove().html()
}g.one("dialogopen",function(){dialog=g.data("dialog");
dialog.opener=f;
f.data("dialog",dialog)
});if(d.width==="autodetect"){if(jQuery.browser.msie&&jQuery.browser.version.substring(0,1)<8){var c=g.find(":first").clone().css({"float":"left"}).appendTo("body");
var e=c.width();
c.remove();
if(e!=0){var b=e;
console.log("calculated width:"+b);
d.width=b
}}else{d.width="auto"
}}g.dialog(d)
}jQuery(document).delegate(".ui-dialog .close","click",function(b){b.preventDefault();
jQuery(b.target).parents(".ui-dialog-content").dialog("close")
});jQuery(document).bind("dialogbeforeclose",function(c){var b=jQuery(c.target).data("dialog");
if(b.opener){b.opener.trigger("windowbeforeclose",{dialog:b})
}});jQuery(document).bind("dialogclose",function(c){var b=jQuery(c.target).data("dialog");
if(b.opener){b.opener.trigger("windowclose",{dialog:b})
}});jQuery(document).bind("dialogopen",function(c){var b=jQuery(c.target).data("dialog");
if(b.opener){b.opener.trigger("windowopen",{dialog:b})
}b.uiDialog.bind("response:ok",function(e,f,d){if(b.opener){e.relatedTarget=b.opener[0]
}if(b.options.autoClose&&(jQuery.trim(f.responseText).length===0||(d&&(typeof d.content[""]==="undefined"||jQuery.trim(d.content[""]).length===0)))){b.close()
}})});
vc.tags.showWindow.impl["default"]=vc.tags.showWindow.impl.dialog
})();vc.tags.showWindow.impl.colorbox={initialize:function(d,c,a){if(typeof jQuery.colorbox==="undefined"&&a!==true){var b=vc.metadata(document)["resource.colorbox"]||vc.getJsRoot()+"lib/jquery.colorbox.js";
jQuery.getScript(b,function(){vc.tags.showWindow.impl.colorbox.initialize(d,c,true)
})}else{var e=jQuery(d);
e.colorbox({open:true,transition:"none"})
}},handle:jQuery.noop};
vc.tags.map=function(e,c){var d=jQuery.extend({},vc.metadata(e),c);
var g=new google.maps.LatLng(d.lat,d.lon);
var b={zoom:16,center:g,disableDefaultUI:true,mapTypeId:google.maps.MapTypeId.ROADMAP};
var f=new google.maps.Map(e.get(0),b);
var a=new google.maps.Marker({position:g,icon:d.icon,map:f});
if(jQuery.trim(d.address).length){new google.maps.Geocoder().geocode({address:d.address,region:"hu"},function(j,h){if(h=="OK"&&j.length===1){f.fitBounds(j[0].geometry.viewport)
}else{console.warn("vc.tags.map: unexpected geocoder response",h,j.length)
}})}};
vc.attach("div.map",vc.tags.map,{eager:true});
vc.tags.geocoder={initialize:function(d,c){this.options=jQuery.extend({},vc.metadata(d,["required"]),c);
this.element=d;
var b=this.fields={};
jQuery.each(["address","lat","lon","sw_lat","sw_lon","ne_lat","ne_lon"],function(){b[this]=d.find("input."+this)
});this.showMap=d.find(".showMap");
this.message=d.find(".message");
this.form=d.closest("form");
this.synchronize(this.showMap,"click",function(f,e){if(!e||e.length<1){f.preventDefault();
f.stopPropagation()
}});this.synchronize(this.form,"submit");
vc.attach(this.showMap,vc.tags.showWindow,{selector:d.find(".locationsMap"),"class":"addressMapWindow"});
if(jQuery.trim(this.fields.lat.val()).length){var a=this.getResult();
this.results=[a];
this.showMap.show()
}else{if(jQuery.trim(this.fields.address.val()).length){this.showMap.show()
}}},synchronize:function(b,a,c){b.bind(a,jQuery.proxy(function(f){var d=jQuery.trim(this.fields.address.val());
if(this.busy||(!this.results&&d.length)){f.stopImmediatePropagation();
f.preventDefault();
var e=this;
this.element.one("geocodeComplete",function(g,j){var h=false;
if(c){var k=jQuery.Event(f.type);
c(k,j);
if(k.isPropagationStopped()){h=true
}}if(!h){if(!e.results){f.preventDefault();
e.fields.address.focus()
}else{jQuery(f.target).trigger(f.type)
}}});if(!this.busy){this.codeAddress(d)
}}else{if(c){c(f,this.results)
}}},this))
},codeAddress:function(a){var b=new google.maps.Geocoder();
this.busy=true;
this.results=null;
b.geocode({address:a,region:"hu"},jQuery.proxy(function(d,c){this.busy=false;
this.geocodeComplete(d,c);
this.element.trigger("geocodeComplete",[d,c])
},this))
},geocodeComplete:function(b,a){this.message.hide();
if(a=="OK"){this.results=b;
this.showMap.show();
if(b.length>1){this.message.html("Több címet is találtunk, a pontosításhoz nézd meg a térképen!").fadeIn(200)
}else{if(b.length==1){this.setResult(b[0])
}}}else{this.showMap.hide();
if(a=="ZERO_RESULTS"){this.message.html("Ismeretlen cím").fadeIn(200)
}else{this.message.hide()
}}},getResult:function(){var a={formatted_address:this.fields.address.val(),geometry:{}};
if(this.fields.lat.val()){a.geometry.location=new google.maps.LatLng(this.fields.lat.val(),this.fields.lon.val())
}if(this.fields.sw_lat.val()){a.geometry.viewport=new google.maps.LatLngBounds(new google.maps.LatLng(this.fields.sw_lat.val(),this.fields.sw_lon.val()),new google.maps.LatLng(this.fields.ne_lat.val(),this.fields.ne_lon.val()))
}return a
},setResult:function(a){this.fields.address.val(a.formatted_address);
this.fields.lat.val(a.geometry.location.lat());
this.fields.lon.val(a.geometry.location.lng());
this.fields.sw_lat.val(a.geometry.viewport.getSouthWest().lat());
this.fields.sw_lon.val(a.geometry.viewport.getSouthWest().lng());
this.fields.ne_lat.val(a.geometry.viewport.getNorthEast().lat());
this.fields.ne_lon.val(a.geometry.viewport.getNorthEast().lng())
},reset:function(){jQuery.each(this.fields,function(){this.val("")
})},getResults:function(){return this.results
},".address:onchange":function(a){var b=jQuery.trim(jQuery(a.target).val());
if(b.length){this.codeAddress(b)
}else{this.message.hide();
this.showMap.hide();
this.reset()
}},".address:onkeyup":function(a){var b=jQuery.trim(jQuery(a.target).val());
this.showMap[b.length?"show":"hide"]()
},onlocationSelected:function(b,a){this.setResult(a.result);
this.results=[a.result];
this.message.hide()
},onlocationRemoved:function(){this.showMap.hide();
this.message.hide();
this.reset()
}};vc.attach("div.geocoder",vc.tags.geocoder,{eager:true});
vc.tags.addressMapWindow={initialize:function(b,a){this.options=jQuery.extend({},vc.metadata(b.find(".locationsMap"),a));
this.addresses=b.find(".addresses ul");
this.element=b;
this.addressesContainer=b.find(".addresses");
this.selectLocation=b.find(".selectLocation");
this.closeWindow=b.find(".closeWindow")
},ondialogopen:function(b){if(!this.map){this.map=new google.maps.Map(this.element.find("div.addressMap").get(0),{zoom:16,center:new google.maps.LatLng(49.762494,14.003304),disableDefaultUI:true,navigationControl:true,mapTypeId:google.maps.MapTypeId.ROADMAP});
this.map.markers=[];
this.opener=jQuery(b.target).data("dialog").opener;
this.geocoderTag=this.opener.closest("div.geocoder").data("instances")[vc.tags.geocoder._attach_id]
}else{while(this.map.markers.length){this.map.markers.pop().setMap(null)
}}var a=this.geocoderTag.getResults();
if(a.length>1){this.multiResults(a);
this.selectLocation.addClass("disabled")
}else{this.singleResult(a[0])
}},".selectLocation:onclick":function(a){var b=this.addresses.find(".active");
if(b.length){this.opener.trigger("locationSelected",{result:b.data("locationInfo").result})
}else{a.stopPropagation()
}},".removeLocation:onclick":function(){this.opener.trigger("locationRemoved")
},".addresses li:onclick":function(a){a.preventDefault();
this.activate(jQuery(a.currentTarget))
},activate:function(a){var c=a.parent().find("li.active");
if(c.length){this.deactivate(c)
}var b=a.data("locationInfo");
a.addClass("active");
b.infowindow.open(this.map,b.marker);
this.map.fitBounds(b.result.geometry.viewport);
this.selectLocation.removeClass("disabled")
},deactivate:function(a){var b=a.data("locationInfo");
a.removeClass("active");
b.infowindow.close()
},singleResult:function(a){this.addressesContainer.hide();
this.selectLocation.hide();
this.closeWindow.show();
var b=new google.maps.Marker({position:a.geometry.location,icon:this.options.icon,map:this.map});
this.map.markers.push(b);
if(a.geometry.viewport){this.map.fitBounds(a.geometry.viewport)
}else{var c=this.map;
new google.maps.Geocoder().geocode({address:a.formatted_address,region:"hu"},function(e,d){if(d=="OK"&&e.length===1){c.fitBounds(e[0].geometry.viewport)
}else{c.setCenter(a.geometry.location);
console.warn("vc.tags.addressMapWindow: unexpected geocoder response",d,e.length)
}})}},multiResults:function(c){this.selectLocation.show();
this.closeWindow.hide();
this.addressesContainer.show();
this.addresses.empty();
var d=new google.maps.LatLngBounds();
for(i=0;
i<c.length;
i++){d.extend(c[i].geometry.location);
var b=new google.maps.Marker({position:c[i].geometry.location,icon:this.options.icon,map:this.map});
this.map.markers.push(b);
var f=new google.maps.InfoWindow({content:"<strong>"+c[i].formatted_address+"</strong>"});
var e={infowindow:f,marker:b,result:c[i]};
var a=jQuery("<li/>").html('<a href="#">'+c[i].formatted_address+"</a>").appendTo(this.addresses).data("locationInfo",e);
google.maps.event.addListener(b,"click",(function(h,g){return function(){h.activate(g)
}})(this,a))
}this.map.fitBounds(d)
}};vc.attach(".addressMapWindow",vc.tags.addressMapWindow);
var vc=vc||{};
vc.cookies={};
vc.cookies.JsType_={UNDEFINED:"undefined"};
vc.cookies.isDef=function(a){return typeof a!=vc.cookies.JsType_.UNDEFINED
};vc.cookies.set=function(c,j,h,b,d){if(/;=/g.test(c)){throw new Error('Invalid cookie name "'+c+'"')
}if(/;/g.test(j)){throw new Error('Invalid cookie value "'+j+'"')
}if(!vc.cookies.isDef(h)){h=-1
}var f=d?";domain="+d:"";
var k=b?";path="+b:"";
var e;
if(h<0){e=""
}else{if(h===0){var g=new Date(1970,1,1);
e=";expires="+g.toUTCString()
}else{var a=new Date((new Date).getTime()+h*1000);
e=";expires="+a.toUTCString()
}}document.cookie=c+"="+j+f+k+e
};vc.cookies.get=function(b,g){var f=b+"=";
var d=String(document.cookie);
for(var h=-1;
(h=d.indexOf(f,h+1))>=0;
){var c=h;
while(--c>=0){var e=d.charAt(c);
if(e==";"){c=-1;
break}}if(c==-1){var a=d.indexOf(";",h);
if(a<0){a=d.length
}return d.substring(h+f.length,a)
}}return g
};vc.cookies.remove=function(b,a,c){var d=vc.cookies.containsKey(b);
vc.cookies.set(b,"",0,a,c);
return d
};vc.cookies.getKeyValues_=function(){var e=String(document.cookie);
var g=e.split(/\s*;\s*/);
var f=[],a=[],c,b;
for(var d=0;
b=g[d];
d++){c=b.indexOf("=");
if(c==-1){f.push("");
a.push(b)
}else{f.push(b.substring(0,c));
a.push(b.substring(c+1))
}}return{keys:f,values:a}
};vc.cookies.getKeys=function(){return vc.cookies.getKeyValues_().keys
};vc.cookies.getValues=function(){return vc.cookies.getKeyValues_().values
};vc.cookies.isEmpty=function(){return document.cookie===""
};vc.cookies.getCount=function(){var a=String(document.cookie);
if(a===""){return 0
}var b=a.split(/\s*;\s*/);
return b.length
};vc.cookies.containsKey=function(b){var a={};
return vc.cookies.get(b,a)!==a
};vc.cookies.containsValue=function(c){var a=vc.cookies.getKeyValues_().values;
for(var b=0;
b<a.length;
b++){if(a[b]==c){return true
}}return false
};vc.cookies.clear=function(){var b=vc.cookies.getKeyValues_().keys;
for(var a=b.length-1;
a>=0;a--){vc.cookies.remove(b[a])
}};vc.cookies.MAX_COOKIE_LENGTH=3950;
vc.cookies.INFINITY=157680000;
if(typeof iwiw==="undefined"){iwiw={}
}jQuery(function(){if(vc.cookies.get("comic")){jQuery("body").css("font-family","comic sans ms")
}});jQuery.extend(vc.Tooltip.Styles.bubble,{className:"iwiwbubble",template:'<div class="bubble">	<div class="stem stem_head"><!-- --></div>	<div class="head"><div><div></div></div></div>	<div class="body">		<div class="body_inner content">		</div>	</div>	<div class="foot"><div><div><!-- --></div></div></div>	<div class="stem stem_foot"><!-- --></div></div>',stems:{topRight:{top:0,left:19},bottomRight:{top:0,left:19}}});
jQuery.extend(vc.Tooltip.Styles.pureBubble,{className:"pureBubble",template:'<div class="pure_bubble holder">	<div class="stem stem_head"><!-- --></div>	<div class="head"><div><div><!-- --></div></div></div>	<div class="body">		<div class="body_inner content">		</div>	</div>	<div class="foot"><div><div><!-- --></div></div></div>	<div class="stem stem_foot"><!-- --></div></div>',stems:{bottomRight:{top:0,left:19}}});
vc.Tooltip.Styles.image={template:'<div style="display:none;"><div class="container"><div class="content"></div><div class="bottom"></div></div></div>',delay:0.1,fixed:false,hideAfter:0,hideOn:"mouseout",hideOthers:true,hook:{target:"topLeft",tip:"bottomLeft"},offset:{x:0,y:-1},showOn:"mouseover"};
(function(){if(jQuery.fn.lazyload){var c="img[original]",h=vc.getImgRoot()+"blank.gif",j=/(<img\s*[^>]*)src=(?:"|')([^'"]+)(?:"|')([^>]*>)/ig,b='$1src="'+h+'" original="$2"$3',f;
function a(){return typeof f!=="undefined"?f:(f=jQuery("body").hasClass("lazyloadimages"))
}function g(k){return k.replace(j,b)
}var e=vc.multiLoad;
vc.multiLoad=function(k,m,l){if(a()){var l=(l||m);
if(l&&l.lazyloadimages){if(!l.lazyloadprepared){l.filter=function(n){return g(n)
}}jQuery(k).parent().one("elementInsert",d)
}}e.apply(null,arguments)
};function d(){jQuery(this).find(c).lazyload({placeholder:h})
}}jQuery(function(){if(a()){d.apply(document.body)
}})})();
vc.tags.showWindow.impl["default"]=vc.tags.showWindow.impl.dialog;
if(jQuery.browser.msie&&jQuery.browser.version<7){jQuery(function(){var a=jQuery("<div/>",{"class":"ie6warning",html:'Ezúton tájékoztatunk, hogy az általad használt Internet Explorer 6-os böngésző már nem támogatott az iWiW-en. Sem a design, sem az egyes funkciók működése nincs erre optimalizálva. Kérjük, hogy <a href="http://www.microsoft.com/hun/windows/internet-explorer/" target="_blank">frissítsd böngésződet a legújabb Explorer verzióra</a>, vagy használd pl. a <a href="http://www.google.com/chrome/" target="_blank">Google Chrome</a>-ot, ami a leggyorsabb és legjobb élményt nyújtja.'});
var b=jQuery("#header.general");
if(b.length){b.after(a)
}else{a.prependTo("body")
}})}vc.config.infoBar={timeout:{success:5000}};
iwiw.StateMachine={currentState:"Initial",handleEvent:function(c){console.log("handleEvent: "+c.type);
var b=this.transitions[this.currentState][c.type];
if(jQuery.isArray(b)){b=this.transitions[b[0]][b[1]]
}if(!b){b=this.unexpectedEvent
}var a=b.call(this,c);
if(!a){a=this.currentState
}if(!this.transitions[a]){a=this.undefinedState(c,a)
}if(this.onStateChange){this.onStateChange(this.currentState,a)
}this.currentState=a
},unexpectedEvent:function(a){console.error("unexpectedEvent "+a.type+" in state:"+this.currentState);
return"Initial"
},undefinedState:function(b,a){console.error("undefinedState current:"+this.currentState+" next:"+a+" event:"+b.type);
return"Initial"
}};iwiw.getGoa3=function(){if(jQuery.browser.msie===true&&parseInt(jQuery.browser.version)<8){return
}if(!iwiw.goa3loaded&&iwiw.adverticumEnabled){jQuery.ajax({url:"http://imgs.adverticum.net/scripts/goa3/goa3.js",dataType:"script",global:false});
iwiw.goa3loaded=true
}};jQuery(document).ajaxStop(function(){iwiw.getGoa3()
});jQuery(function(){setTimeout(iwiw.getGoa3,1000)
});iwiw.audit={};
(function(){var c;
function b(o,l){var j=document,n=screen?screen.width+"x"+screen.height:"";
var m=j.URL?new String(j.URL):"";
var g=j.referrer?new String(j.referrer):"";
var h="@s="+n+"@u="+escape(m.substring(0,183))+"@r="+escape(g.substring(0,127));
var k=Math.floor(Math.random()*100000000)+h;
var f="http://audit.median.hu/cgi-bin/track.cgi?uc="+o+"&dc=1"+l+"&ui="+k;
if(!c){c=jQuery('<img style="position:absolute;top:-100px;left:-100px" src="'+f+'" width="1" height="1"/>');
c.appendTo("body")
}else{c.attr("src",f)
}}function e(f){var g=iwiw.audit.webaudit.options[f];
if(!g){try{g=jQuery.parseJSON(jQuery("script[type=metadata].webaudit"+(f?f:"")).html());
iwiw.audit.webaudit.options[f]=g
}catch(h){console.error("error parsing webaudit metadata");
return
}}if(g){if(g.debug==="true"){console.log("WEBAUDIT: javascript hit uc="+g.uc+" mid="+g.mid+" confPath="+g.confpath)
}else{b(g.uc,g.mid)
}}else{console.error("missing webaudit metadata")
}}function a(f){var g=jQuery(f.target);
g.find("span.ajaxAudit").add(g.filter("span.ajaxAudit")).each(d)
}function d(g,h){var f=vc.metadata(h);
if(f.debug==="true"){console.log("WEBAUDIT: ajaxHit uc="+f.uc+" mid="+f.mid+" confPath="+f.confpath)
}else{b(f.uc,f.mid)
}}jQuery(document).bind("elementInsert",a);
iwiw.audit.webaudit=b;
iwiw.audit.webaudit.hit=e;
iwiw.audit.webaudit.options={}
})();(function(){function c(d){var f=iwiw.audit.gemius.options[d];
if(!f){try{f=jQuery.parseJSON(jQuery("script[type=metadata].gemius"+(d?d:"")).html());
iwiw.audit.gemius.options[d]=f
}catch(g){console.error("error parsing gemius metadata");
return
}}if(f){if(f.debug==="true"){console.log("GEMIUS: javascript hit id="+f.id+" confPath="+f.confpath)
}else{gemius_initialize(f.id)
}}else{console.error("missing gemius metadata")
}}function a(d){var e=jQuery(d.target);
e.find("span.ajaxGemius").add(e.filter("span.ajaxGemius")).each(b)
}function b(f,g){var d=vc.metadata(g);
if(d.debug==="true"){console.log("GEMIUS: ajaxHit id="+d.id+" confPath="+d.confpath)
}else{gemius_initialize(d.id)
}}jQuery(document).bind("elementInsert",a);
iwiw.audit.gemius=function(d){gemius_initialize(d)
};iwiw.audit.gemius.hit=c;
iwiw.audit.gemius.options={}
})();iwiw.StateSaver={set:function(b,c){if(window.localStorage){window.localStorage[b]=c;
return
}var a=new Date();
a.setTime(a.getTime()+(365*24*60*60*1000));
vc.cookies.set(b,c,a,"/")
},get:function(a){if(window.localStorage){return window.localStorage[a]
}return vc.cookies.get(a)
},remove:function(a){if(window.localStorage){delete window.localStorage[a];
return
}vc.cookies.remove(a,"/")
}};jQuery.extend(jQuery.validator.messages,{required:"A mező kitöltése kötelező!",accept:"Nem megfelelő formátum!",number:"Adj meg egy érvényes számot!",max:jQuery.validator.format("Az érték legyen maximum {0}."),min:jQuery.validator.format("Az érték legyen minimum {0}."),range:jQuery.validator.format("Adj meg egy {0} és {1} közötti számot!")});
jQuery.validator.metadataRules=function(c){var d=vc.metadata(c),a={};
for(var b in d){if(b in jQuery.validator.methods){if(b==="range"){d[b]=d[b].split(",")
}a[b]=d[b]
}}return a
};jQuery.validator.defaults.errorPlacement=function(c,d){var b=d.closest("label");
if(b.length){b.append(" ").append(c)
}else{if(d.get(0).tagName.toLowerCase()=="select"&&!d.attr("multiple")&&d.parents("form").hasClass("uniform")){var a=d.parent();
c.insertAfter(a);
a.addClass("error");
d.change(function(){if(d.hasClass("required")){if(d.val()!=""){a.removeClass("error")
}else{a.addClass("error")
}}else{a.removeClass("error")
}})}else{c.insertAfter(d)
}}};vc.attach("form.validate",{initialize:function(a){console.log("enabled form validation");
a.validate()
},onsubmit:jQuery.noop},{eager:true});
vc.attach("form.uniform select, form.uniform input:checkbox",function(a){a.uniform({resetSelector:".resetForm"})
},{eager:true});
vc.attach("a.star",{initialize:function(a){this.element=a;
this.href=a[0].href;
this.origTitle=jQuery(a).attr("title");
this.changeTitle=jQuery(a).attr("data-title")
},onclick:function(e){e.preventDefault();
var d=this.element.find("span");
var c=(!d.hasClass("fav"));
var b=this.origTitle;
var f=this.changeTitle;
var a=this;
if(!a.disabled){a.disabled=true;
d.addClass("busy");
vc.multiLoad(this.href,{type:"POST",data:{star:c},success:function(){var h=this.data.split("=")[1];
var g=d.parents("a");
if(h=="true"){d.addClass("fav");
g.attr("title",f)
}else{d.removeClass("fav");
g.attr("title",b)
}jQuery(a.element).trigger("star:update");
this.done()
},error:function(){this.done()
},done:function(){a.disabled=false;
d.removeClass("busy")
}})}}});
vc.attach("a.more_show",{onclick:function(a){a.preventDefault();
jQuery(a.currentTarget).parent().addClass("more_shown clearfix")
}});vc.attach("a.change_show",{onclick:function(a){a.preventDefault();
jQuery(a.currentTarget).parent().addClass("change_shown clearfix")
}});(function(){iwiw.microLogin=d;
var b,a;
function d(g){if(!b){a=g;
b=true;
vc.multiLoad("/pages/micrologin/sessionkeeper.jsp?microLogin=v2",{complete:f})
}return false
}function f(j,l,h,g){b=false;
if(h==="success"){if(g&&g.content.new_token){e(g.content.new_token)
}else{var k=jQuery("<div></div>").html(j).dialog({modal:true,dialogClass:"microLogin",title:"Bejelentkezés",width:420,draggable:false});
k.bind("response:ok",function(n,o,m){if(m&&m.content.new_token){k.dialog("close");
c(m)}})
}}}function c(g){e(g.content.new_token)
}function e(g){jQuery.each(document.forms,function(h,j){if(j.token){j.token.value=g
}});a()
}jQuery(function(){jQuery("body").delegate("form.microLogin","submit",function(h,g){if(!g){h.preventDefault();
h.stopPropagation();
iwiw.microLogin(function(){var k=jQuery(h.currentTarget);
var j=new jQuery.Event("submit");
k.trigger(j,true)
})}})})
})();(function(){var b,d,c;
function a(h,g){var f=h.type.substring("login".length);
console.log("handle",d,f);
if(d&&d[f]){d[f].call(null,g)
}if(f!=="failure"){d=null;
b=null
}}iwiw.popupLogin=function(f,e){if(b){b.focus();
return
}if(typeof f==="object"){e=f;
f=undefined
}d=jQuery.extend({success:f,loginUrl:"/pages/login/minilogin.jsp"},e),$window=jQuery(window);
if(!c){$window.bind("loginsuccess loginfailure logincancel",a).bind("unload beforeunload",function(){if(b){b.close()
}});c=true
}b=open(d.loginUrl,"iwiw_loginpopup","toolbar=0,status=0,location=1,width=700,height=600,scrollbars=1");
if(b){b.focus()
}return b
}})();
if(window.name==="iwiw_loginpopup"&&window.opener){vc.attach("#loginform",{initialize:function(b){var a=jQuery("#loginerror").text(),c=window.opener.jQuery(window.opener);
jQuery.each(["success","failure"],function(d,e){if(b.hasClass(e)){c.trigger("login"+e,[a]);
if(e==="success"){close()
}return false
}});jQuery(window).bind("unload.loginpopup beforeunload.loginpopup",function(d){jQuery(this).unbind(".loginpopup");
c.trigger("logincancel")
})},onsubmit:function(){jQuery(window).unbind(".loginpopup")
}},{eager:true})
}iwiw=typeof iwiw=="undefined"?{}:iwiw;
iwiw.CrossXHRManager=JClass.extend({SWF_PLAYER_URL:"/common/javascript/lib/crossxhr/crossxhr.swf",_staticServer:"",SWF_TEMPLATE:'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="0" height="0" id="%movie_id%" align="middle"><param name="movie" value="%movie_swf%" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="FlashVars" value="id=%movie_id%"/><param name="allowScriptAccess" value="always"/><embed src="%movie_swf%" FlashVars="id=%movie_id%" allowScriptAccess="always" quality="high" bgcolor="#ffffff" width="0" height="0" name="%movie_id%" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>',SWF_ID:"crossXHRGateway",_movie:null,_counter:0,flashAvailable:false,flashError:false,requests:[],requestsToCreate:[],_maxWait:100,_maxWait:10,init:function(){this._staticServer=jQuery("head meta[name=static-server]").length>0?jQuery("head meta[name=static-server]").attr("content"):"";
this._flashCont=jQuery('<div class="'+this.SWF_ID+'Container"></div>');
jQuery(document.body).append(this._flashCont);
this._flashCont.get(0).innerHTML+=this.getTemplateStr({movieSwf:this._staticServer+this.SWF_PLAYER_URL,movieId:this.SWF_ID});
this._movie=jQuery("#"+this.SWF_ID);
this._movie=(navigator.appName.indexOf("Microsoft")!=-1)?this._movie:this._movie.find("embed");
this._periodicFlashCheck()
},onReady:function(a){iwiw.CrossXHRLogging("onready!",a)
},createRequest:function(a){if(this.flashAvailable||this.flashError){iwiw.CrossXHRLogging("egyből végrehajtódik");
var b=this._createRequest();
a(this._createRequest(),true);
return b
}else{iwiw.CrossXHRLogging("megy a queue-ba");
this.requestsToCreate.push(a)
}},_createRequest:function(){var a=new iwiw.CrossXHR(this._counter++);
this.requests[a._request._id]=a;
return a
},_processCreationQueue:function(){iwiw.CrossXHRLogging("_processCreationQueue");
jQuery.each(this.requestsToCreate,jQuery.proxy(function(b,a){a(this._createRequest(),this.flashAvailable&&!this.flashError)
},this));
this.requestsToCreate=[]
},getTemplateStr:function(b){var a=this.SWF_TEMPLATE.replace(/%movie_swf%/g,b.movieSwf).replace(/%movie_id%/g,b.movieId);
if(navigator.appName.indexOf("Microsoft")!=-1){a=a.replace(/<embed.*getflashplayer" \/>/ig,"")
}return a
},_periodicFlashCheck:function(){if(this._movie.get(0).create){this.flashAvailable=true;
this._processCreationQueue()
}else{if(this._maxWait-->0){setTimeout(jQuery.proxy(this._periodicFlashCheck,this),100)
}else{iwiw.CrossXHRLogging("nincs flash..");
this.flashError=true;
this._processCreationQueue()
}}},handler:function(c,a,b){iwiw.CrossXHRLogging("iwiw.CrossXHRManager.handler",c,a,b);
this.requests[c]._request.handler(a,4,unescape(b))
}});iwiw.CrossXHR=JClass.extend({_request:null,_nativeRequest:null,_handlerEventFired:false,_queue:[],readyState:0,abort:jQuery.noop,_opened:false,onreadystatechange:jQuery.noop,init:function(a){this._request=new iwiw.CrossXHRRequest(this,a)
},open:function(d,a,c,b){if(this._opened){throw"ez a kapcsolat már fel lett használva"
}if(iwiw.crossXHRManager.flashAvailable){this._request.open(d,a);
this._opened=true
}else{if(c){iwiw.CrossXHRLogging("CrossXHR: request lecserélése a flashesről a normál böngészős megoldásra: ",d,c);
this._nativeRequest=iwiw.getXmlHttpRequest();
this._nativeRequest.onreadystatechange=jQuery.proxy(this._nativeChangeHandler,this);
this._nativeRequest.open(d,c,b);
this._opened=true
}else{throw"sem flash sem fallback url sem erhető el itt: "+a
}}},_nativeChangeHandler:function(b){var a=200;
try{var a=this._nativeRequest.status
}catch(c){}if(!this._handlerEventFired&&(a==200||a==0)&&this._nativeRequest.readyState==4){iwiw.CrossXHRLogging("_nativeChangeHandler.run",this._nativeRequest.readyState,this._nativeRequest.responseText);
this._request.readyState=this._nativeRequest.readyState;
this._request.handler(a,this._nativeRequest.readyState,this._nativeRequest.responseText,this._nativeRequest.responseXML);
this._handlerEventFired=true
}},send:function(a){this._nativeRequest?this._nativeRequest.send(a):this._request.send(a)
}});iwiw.CrossXHRRequest=JClass.extend({_parent:null,_id:null,_gateway:null,init:function(a,b){iwiw.CrossXHRLogging("iwiw.CrossXHRRequest.init",a,b);
this._parent=a;
this._id=b;
this._gateway=iwiw.crossXHRManager._movie.get(0)
},open:function(c,a,b){if(iwiw.crossXHRManager.flashAvailable){iwiw.CrossXHRLogging("request open",this._gateway,this._id,c,a);
this._gateway.create(this._id,c,a)
}else{iwiw.CrossXHRLogging("fallbackelj!")
}},send:function(a){iwiw.CrossXHRLogging("iwiw.CrossXHRRequest.send",this._gateway,this._gateway.send,this._id,[a]);
this._gateway.send(this._id,a)
},handler:function(b,a,c,d){c=c=="null"?"":c;
if(!d&&c!=""){d={documentElement:iwiw.CrossXHR.text2Xml(c)}
}iwiw.CrossXHRLogging("iwiw.CrossXHRRequest.handler",this._parent,b,a,c,d);
this._parent.readyState=4;
this._parent.responseText=c;
this._parent.responseXML=d;
this._parent.status=b;
this._parent.onreadystatechange();
if(iwiw.crossXHRManager.flashAvailable){setTimeout(jQuery.proxy(function(){this._gateway.finished(this._id)
},this),10)
}}});iwiw.getXmlHttpRequest=function(){var a=null;
if(window.XMLHttpRequest){a=new XMLHttpRequest();
if(a.overrideMimeType){a.overrideMimeType("text/xml")
}}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")
}}return a
};iwiw.CrossXHRLogging=function(){if(typeof console!="undefined"){console.log(arguments)
}else{if(jQuery("#konzol").length>0){var a="";
jQuery.each(arguments,function(c,b){a+=b
});jQuery("#konzol").append("<li>"+a+"</li>")
}}};iwiw.CrossXHRLogging=jQuery.noop;
iwiw.CrossXHR.text2Xml=function(c){var b=null;
if(window.DOMParser){var d=new DOMParser();
b=d.parseFromString(c,"text/xml")
}else{if(window.ActiveXObject){var b=new ActiveXObject("MSXML2.DOMDocument");
b.async=false;
b.loadXML(c)
}else{throw {type:"PeekError",message:"No DOMParser object found."}
}}var a=b.documentElement;
if(a.nodeName=="parsererror"){console.error("nem sikerült az xml-é alakítandó string feldolgozása",c.substring(0,200));
return null
}return a
};jQuery(function(){});
iwiw.Activities={initialize:function(a){this.element=a
},handlers:{".remove:onresponse:ok":"remove",".expand:onclick":"expand","h5 a, .bodyText a:onclick":"activateLink",".createComment:onclick":"toggleCommentForm",onmouseenter:"showRemoveButton",onmouseleave:"removeRemoveButton"},toggleCommentForm:function(a){a.preventDefault();
this.element.find(".commentLike").trigger("toggleCommentForm")
},remove:function(f,h,b){if(b){var d=[];
if(b.content.new_viewlevel){if(this.element.attr("class").indexOf("app")>-1){d.push("app")
}else{d.push("type")
}}if(b.content.blocked_user){d.push("owner")
}if(d.length){var e=[];
var g=this.element.attr("class").split(" ");
jQuery.each(d,function(k,j){jQuery.each(g,function(l,m){if(m.indexOf(j)===0){e.push(m)
}})});
if(e.length){var a=jQuery.map(e,function(j){return"."+j
}).join(",");
var c=jQuery(a).fadeOut(5000);
console.log("iwiw.Activities: hidden elements "+c.length)
}}}},expand:function(a){a.preventDefault();
var b=this.element.next(".related_activities:not(:animated)");
if(b.length){this.element.find(".expand").toggleClass("active");
b.slideToggle()
}},activateLink:function(d){var b=d.currentTarget;
if(b&&b.href&&!b.target){var c=new vc.URI(b.href);
if(c.host){if(c.host.toLowerCase()!=new vc.URI(window.location.href).host.toLowerCase()){b.target="_blank"
}}}},showRemoveButton:function(b){var a=this.element;
clearTimeout(a.data("timeout"));
a.find(".hideIt a").show()
},removeRemoveButton:function(b){var a=this.element;
var c=jQuery(b.toElement);
if(!(c.hasClass("bubble")||c.parent().hasClass("bubble"))){var c=setTimeout(function(){a.find(".hideIt a").hide()
},650);
a.data("timeout",c)
}}};vc.attach(".feed.activities .activity",iwiw.Activities);
iwiw.VideoPlayer={lastId:0,initialize:function(a){this.options=vc.metadata(a)
},onclick:function(f){var c=new vc.URI(f.currentTarget.href);
var d=jQuery(f.currentTarget);
if((swfobject.getFlashPlayerVersion()||{}).major>=9){f.preventDefault();
var a=d.closest(".mediaItem");
var b=a.width()-a.css("padding-left").replace("px","")-a.css("padding-right").replace("px","");
this.options.width=(this.options.width==""?b:this.options.width);
this.options.height=(this.options.height==""?parseInt(b*0.6415):this.options.height);
if(this.options.url&&this.options.width&&this.options.height){var g=d.closest(".videoClosed");
if(this.options.width>b){this.options.height=Math.round(this.options.height*(b/this.options.width));
this.options.width=b
}swfobject.embedSWF(this.options.url,(d[0].id="videoPlayer_"+(iwiw.VideoPlayer.lastId++)),this.options.width,this.options.height,"9",null,null,{allowfullscreen:this.options.fs?"true":"false",wmode:"transparent"},{"class":"playerEmbed"},function(h,j,e){if(h&&g){g.removeClass("videoClosed");
g.addClass("videoOpen")
}})}else{console.log("invalid videoplayer parameters:"+d.href)
}}else{console.log("incompatible flash version",swfobject.getFlashPlayerVersion());
c.anchor="";
d[0].href=c.toString()
}}};vc.attach("a.videoPlayer",iwiw.VideoPlayer);
iwiw.ShareClickCounter={"a[target=_blank], a.mediaCt, .activity a.videoPlayer:onclick":function(c){var a=c.currentTarget.href;
var d=jQuery(c.currentTarget).data().ctlink;
if(a||d){var b=new vc.URI(d?d:a);
b.anchor="";
vc.multiLoad("/pages/share/ct.jsp",{data:{u:b.toString(),method:"CT"},async:false})
}}};vc.attach(".activities.feed .typeNEW_BOARDMSG, #mediaCt",iwiw.ShareClickCounter);
iwiw.ReshareActivity={"onresponse:ok":function(b,e,a){if(e.status==201&&jQuery("#main_activities").length){var c=jQuery(".feed.activities").first();
var d=vc.metadata(c).src;
if(d){vc.multiLoad(c,d,{replace:true,selector:".activities",complete:function(){c=jQuery(".feed.activities").first();
if(jQuery(window).scrollTop()>(top=c.offset().top)){jQuery(window).scrollTop(0)
}}})}}}};
vc.attach("#reshareForm",iwiw.ReshareActivity);
iwiw.MainActivities={maxRequests:5,initialize:function(b){this.element=b;
var a=jQuery.extend({},vc.metadata(b));
vc.multiLoad(b,a.url,{lazyloadimages:true,complete:jQuery.proxy(this,"complete")});
this.visibleActivityCount=0;
this.requestCount=0;
this.minActivityCount=a.max;
console.log("iwiw.MainActivities init (minActivityCount:"+this.minActivityCount+")")
},complete:function(){this.requestCount++;
var c=0,b,a=this;
if(this.element.find(".emptylist").length){console.log("mainActivities: req #"+this.requestCount+" response is empty list")
}else{c=this.element.find(".activities:last .activity").length;
this.visibleActivityCount+=c;
console.log("mainActivities: req #"+this.requestCount+" loaded:"+c)
}if(this.requestCount<this.maxRequests&&this.visibleActivityCount<this.minActivityCount&&c>0&&(b=this.element.find(".more a").last()).length&&b.attr("href")){if(!this.beyondViewPort()){console.log("mainActivities: trying to fetch a new page");
this.fetchMore(b)
}else{console.log("mainActivities: we are beyond viewport");
jQuery(window).bind("scroll.mainactivities resize.mainactivities",jQuery.throttle(500,function(){if(!a.beyondViewPort()){console.log("mainActivities: scrolled into viewport");
jQuery(window).unbind(".mainactivities");
a.fetchMore(b)
}}))}}else{console.log("mainActivities: done.")
}},fetchMore:function(a){vc.multiLoad(a.closest(".more"),a.attr("href"),{selector:".activityList",replace:true,lazyloadimages:true,complete:jQuery.proxy(this,"complete")});
a.replaceWith('<p class="loader">betöltés...</p>')
},beyondViewPort:function(){var a=jQuery(window);
var b=this.element.height()+this.element.offset().top>a.scrollTop()+a.height();
return b
}};vc.attach("#main_activities",iwiw.MainActivities,{eager:true});
iwiw.CommentLike={initialize:function(b,a){this.element=b;
if(a.active){this.showCommentForm()
}this.isWidget=(this.element.parents("body").hasClass("iwiwWidget"))?true:false
},handlers:{".deleteComment:onresponse:ok":"commentDeleted",".show_all:onresponse:ok":"commentsLoaded",".popupComment:onsubmit":"commentSubmit",".comment_form:onremote:complete":"commentSubmitted",".one_line_input input:onclick":"showCommentForm",".input_cancel:onclick":"cancelSubmitcomment",".input_accept:onclick":"submitComment",ontoggleCommentForm:"toggleCommentForm",onlikesLoaded:"updateState","select[name=authorType]:onchange":"changeUserImage"},commentDeleted:function(a,b){jQuery(a.target).closest(".comment").remove();
this.updateState()
},commentsLoaded:function(a){this.element.find('form input[name="lastCommentId"]').remove();
jQuery(a.target).closest(".show_all").remove()
},commentSubmitted:function(a){this.element.removeClass("commenting").find("textarea").val("");
this.updateState();
iwiw.audit.webaudit.hit(".page");
iwiw.audit.gemius.hit(".page")
},toggleCommentForm:function(a){this.element.hasClass("commenting")?this.element.removeClass("commenting"):this.showCommentForm()
},cancelSubmitcomment:function(a){a.preventDefault();
this.element.removeClass("commenting").find("textarea").val("")
},showCommentForm:function(){this.element.find("textarea").autogrow();
this.element.addClass("commenting").find("textarea").focus()
},submitComment:function(a){if(jQuery.trim(this.element.find("textarea").val())===""){a.preventDefault()
}},updateState:function(){var b=this.element.find(".comments li").length;
var a=this.element.find(".likes").length>0;
this.element.toggleClass("empty",!b&&!a);
this.element.toggleClass("noComments",!b);
this.element.toggleClass("noLikes",!a)
},changeUserImage:function(c){var a=jQuery(c.target);
var b=a.parents(".comment").find(".image img").get(0);
var d=a.find("option:selected").attr("data-thumbnail");
if(d.length>0){b.src=d
}},commentSubmit:function(d){d.preventDefault();
d.stopPropagation();
var e=jQuery(d.target).find("input[name=token]");
var a=this;
var c=jQuery(d.target);
var b=c.attr("action");
jQuery.ajax({type:"POST",url:b,data:c.serialize(),async:false,success:function(){document.location=(a.isWidget)?c.attr("action"):document.location.href.split("#")[0]
},error:function(j,m,k){vc.InfoBar.hide();
var l=jQuery(j.responseXML).find("msg");
var h=l.attr("code");
if(h==="2773"||h==="6969"){var f=l.text().split("|");
console.log(f[0]);
console.log(f[1]);
var g=f[1];
e.val(g);
if(f[0]==="false"){iwiw.popupLogin({success:function(){c.find(".submitForm").click()
},loginUrl:"/pages/share/login/popup.jsp"})
}else{c.find(".submitForm").click()
}}}})}};
(function(){var a=window.location.hash==="#writecomment";
vc.attach(".commentLike",iwiw.CommentLike,{eager:a,active:a})
})();vc.LikeButton={initialize:function(a){this.element=a;
this.multiple=false;
this.callback=false;
if(this.element.hasClass("unEscape")){this.encUrl=vc.URI(this.element.attr("href")).queryKey.url;
this.url=unescape(this.encUrl)
}if(this.element.hasClass("multiple")){this.multiple=true;
this.dataId=this.element.attr("data-id");
this.elements=jQuery("body").find('a[data-id="'+this.dataId+'"]');
this.elementsL=this.elements.length
}},onclick:function(d){d.preventDefault();
if(this.element.hasClass("checkLogin")){var c=new vc.URI(this.element.attr("href"));
var a=this;
var b=jQuery.proxy(this,"complete");
jQuery.ajax({url:a.element.attr("href"),async:false,success:function(f,g,e){a.update(a.element,e)
},error:function(h,l,j){vc.InfoBar.hide();
var k=jQuery(h.responseXML).find("msg");
var g=k.attr("code");
if(g==="2773"||g==="6969"){var e=k.text().split("|");
console.log(e[0]);
console.log(e[1]);
var f=e[1];
c.setQueryParam("token",f);
a.element.attr("href",unescape(c.toString()));
if(e[0]==="false"){iwiw.popupLogin({loginUrl:"/pages/socialplugin/login/popup.jsp",success:function(){a.element.removeClass("checkLogin");
vc.multiLoad(a.element.attr("href"),{method:"POST",replace:true,complete:jQuery.proxy(a,"complete")})
}})}else{a.update(a.element,h)
}}}})}else{vc.multiLoad(this.element.attr("href"),{method:"POST",replace:true,complete:jQuery.proxy(this,"complete")})
}},update:function(d,a){d=jQuery(d);
var c=new vc.URI(d.attr("href"));
c.setQueryParam("like",c.queryKey.like=="true"?"false":"true");
if(d.hasClass("unEscape")){c.setQueryParam("url",this.url)
}d.toggleClass("liked").attr("href",c.toString()).trigger("likeChange");
if(a&&a.content){var b=d.find(".count");
if(b.length){if(a.content[""]>0){b.html(a.content[""])
}else{b.html("&nbsp;")
}}jQuery.each(a.content,function(e){if(e){jQuery("#"+e).trigger("likesLoaded");
return false
}})}},complete:function(d,e,b,a){if(b==="success"||b==="notmodified"){if(this.multiple){for(var c=0;
c<this.elementsL;
c++){this.update(this.elements[c],a)
}}else{this.update(this.element,a)
}if(this.callback){document.location=document.location+"&url="+this.encUrl
}}}};vc.attach("a.likeButton",vc.LikeButton);
if(typeof iwiw=="undefined"){iwiw={}
}iwiw.share={success:function(a){if(window.opener){setTimeout(function(){window.close()
},1000);
if(window.opener&&window.opener.incrementShareCount){window.opener.incrementShareCount()
}}else{if(!a){window.location.href="/"
}}}};iwiw.SharePreview=(function(){function b(h){console.log("SharePreview init");
this.element=h;
this.image=this.element.find(".preview_image img");
this.imageSrc=this.element.find("input[name=imageSrc]");
this.images=[];
var g=this;
var j=[];
var k=0;
this.element.find("input[name=images]").each(function(l,n){var m=jQuery.parseJSON(n.value);
if(m.width>-1&&m.height>-1){console.log("no need to check: "+m.url+"@"+m.width+"x"+m.height);
g.images.push(m)
}else{j.push(m.url)
}});console.log("loading",j.length);
jQuery.each(j,function(n,m){var l=new Image();
l.onload=f;
l.onabort=function(){f()
};l.onerror=function(){f()
};console.log("loading",m);
l.src=m
});if(j.length===0){console.log("toBeLoaded.length === 0 -> allLoaded");
e()}function f(){k++;
console.log("loaded",k,this.src);
if(this.width>=20&&this.height>=20){console.log("accepted image: "+this.src+"@"+this.width+"x"+this.height);
g.images.push({width:this.width,height:this.height,url:this.src})
}else{console.log("refused image: "+this.src+"@"+this.width+"x"+this.height)
}if(k==j.length){console.log("last calls allLoaded");
e()}}function e(){console.log("allLoaded");
g.images=g.images.sort(function(l){return 1/(l.width*l.height)
});while(g.images.length>20){g.images.pop()
}if(g.image.hasClass("image_loading")){if(g.images.length>0){g.image[0].src=g.images[0].url;
g.image[0].width=104;
g.image.removeClass("image_loading");
g.imageSrc[0].value=g.image[0].src
}else{g.element.addClass("noimage")
}}else{g.images.unshift({url:g.image[0].src});
g.element.find(".noimage").hide()
}if(g.images.length>1){g.element.find(".all").html(g.images.length);
g.index=0;
g.element.find(".actual").html(g.index+1)
}else{if(g.images.length==1){g.element.find(".prevnext").hide()
}else{g.element.addClass("noimage")
}}}}function c(g){g.preventDefault();
var f=jQuery(g.currentTarget);
if(f.hasClass("disabled")){return
}this.index++;
this.image[0].src=this.images[this.index].url;
this.imageSrc[0].value=this.image[0].src;
this.element.find(".actual").html(this.index+1);
this.element.find(".prev").removeClass("disabled");
if(this.index==this.images.length-1){f.addClass("disabled")
}}function d(g){g.preventDefault();
var f=jQuery(g.currentTarget);
if(f.hasClass("disabled")){return
}this.index--;
this.image[0].src=this.images[this.index].url;
this.imageSrc[0].value=this.image[0].src;
this.element.find(".actual").html(this.index+1);
if(this.index===0){f.addClass("disabled")
}this.element.find(".next").removeClass("disabled")
}function a(f){if(f.target.checked){this.element.addClass("hideimage")
}else{this.element.removeClass("hideimage")
}}return{initialize:b,".prev:onclick":d,".next:onclick":c,".toggle:onclick":a}
})();vc.attach("div.sharePreview",iwiw.SharePreview,{eager:true});
iwiw.ShareForm=jQuery.extend(iwiw.StateMachine,{transitions:{Initial:{imagesClosed:jQuery.noop,urlFound:function(a){this.loadContent(a.url);
return"ContentLoading"
},imagesOpened:function(a){return"UploadImage"
},submit:function(a){return this.submitForm(a)?"Saving":this.currentState
}},ContentLoading:{contentLoadSuccess:function(a){if(a.content){this.showContent(a.url,a.content);
return"ContentShare"
}else{this.ignored.push(a.url);
return"Initial"
}},contentRemoved:["ContentShare","contentRemoved"],imagesOpened:function(){this.contentLoader.abort();
this.hideContent();
return"UploadImage"
},contentLoadFailure:function(){return"Initial"
},submit:["Initial","submit"]},ContentShare:{urlFound:["Initial","urlFound"],contentRemoved:function(){this.ignored.push(this.url);
this.hideContent();
return"Initial"
},submit:["Initial","submit"],imagesOpened:function(a){this.hideContent();
return"UploadImage"
}},UploadImage:{imagesOpened:jQuery.noop,imagesClosed:function(){return"Initial"
},submit:["Initial","submit"]},Saving:{}},onStateChange:function(b,a){this.element.removeClass(b+"State").addClass(a+"State")
},initialize:function(a){this.element=a;
this.preventPost=false;
this.options=vc.metadata(a,["multipleUpload","imageUploadActive"]);
this.ignored=[];
this.previewTarget=this.element.find(".previewTarget");
this.previewContainer=this.element.find(".previewContainer");
this.input=this.element.find("[name=comment]");
this.element.addClass("InitialState");
var b=jQuery.proxy(function(c){setTimeout(jQuery.proxy(this,"findUrl"),100)
},this);
this.input.bind("paste",b);
this.input.bind("drop",b);
this.input.bind("dragdrop",b);
this.element.bind("submit",jQuery.proxy(this,"handleEvent"));
this.input.bind("focus",function(c){jQuery(this).next("div").addClass("focus")
});this.input.bind("blur",function(c){jQuery(this).next("div").removeClass("focus")
});this.imageUpload=new iwiw.ShareForm.ImageUpload(this.element.find(".images"),{multipleUpload:this.options.multipleUpload,action:this.element.attr("action")});
if(document.location.hash=="#imageupload"||this.options.imageUploadActive){this.imageUpload.showImages();
this.updateViewerGroupVisibility(false);
this.handleEvent({type:"imagesOpened"})
}console.log("iwiw.ShareForm initialized",this.options)
},onkeyup:function(a){this.findUrl(a)
},".images .close:onclick":function(a){a.preventDefault();
this.imageUpload.hideImages();
this.updateViewerGroupVisibility(false);
this.handleEvent({type:"imagesClosed"})
},".imageMode:onclick":function(a){a.preventDefault();
this.imageUpload.showImages();
this.updateViewerGroupVisibility(true);
this.handleEvent({type:"imagesOpened"})
},".commentMode:onclick":function(a){a.preventDefault();
this.imageUpload.hideImages();
this.updateViewerGroupVisibility(false);
this.handleEvent({type:"imagesClosed"})
},".previewContainer .close:onclick":function(a){a.preventDefault();
this.handleEvent({type:"contentRemoved"})
},".remove:onclick":function(a){a.preventDefault();
if(this.currentState!="Saving"){this.imageUpload.hideImage(a.currentTarget.getAttribute("rel"))
}},"select[name=authorType]:onchange":function(c){var a=jQuery(c.target);
var b=a.parents(".shareForm").find(".userImage img").get(0);
var d=a.find("option:selected").attr("data-thumbnail");
if(d.length>0){b.src=d
}},findUrl:function(f){if(!f||f.type!="keyup"||f.keyCode==12||f.keyCode==32){if(jQuery.inArray(this.currentState,["ContentLoading","UploadImage","ContentShare"])<0){var d=this.input.val();
var c;
while((c=iwiw.ShareForm.urlRe.exec(d))&&c[0]){var b=c[0].indexOf("http://")>-1?c[0]:"http://"+c[0];
if(!c[0].indexOf("https://")>-1){b=iwiw.ShareForm.illegalUrlChars.test(b)?encodeURI(b):b;
var a;
if(!(a=iwiw.ShareForm.iwiwRe.exec(b))||a[1]){if(jQuery.inArray(b,this.ignored)<0){this.handleEvent({type:"urlFound",url:b});
break}}else{console.log("skipped iwiw url")
}}}iwiw.ShareForm.urlRe.lastIndex=0
}}},loadContent:function(a){this.loading=true;
this.element.addClass("busy");
var b=this;
vc.multiLoad("/pages/share/data.jsp",{beforeSend:function(c){b.contentLoader=c
},data:{u:a},error:function(e,c,d){b.handleEvent({type:"contentLoadFailure",url:a})
},complete:function(d,c){b.element.removeClass("busy");
b.loading=false
},success:function(e,c,f){var d=jQuery.trim(f.responseText);
b.handleEvent({type:"contentLoadSuccess",url:a,content:d})
}})},showContent:function(a,b){this.url=a;
this.previewTarget.html(b).trigger("elementInsert");
this.previewContainer.show()
},hideContent:function(){this.url=null;
this.previewContainer.hide();
this.previewTarget.html("")
},loginCallback:function(){var e=this.getSaveMode();
console.log(e+" post "+this.element.attr("action"));
var b=this;
console.log("preventPost:"+this.preventPost);
switch(e){case"swfu":this.imageUpload.upload(this.element.attr("action"),this.element.serializeArray(),jQuery.proxy(function(){vc.multiLoad(this.element.parent(),this.element.attr("action"),{type:"GET",complete:jQuery.proxy(this,"complete"),selector:this.options.selector})
},this));
break;
case"ajax":if(!this.preventPost){vc.multiLoad(this.element.parent(),this.element.attr("action"),{type:"POST",data:this.element.serializeArray(),complete:jQuery.proxy(this,"complete"),selector:this.options.selector})
}else{var c=jQuery(b.respMsg).find("#activitiesContainer");
var a=b.element.parents("#activitiesContainer").replaceWith(c);
vc.InfoBar.hide();
var d=jQuery("#activitiesContainer").find(".infoBarInner");
if(d.hasClass("infoBarSuccess")){d.parent().delay(5000).slideUp(300)
}this.preventPost=false;
document.location=document.location
}break;
case"plain":this.element[0].redirect.value=window.location.href;
this.element.submit();
break;
default:console.error("unknown upload mode: "+e)
}this.element.find("input[type=submit], button").each(function(){this.disabled=true
});this.element.find(".button.submitForm").addClass("disabled")
},submitForm:function(c){c.preventDefault();
var d=jQuery.trim(this.input.val());
var f=jQuery.proxy(this,"loginCallback");
if(this.currentState=="Initial"&&d===""){return false
}else{if(this.element.find(".button.submitForm").hasClass("popupLogin")){var a=this;
var e=this.element.find("input[name=token]");
var b=a.element.attr("action");
jQuery.ajax({type:"POST",url:b,data:a.element.serialize(),async:false,success:function(g){a.preventPost=true;
a.respMsg=g;
f()},error:function(k,n,l){vc.InfoBar.hide();
var m=jQuery(k.responseXML).find("msg");
var j=m.attr("code");
if(j==="2773"||j==="6969"){var g=m.text().split("|");
console.log(g[0]);
console.log(g[1]);
var h=g[1];
e.val(h);
if(g[0]==="false"){iwiw.popupLogin({success:f,loginUrl:"/pages/share/login/popup.jsp"})
}else{f()
}}}})}else{iwiw.microLogin(f)
}}return true
},getSaveMode:function(){return this.imageUpload.isEmpty()?"ajax":(this.imageUpload.swfu?"swfu":"plain")
},complete:function(a){vc.InfoBar.hide();
var b=jQuery("#activitiesContainer").find(".infoBarInner");
if(b.hasClass("infoBarSuccess")){b.parent().delay(5000).slideUp(300)
}jQuery("#activitiesContainer").find(".button.submitForm").removeClass("popupLogin")
},updateViewerGroupVisibility:function(b){var a=this.element.find("[name=viewerGroup]");
var c="A feltöltött képeket bárki láthatja!";
if(a.length){if(b){if(a.val()!=="-1"){vc.InfoBar.notification(c)
}a.hide().closest(".selector").hide()
}else{vc.InfoBar.hide(c);
a.show().closest(".selector").show()
}}}});
iwiw.ShareForm.ImageUpload=function(b,a){console.log("ImageUpload init");
this.element=b;
this.options=a
};iwiw.ShareForm.ImageUpload.prototype={init:function(){this.initSWFUpload();
this.imageDetails=this.element.find(".imageDetails");
this.fileInput=this.element.find("input[type=file]")
},showImages:function(){if(!this.initialized){this.init();
this.initialized=true
}this.element.show()
},hideImages:function(){this.element.hide()
},initSWFUpload:function(c){var b=this;
var a=(new vc.URI(window.location).anchor||"").indexOf("debug")>-1;
var d=new vc.URI(window.location.href);
d.directory="/common/image/flash/";
d.file="swfupload.swf";
new SWFUpload({file_types_description:"képek",file_types:"*.jpg;*.jpeg;*.gif;*.png",file_size_limit:(1024*1024*5)+"B",flash_url:d.toString(),button_window_mode:"transparent",upload_url:this.options.action,button_placeholder_id:"share_flash_button",button_text:"",button_text_style:"",button_width:105,button_height:27,button_image_url:vc.getImgRoot()+"bigredesign/share_flash_button.png",file_post_name:"file",file_upload_limit:this.options.multipleUpload?15:2,file_queue_limit:this.options.multipleUpload?15:2,button_action:this.options.multipleUpload?SWFUpload.BUTTON_ACTION.SELECT_FILES:SWFUpload.BUTTON_ACTION.SELECT_FILE,swfupload_loaded_handler:function(){b.element.removeClass("noFlash");
b.swfu=this
},file_queued_handler:function(e){if(!b.options.multipleUpload&&this.getStats().files_queued==2){this.cancelUpload(null,false)
}vc.InfoBar.hide();
b.showImage(e)
},file_queue_error_handler:function(e,g,f){if(b.options.multipleUpload&&g==SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){vc.InfoBar.show("Túl sok kép lett kiválasztva")
}if(g==SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT){vc.InfoBar.error("A fájl mérete túl nagy!")
}},upload_start_handler:function(){vc.InfoBar.show("Kép feltöltése...");
if(b.options.multipleUpload){this.addPostParam("imageCount",this.getStats().files_queued)
}},upload_progress_handler:function(f,e,g){if(e<g){vc.InfoBar.show("Kép feltöltése... "+Math.ceil(e/g*100)+"%")
}else{vc.InfoBar.show("Kép feldolgozása, türelem...")
}},upload_error_handler:function(e,g,f){if(!(g==SWFUpload.UPLOAD_ERROR.HTTP_ERROR&&f==302)){vc.InfoBar.error("Nem sikerült a kép beküldése")
}if(b.options.multipleUpload&&this.getStats().files_queued>0){b.fileUploadError(e)
}else{b.fileUploadComplete()
}},upload_success_handler:function(f,g,e){if(b.options.multipleUpload){if(g=="ERROR"){b.fileUploadError(f)
}else{b.fileUploadSuccess(f)
}if(this.getStats().files_queued==0){b.fileUploadComplete()
}}else{b.fileUploadComplete()
}},debug_handler:a?function(e){console.log(e)
}:jQuery.noop,debug:a,prevent_swf_caching:false})
},upload:function(b,d,e){this.complete=e;
var c=new vc.URI(b);
c.file+=";jsessionid="+vc.cookies.get("JSESSIONID");
c.setQueryParam("jsessionid",vc.cookies.get("JSESSIONID"));
if(this.options.multipleUpload){c.setQueryParam("uploadId",vc.cookies.get("JSESSIONID")+"_"+Math.floor(Math.random()*1000000))
}this.swfu.setUploadURL(c.toString());
var a=this.swfu;
jQuery.each(d,function(){a.addPostParam(this.name,this.value)
});this.swfu.setButtonDisabled(true);
this.swfu.startUpload()
},showImage:function(a){if(this.swfu&&a){this.imageDetails[this.options.multipleUpload?"append":"html"]('<div class="file">'+a.name+' <a href="#" class="remove" rel="'+a.id+'">törlés</a></div>')
}},hideImage:function(a){if(this.swfu&&a){this.swfu.cancelUpload(a,false);
this.imageDetails.find("div.file:has(a[rel="+a+"])").remove()
}},isEmpty:function(){if(this.swfu&&this.swfu.getStats().files_queued>0){return false
}if(!this.swfu&&this.fileInput&&jQuery.trim(this.fileInput.val())!==""){return false
}return true
},fileUploadSuccess:function(a){this.imageDetails.find("div.file a[rel="+a.id+"]").replaceWith("Feltöltve")
},fileUploadError:function(a){this.imageDetails.find("div.file a[rel="+a.id+"]").replaceWith("Sikertelen")
},fileUploadComplete:function(){if(this.complete){this.complete()
}}};iwiw.ShareForm.iwiwRe=/http:\/\/(?:\w+\.)?iwiw(?:\.hu)?(?::8080)?(\/((pages\/(\w+)\/(albumdata|imagedata|imageview|listing|comdata)\.jsp\?.+)|((((\w|\.){4,64}(\/((album\/(megjelolesek|hirfolyam|profil|\d+(\/kep\/\d+)?))|(kepek(\/profil\/kep\/\d+)?)))?)|(i\/((klub\/(\w|\-)+\/(\w|\-)+\-\d+)|((\w|\-)+\-\d+\/album\/(megjelolesek|hirfolyam|profil|\d+(\/kep\/\d+)?))|((\w|\-)+\-\d+\/kepek(\/profil\/kep\/\d+)?)|(apro\/(\w|\-)+\/(\w|\-)+\/(\w|\-)+\-\d+))))(\?.+)?)))?/;
iwiw.ShareForm.urlRe=new RegExp("(?:http(?:s?)://|~/|/)?(?:\\w+:\\w+@)?(?:(?:[-\\w]+\\.)+(?:iwiw|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?::[\\d]{1,5})?(?:(?:(?:/(?:\\S|%[a-f\\d]{2})+)+|/)+|\\?|#)?(?:(\\?(?:[-\\w~!$+|.,*:/]|%[a-f\\d{2}])+(?:=(?:[-\\w~!$+|.,*:=/]|%[a-f\\d]{2})*)?)(?:&(?:[-\\w~!$+|.,*:/]|%[a-f\\d{2}])+(?:=(?:[-\\w~!$+|.,*:=/]|%[a-f\\d]{2})*)?)*)*(?:#(?:[-\\w~!$+|.,*:=&]|%[a-f\\d]{2})*)?","ig");
iwiw.ShareForm.illegalUrlChars=/[^a-zA-Z0-9\-_.~!*'();:@&=+$,\/?%#\[\]]/;
vc.attach("form.shareForm",iwiw.ShareForm,{eager:true});
iwiw.FriendAndUnfriend={"onresponse:ok":function(b,n,o){var m,k=jQuery(b.target),l=k.closest(".ui-dialog-content").data("dialog"),d=l?l.opener:k;
if(k.closest(".suggestMini .close").length){return
}console.log("FriendAndUnfriend: saved",n,o);
if(jQuery(document.body).hasClass("user")||jQuery(document.body).hasClass("publicProfile")){document.location.reload()
}else{if((m=d.closest(".autoReload")).length){var a=vc.metadata(m).src;
if(a){vc.multiLoad(m,a,{replace:true})
}}else{try{var c=jQuery.parseJSON(n.responseText)
}catch(j){}if(c){var h,g;
if(c.REQUEST_SENT){h=c.REQUEST_SENT;
g="pendingout"
}else{if(c.FRIEND_DECLINED){h=c.FRIEND_DECLINED
}else{if(c.FRIEND_APPROVED){h=c.FRIEND_APPROVED;
g="friend"
}}}var f=jQuery(".user"+h);
if(jQuery("body").hasClass("mypendingconnections")){f.closest(".miniWrapper").remove();
location.reload()
}else{f.removeClass("pendingout").removeClass("friend").removeClass("pendingin").addClass(g).find(".button.friend, .button.banUser").remove()
}}else{console.log("iwiw.FriendPopup: invalid response",n.responseText)
}}}if(l){l.close()
}}};vc.attach(".marksAsAFriendPopup, .friendButtons, .doYouKnow",iwiw.FriendAndUnfriend);
iwiw.header={};
iwiw.header.menulayers={initialize:function(b){this.mainMenu=b;
this.layers={};
this.targetLink;
this.timeoutIn;
this.timeoutOut;
this.hideable=true;
this.menuItems={};
this.allMenuItems=jQuery(this.mainMenu).find("li");
jQuery(document).click(function(c){if(!jQuery(c.target).closest(".menuLayer").length){jQuery(b).find("li#layered").removeAttr("id");
jQuery("#page").find(".menuLayer.visible").removeClass("visible")
}});var a=this;
jQuery("#page").delegate(".menuLayer.visible","mouseenter",function(){a.hideable=false;
clearTimeout(a.timeoutOut)
}).delegate(".menuLayer.visible","mouseleave",function(){a.hideable=true;
clearTimeout(a.timeoutIn);
a.timeoutOut=setTimeout(function(){if(a.hideable){a.hide(a.visible)
}},600)
})},show:function(c,b){this.visible=c;
if(!this.layers[c]){var a=this;
var d=jQuery('<div class="menuLayer layerWrap visible"><div class="layerWrap"><div id="'+c+'" class="layerContent loading"></div></div></div>');
d.appendTo("#page");
this.parentLi.attr("id","layered");
vc.multiLoad(this.targetLink.attr("data-layer"),{complete:function(f,g,e){a.loaded(c,f)
}})}else{this.parentLi.attr("id","layered");
b.addClass("visible")
}},hide:function(a){jQuery.each(this.layers,function(b,c){jQuery(c).removeClass("visible")
});jQuery.each(this.allMenuItems,function(b,c){jQuery(c).removeAttr("id")
})},loaded:function(d,c){var b=jQuery("#"+d);
var a=jQuery(c).appendTo(b).closest(".menuLayer");
a.trigger("elementInsert");
this.layers[d]=a;
this.menuItems[d]=this.parentLi;
b.removeClass("loading");
this.hide(d);
this.show(d,a)
},"a.outer:onmouseenter":function(d){clearTimeout(this.timeoutOut);
this.targetLink=jQuery(d.currentTarget);
this.parentLi=this.targetLink.parent("li");
var c=this.parentLi.attr("class");
if(this.visible==undefined){this.visible=jQuery(".menuLayer.visible").find(".layerContent").attr("id")
}var b=jQuery("#"+c).parents(".menuLayer");
var a=this;
if(this.visible===c&&this.parentLi.is("#layered")){return false;
this.visible=undefined
}else{if(this.visible){this.hide(this.visible);
this.timeoutIn=setTimeout(function(){a.show(c,b)
},500)
}else{this.timeoutIn=setTimeout(function(){a.show(c,b)
},500)
}}},"a.outer:onmouseleave":function(b){var a=this;
clearTimeout(this.timeoutIn);
this.timeoutOut=setTimeout(function(){if(a.hideable){a.hide(a.visible)
}},600)
}};vc.attach("#mainMenu",iwiw.header.menulayers);
iwiw.header.profilemenu={initialize:function(a){this.el=a
},":onmouseenter":function(){clearTimeout(this.el.data("timeout"));
this.el.addClass("open").find(".dropItem").show()
},onmouseleave:function(){var a=this.el;
a.removeClass("open");
var b=setTimeout(function(){a.find(".dropItem").hide()
},650);
a.data("timeout",b)
}};vc.attach("#profileOptions",iwiw.header.profilemenu);
iwiw.header.search={initialize:function(a){this.minlength=3;
this.typeTimeout=100;
this.form=a;
this.input=a.find("input[type=text]");
this.layer=jQuery("#searchLayer");
this.itemSelector=".micro, .item"
},getQuery:function(){return jQuery.trim(this.input.val())
},onsubmit:function(a){if(this.getQuery().length<this.minlength){a.preventDefault()
}},"#fullnametop:onkeydown":function(a){if(this.typing){clearTimeout(this.typing)
}if(a.which===27){this.hide()
}else{if(a.which===13){var b=this.layer.find(this.itemSelector).filter(".active").find("a[href]");
if(b.length){a.preventDefault();
window.location=b.attr("href")
}else{this.form.submit()
}}else{if(a.which===38){this.move(true);
a.preventDefault()
}else{if(a.which===40){this.move();
a.preventDefault()
}else{this.typing=setTimeout(jQuery.proxy(this,"textEntered"),this.typeTimeout)
}}}}},"#fullnametop:onfocusout":function(a){this.hide()
},textEntered:function(){var a=this.getQuery();
if(this.lastQuery!==a){this.lastQuery=a;
if(a.length>=this.minlength){vc.multiLoad("/pages/search/search.jsp",{data:{topmenusearch:a,cb_:this.form[0].cb_?this.form[0].cb_.value:""},success:jQuery.proxy(function(c,b,d){if(a===this.lastQuery){this.layer.html(c);
this.show()
}},this)})
}else{if(a.length>0){this.layer.html('<p class="noResult">Írj be legalább '+this.minlength+" karaktert!</p>");
this.show()
}else{this.hide()
}}}},move:function(b){var c=this.layer.find(this.itemSelector);
if(c.length>0){var a=c.index(c.filter(".active"));
if(b){if(a>-1){c.eq(a).removeClass("active");
if(a>0){c.eq(a-1).addClass("active")
}}}else{if(a<c.length-1){c.eq(a).removeClass("active");
c.eq(a+1).addClass("active")
}}}},show:function(){this.form.parent().addClass("open");
this.layer.slideDown(100)
},hide:function(){this.layer.delay(100).fadeOut(100);
this.form.parent().removeClass("open")
}};vc.attach("#headSearch",iwiw.header.search);
jQuery(document).keyup(function(a){if(a.which===191&&(!/textarea|select/i.test(a.target.nodeName))&&a.target.type!=="text"){jQuery("#fullnametop").focus();
jQuery("#fullnametop").focusin();
a.preventDefault()
}});if(jQuery.browser.msie&&jQuery.browser.version<8){(function(){var b,e,a,d;
jQuery(document).one("showInfoBar",function(){b=jQuery("#windowInfoBar");
if(b.length){jQuery(window).scroll(jQuery.throttle(250,c));
e=b.parent();
d=b.offset().top;
c()}});
function c(){var f=jQuery(window).scrollTop();
if(!a&&f>d){e.addClass("fixedInfoBar");
a=true
}if(a&&f<d){e.removeClass("fixedInfoBar");
a=false
}}})()
}jQuery("div.usermini").live("mouseover",function(){if(jQuery.browser.msie&&parseFloat(jQuery.browser.version)<7){jQuery(this).addClass("hover")
}});jQuery("div.usermini").live("mouseout",function(){if(jQuery.browser.msie&&parseFloat(jQuery.browser.version)<7){jQuery(this).removeClass("hover")
}});jQuery(".nameToolTip").live("mouseover",function(){jQuery(this).find(".nameToolTipName").show()
});jQuery(".nameToolTip").live("mouseout",function(){jQuery(this).find(".nameToolTipName").hide()
});jQuery(document).delegate("div.usermini .publicProf","click",function(a){document.location=jQuery(a.target).attr("data-href")
});jQuery(function(a){a("textarea.comment").focus(function(){a(this).siblings("div").addClass("focus")
}).blur(function(){a(this).siblings("div").removeClass("focus")
});a(document).delegate("#banConfirm","click",function(c){c.preventDefault();
c.stopPropagation();
var d="Biztos kitiltod a tagot?";
if(confirm(d)){var b=a(c.currentTarget).attr("href");
a.get(b,function(e){document.location=document.location
})}})});
jQuery(function(d){d("#postChange select").change(function(e){d(this).parents("form").attr("action",e.target.value).submit()
});d(document).delegate("a.unlocked, a.locked","click",function(h){h.preventDefault();
h.stopPropagation();
if(!d(this).hasClass("readOnly")){var e=d(this).next("input[type=hidden]");
var g=d(this).attr("data-chk");
var k=d(this).attr("data-unchk");
var f=d(this).attr("data-altchk");
var j=d(this).attr("data-altunchk");
if(d(this).hasClass("unlocked")){e.val("false");
d(this).attr("class",k);
d(this).attr("title",j).text(j)
}else{e.val("true");
d(this).attr("class",g);
d(this).attr("title",f).text(f)
}setIsDirty(true)
}});d("#main .appsBox .boxPager a").click(function(f){f.preventDefault();
var e=d(this).attr("href");
d("#"+e).siblings(".content").hide();
d("#"+e).fadeIn()
});d("a[rel=popup]").live("click",function(f){f.preventDefault();
var e=d(this).attr("href");
window.open(e,"popup","width=720,height=500px,left=100px,top=100px,scrollbars=yes,resizable=yes")
});if(d("body#popupPage a.closeLink").length){if(window.opener&&!window.opener.closed){d("a.closeLink").live("click",function(e){e.preventDefault();
window.close()
})}else{d("a.closeLink").hide()
}}d(".userGroups .add").bind("click",function(e){e.preventDefault();
d(".addingNewGroup").slideDown()
});d(".userInGroups .add").live("click",function(e){e.preventDefault();
d(this).parent().remove();
d(".addingNewGroup").show()
});d("#userCommentForm .reset").live("click",function(f){f.preventDefault();
var e=d(this).parents("form").find("textarea");
e.val("");
e.siblings(".textCount").find(".counter").html("1500")
});d("select.findCity").change(function(g){var e=d(this);
var f=d(this).val();
d.get("/pages/locality/citylist.jsp",{country:f,mandatory:false},function(h){if(d("div.cityHolder").length){d("div.cityHolder select").replaceWith(h);
d("div.cityHolder select").prev("span").html(d("div.cityHolder select").find(":selected").html());
d("div.cityHolder select").change(function(){d(this).prev("span").html(d(this).find(":selected").html())
})}else{if(d("#uniform-p_city").length){d("#uniform-p_city").remove()
}e.parent(".selector").after(h);
d("#p_city").uniform()
}})});
d("select.findCityMandatory").change(function(g){var e=d(this);
var f=d(this).val();
d.get("/pages/locality/citylist.jsp",{country:f,mandatory:true},function(h){if(d("div.cityHolder").length){d("div.cityHolder select").replaceWith(h);
d("div.cityHolder select").prev("span").html(d("div.cityHolder select").find(":selected").html());
d("div.cityHolder select").change(function(){d(this).prev("span").html(d(this).find(":selected").html())
})}else{if(d("#uniform-p_city").length){d("#uniform-p_city").remove()
}e.parent(".selector").after(h);
d("#p_city").uniform()
}})});
if(d("p.videoEmbed").length){d(".secondary.tab").click(function(f,e){var e=d("p.videoEmbed");
if(e.find("object").length){e.find("object").append('<param name="wmode" value="transparent" />')
}if(e.find("embed").length){e.find("embed").attr("wmode","transparent")
}var g=e.html();
if(!e.hasClass("overlay")){e.empty();
e.addClass("overlay");
e.html(g)
}})}d(".profile #p_month_of_birth").change(function(h){var e="p_day_of_birth";
var g=d("#p_year_of_birth").val();
var f=d(this).val();
d.get("/pages/locality/day_of_month.jsp",{year:g,month:f,id:e,inner:true},function(j){d("#"+e).html(j);
d.uniform.update("#"+e)
})});d(".profile #p_month_of_nameday").change(function(h){var e="p_day_of_nameday";
var g=d("#p_year_of_birth").val();
var f=d(this).val();
d.get("/pages/locality/day_of_month.jsp",{year:g,month:f,id:e,inner:true},function(j){d("#"+e).html(j);
d.uniform.update("#"+e)
})});d(document).delegate("#imagesLayer #albumSelect","change",function(f){var e=d(this).parents("form").find(".button");
var g=d(this).val();
console.log(e);
console.log(g);
e.attr("href","/i/kepfeltoltes?albumID="+g)
});d(".resetForm").click(function(f){f.preventDefault();
var e=d(this).parents("form");
e.find(".resetButton").click()
});d("#search").delegate(".reset","click",function(f){f.preventDefault();
var e=d(this).parents("form");
e[0].reset();
e.prev("form").submit()
});d(".image .actors").delegate(".addMark","click",function(e){iwiw.audit.webaudit.hit(".mark")
});d(document).delegate(".usersearchform .add","click",function(e){e.preventDefault();
d("#advancedUserSearchToggle").hide();
d("#advancedUserSearch").slideDown(300)
});if(d("body.compose").length){d(document).delegate(".maininput","focus",function(e){d(this).parents(".holder").siblings(".defaultTextContent").hide()
})}d("#fcfForm .submit").click(function(h){h.preventDefault();
var j=d(this).parents("form");
var g=j.find("select");
var e=false;
if(g.length<3){d.each(g,function(){if(this.value<0){e=true
}})}if(!e){j.submit()
}else{alert("Minimum két ismerősödet válaszd ki")
}});if(d("body.homePage").length){d.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());
var a=navigator.appVersion.toLowerCase();
var c="unkn";
var b="unkn";
if(a.indexOf("win")!=-1){c="win"
}if(a.indexOf("mac")!=-1){c="mac"
}if(a.indexOf("linux")!=-1){c="linux"
}if(d.browser.msie){b="ie"
}if(d.browser.safari){b="safari"
}if(d.browser.opera){b="opera"
}if(d.browser.chrome){b="chrome"
}if(d.browser.mozilla){if(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1){b="firefox"
}}if(c=="unkn"||b=="unkn"){d("#unkn").show()
}else{if(b=="ie"){d("#ie").show()
}else{d("#"+b+"-"+c).show()
}}}vc.attach("#chageCityForm",{"onresponse:ok":function(h){var g=jQuery(h.target).parents("li");
var e=jQuery(h.target).text();
var f=jQuery(h.target).attr("href");
g.empty();
g.append('<span data-href="'+f+'" class="added">'+e+"</span>")
}});vc.attach("#favoriteCities",{"onresponse:ok":function(j){var g=jQuery(j.target).parents("li").attr("id");
var f=jQuery("#chageCityForm").find("li#"+g);
var e=f.find(".added").text();
var h=f.find(".added").attr("data-href");
f.empty();
f.append('<a class="remote" href="'+h+'">'+e+'<span class="icon add"></span></a>')
}});d(document).delegate(".profileApp .dialogBogus .submitForm, .canvas .dialogBogus .submitForm","click",function(e){e.preventDefault();
d(this).parents("form").trigger("submit");
d(this).parents(".ui-dialog-content").dialog("close")
});vc.attach(".read #bogusForm",{"onresponse:ok":function(f){var g=d(f.relatedTarget).attr("data-msdid");
var e="/pages/message/messageread.jsp?messageID="+g+"&method=ReportSpam";
d.get(e,function(h){document.location="/pages/message/inbox.jsp"
})}});
d(document).delegate(".forceLoginLink","click",function(e){e.preventDefault();
document.location=d(this).attr("forcelogin-url")
});d("#entityAlias").keyup(function(){var e=d(this);
checkAlias(e)
});d("#error404").delegate(".gs-title","click",function(e){e.preventDefault();
e.stopPropagation();
document.location=this.href
});if(d("#loginPage #email").length){d("#loginPage #email").focus()
}d(document).delegate("#pollWidgetForm","submit",function(g){g.preventDefault();
var e=d(this);
var h=e.serialize();
var f=e.attr("action");
d.post(f+"?"+h,function(j){e.replaceWith(j)
})});if(d.browser.msie){d(document).delegate(".albumPager .album .wrapper","click",function(){document.location=d(this).attr("href")
})}d(document).delegate(".iwiwWidget a","click",function(f){f.stopPropagation();
if(d(f.target).hasClass("comment")){var e=jQuery(this).parents(".actions").next().find(".one_line_input input");
if(e.length>0){e.click()
}}else{this.target="_blank"
}});vc.attach(".actions .unsubscribe",{onclick:function(g){g.preventDefault();
g.stopPropagation();
var e=jQuery(g.currentTarget);
var f=e.attr("href");
jQuery.ajax({url:f,async:false,success:function(){e.parent().remove();
vc.InfoBar.show("Sikeres leiratkozás",{type:"success"})
},error:function(m,p,n){vc.InfoBar.hide();
var o=jQuery(m.responseXML).find("msg");
var l=o.attr("code");
if(l==="2773"||l==="6969"){var h=o.text().split("|");
console.log(h[0]);
console.log(h[1]);
var k=h[1];
var j=new vc.URI(e.attr("href"));
j.setQueryParam("token",k);
e.attr("href",unescape(j.toString()));
if(h[0]==="false"){iwiw.popupLogin({loginUrl:"/pages/share/login/popup.jsp",success:function(){e.click()
}})}else{e.click()
}}}})}});
vc.attach(".sharePopup",{initialize:function(e){this.url=e[0].href
},onclick:function(e){e.preventDefault();
e.stopPropagation();
window.open(this.url,"iwiw_loginpopup","toolbar=0,status=0,location=1, width=650,height=600,scrollbars=1")
}});d("#clubWidget").delegate(".activity .share","click",function(e){var f="Te is megosztod?";
if(!confirm(f)){return false
}});if(window.name==="iwiwshare"&&window.opener){vc.attach("#loginform",{initialize:function(e){d.each(["success","failure"],function(f,g){if(e.hasClass(g)){if(g==="success"){close()
}return false
}})}},{eager:true})
}});function checkAlias(b){var c=b.attr("data-url");
var e=b.attr("minlength")-1;
var a=jQuery("#getAlias");
var d=jQuery("#aliasHint");
a.find("span").removeClass("on");
b.next(".error").hide();
if(this.toutId){clearTimeout(this.toutId)
}this.toutId=setTimeout(function(){if(b.val().length>e){jQuery.get(c,{method:"CheckAlias",entityAlias:jQuery("#entityAlias").val()},function(f){if(f.status=="OK"){a.find(".free").addClass("on");
d.hide()
}if(f.status=="NOT_AVAILABLE"){a.find(".occu").addClass("on");
d.show()
}if(f.status=="BLACKLISTED"){a.find(".prot").addClass("on");
d.show()
}if(f.status=="INVALID"){b.next(".error").show();
d.hide()
}},"json")
}},400)
}jQuery(document).delegate(".shoppingWindow .legal_switcher","click",function(c){var b=jQuery(c.currentTarget);
var d=b.parents(".panel");
var a=jQuery(".shoppingWindow").find(".panel");
a.show();
d.hide();
return false
});jQuery(".shoppingWindow").live("close",function(a){vc.multiLoad("#shoppingBoxContainer","/pages/shopping/deal.jsp")
});iwiw.FancyStaticPager={initialize:function(d){this.element=d;
this.selectedPage=1;
this.lists=[];
var a=this.element.data().target;
if(a=="_previous"){this.pagesContainer=this.element.parent().find(".pages");
this.sourceUL=this.pagesContainer.find("ul")
}else{if(a.indexOf("#")==0){this.sourceUL=jQuery(a);
this.pagesContainer=this.sourceUL.parents(".pages")
}else{console.error('FancyStaticPager target="'+this.element.data().target+"\" haven't implemented yet");
return
}}this.generatedLists=jQuery('<div class="generatedLists"></div>');
this.pagesContainer.append(this.generatedLists);
this.contWidth=this.pagesContainer.width();
this.contHeight=this.pagesContainer.height();
this.autoRotationTime=vc.metadata(this.sourceUL).autorotationtime||0;
this.currentPage=1;
this.totalPages=1;
var b=this.sourceUL.find("li");
var f=b.length;
var e=null;
for(var c=0;
c<f;c++){if(!e){e=jQuery('<ul class="page'+this.totalPages+' clearfix"></ul>');
e.css({height:"auto"});
this.generatedLists.append(e);
this.lists.push(e);
this.totalPages++
}var g=jQuery(b[c]).clone();
e.append(g);
if(e.height()>(this.contHeight)){g.remove();
e=null;
c--}else{jQuery(b[c]).remove()
}}this.sourceUL.remove();
var h='<div class="wrapper">';
for(var c=1;
c<this.totalPages;
c++){if(c==this.selectedPage){h+='<span class="current" title="'+c+'"></span>'
}else{h+='<a href="#" title="'+c+'"></a>'
}}h+="</div>";
h+='<a class="button small pager boxPagerLeft" href="#"><span>&#9668;</span></a>';
h+='<a class="button small pager boxPagerRight" href="#"><span>&#9658;</span></a>';
this.element.html(h);
this.boxPagerLeft=this.element.find(".boxPagerLeft");
this.boxPagerRight=this.element.find(".boxPagerRight");
jQuery(this.element).delegate(".wrapper a","click",jQuery.proxy(this.selectPage,this));
this.boxPagerRight.click(jQuery.proxy(this.onPagerBtnsClick,this));
this.boxPagerLeft.click(jQuery.proxy(this.onPagerBtnsClick,this));
this.selectPage(this.selectedPage);
this.autoRotate()
},autoRotate:function(){if(this.autoRotationTime==0){return false
}if(this.autoRotationTimer){clearTimeout(this.autoRotationTimer)
}this.autoRotationTimer=setTimeout(jQuery.proxy(function(){this.selectPage(this.currentPage+1>=this.totalPages?1:this.currentPage+1)
},this),this.autoRotationTime*1000)
},onPagerBtnsClick:function(a){if(jQuery(a.currentTarget).hasClass("boxPagerLeft")&&this.currentPage>1){this.selectPage(this.currentPage-1)
}else{if(jQuery(a.currentTarget).hasClass("boxPagerRight")&&this.currentPage<this.totalPages){this.selectPage(this.currentPage+1)
}}return false
},selectPage:function(a){if(typeof a!="number"&&a.type=="click"){a=jQuery(a.currentTarget).attr("title")
}this.currentPage=parseInt(a);
this.generatedLists.animate({marginLeft:"-"+((this.contWidth-2)*(this.currentPage-1))+"px"},500);
var b=this.element.find(".current");
if(b.length){b.replaceWith('<a title="'+b.attr("title")+'" href="#"></a>');
jQuery(this.element.find(".wrapper a").get(this.currentPage-1)).replaceWith('<span class="current" title="'+this.currentPage+'"></span>')
}this.currentPage<=1?this.boxPagerLeft.hide():this.boxPagerLeft.show();
this.currentPage>=this.totalPages-1?this.boxPagerRight.hide():this.boxPagerRight.show();
this.autoRotate();
return false
}};vc.attach(".fancyStaticPager",iwiw.FancyStaticPager,{eager:true});
var userIds=[];
vc.attach(".inviteFriendsDialog",{ondialogopen:function(a){jQuery("[name=currentUsersFirst]").val("iwiwRandInp")
},".userHolder:not(.invited):onclick":function(a){a.preventDefault();
jQuery(a.currentTarget).addClass("invited");
userIds.splice(0,0,jQuery(a.currentTarget).next("[name=userId]").val());
jQuery("[name=targetUserIds]").val(userIds);
console.log(jQuery("[name=targetUserIds]").val())
},".invited:onclick":function(c){c.preventDefault();
jQuery(c.currentTarget).removeClass("invited");
var a=jQuery(c.currentTarget).next("[name=userId]").val();
var b=jQuery.inArray(a,userIds);
userIds.splice(b,1);
jQuery("[name=targetUserIds]").val(userIds);
console.log(jQuery("[name=targetUserIds]").val())
},"[name=inviteAllFriends]:onclick":function(a){if(jQuery("[name=inviteAllFriends]").is(":checked")){jQuery("#dialogUsersCover").css({opacity:"0",display:"block"});
jQuery("#dialogUsersCover").animate({opacity:".5"},300)
}else{jQuery("#dialogUsersCover").animate({opacity:"0"},300,function(){jQuery("#dialogUsersCover").css({display:"none"})
})}},"#eventInviteBox .remoteArea div.pager a:onclick":function(a){window.setTimeout(function(){var e=jQuery("[name=targetUserIds]").val().split(",");
var d=[];
var b=jQuery("input[name=userId]");
jQuery.each(b,function(){d.push(jQuery(this).val())
});for(var c=0;
c<e.length;
c++){if(jQuery.inArray(e[c],d)>-1){console.log(e[c]);
jQuery("input[value="+e[c]+"]").prev(".userHolder").addClass("invited")
}}},400)
},"#searchField:onkeyup":function(c){var a=jQuery.trim(c.target.value).length;
var d=c.target.value.length;
var b=jQuery(c.target).parents("form");
if(d>2||a==0){if(this.st!=undefined){clearTimeout(this.st)
}this.st=setTimeout(function(){b.submit()
},500)
}},"onresponse:ok":function(a){setTimeout(function(){},500)
},"#eventInviteBox form.eventInvitation:onresponse:ok":function(b,c,a){if(b.target.nodeName.toLowerCase()!=="a"){location.reload()
}}});vc.attach(document,".logoutFromIwiw",{onclick:function(e){var $el=jQuery(e.currentTarget);
if(!$el.hasClass("bannerable")){location.href=jQuery("#profileOptions .logoutFromIwiw").attr("href");
return
}$el.removeClass("bannerable");
vc.multiLoad("/pages/recommendations/logout-splash.jsp",{complete:function(responseText,xhr,status,result){if(status=="success"&&jQuery.trim(responseText)!=""){var ret=jQuery(responseText);
if(ret.size()&&jQuery(ret.get(0)).hasClass("partnerbox")){jQuery(document.body).append(ret.get(0));
if(ret.get(1)){eval(ret.get(1).innerHTML)
}else{jQuery(".logoutFromIwiw").trigger("click")
}}}else{jQuery(".logoutFromIwiw").trigger("click")
}}});return false
}});jQuery(function(){jQuery(".logoutFromIwiw").addClass("bannerable")
});function gemius_parameters(){var d=document;
var href=new String(d.location.href);
var ref;
var f=0;
var fv="-";
if(d.referrer){ref=new String(d.referrer)
}else{ref=""
}if(typeof Error!="undefined"){var fo;
eval('try { f=(d==top.document)?1:2; if (typeof top.document.referrer=="string") { ref=top.document.referrer } } catch(e) {f=3;}');
eval('try { fv=navigator.plugins["Shockwave Flash"].description; } catch (e) {}');
eval('if (typeof ActiveXObject!="undefined") { try { fo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); } catch(e) { try { fo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); fv="X"; fo.AllowScriptAccess="always"; } catch(e) { if (fv=="X") { fv="WIN 6,0,20,0"; }} try { fo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); } catch(e) {} } if ((fv=="-" || fv=="X") && fo) { fv=fo.GetVariable("$version"); }}')
}var url="&fr="+f+"&fv="+escape(fv)+"&tz="+(new Date()).getTimezoneOffset()+"&href="+escape(href.substring(0,499))+"&ref="+escape(ref.substring(0,499));
if(screen){var s=screen;
if(s.width){url+="&screen="+s.width+"x"+s.height
}if(s.colorDepth){url+="&col="+s.colorDepth
}}return url
}window.pp_gemius_params=gemius_parameters();
function gemius_add_onload_event(b,a){if(b.attachEvent){b.attachEvent("onload",a)
}else{if(b.addEventListener){b.addEventListener("load",a,false)
}}}function gemius_append_script(xp_url){if(typeof Error!="undefined"){eval('try { xp_javascript=document.createElement("script"); xp_javascript.src=xp_url; xp_javascript.type="text/javascript"; xp_javascript.defer=true; document.body.appendChild(xp_javascript); } catch(e) {}')
}}function gemius_obj_loaded(){window.pp_gemius_loaded+=1;
if(window.pp_gemius_loaded==2&&window.pp_gemius_image.width&&window.pp_gemius_image.width>1){gemius_append_script(window.pp_gemius_script)
}}function pp_gemius_timer(){window.pp_gemius_timer_image=new Image();
window.pp_gemius_timer_image.src=window.pp_gemius_host+(new Date()).getTime()+"/dot.gif?l=36"+window.pp_gemius_time_id+window.pp_gemius_params
}var pp_gemius_proto=(document.location&&document.location.protocol&&document.location.protocol=="https:")?"https://":"http://";
if(typeof pp_gemius_hitcollector=="undefined"){if(typeof gemius_hitcollector!="undefined"){pp_gemius_hitcollector=gemius_hitcollector
}else{pp_gemius_hitcollector="hu.hit.gemius.pl"
}}var pp_gemius_host=pp_gemius_proto+pp_gemius_hitcollector+"/_";
var pp_gemius_sv;
var pp_gemius_identifier;
function gemius_initialize(a){if(typeof pp_gemius_nhit=="undefined"){if(typeof a=="undefined"){if(typeof gemius_identifier!="undefined"){pp_gemius_identifier=gemius_identifier;
gemius_identifier="USED_"+gemius_identifier
}else{pp_gemius_identifier=""
}}else{pp_gemius_identifier=a
}if(typeof window.pp_gemius_cnt!="undefined"){if(typeof window.pp_gemius_images=="undefined"){window.pp_gemius_images=new Array()
}var b=window.pp_gemius_images.length;
window.pp_gemius_images[b]=new Image();
window.pp_gemius_images[b].src=pp_gemius_host+(new Date()).getTime()+"/redot.gif?l=33&id=ERR_"+pp_gemius_identifier.replace(/id=/,"id=ERR_")+window.pp_gemius_params
}else{if(typeof pp_gemius_time_identifier!="undefined"&&typeof window.pp_gemius_time_id=="undefined"){window.pp_gemius_time_id="&id="+pp_gemius_time_identifier;
window.pp_gemius_host=pp_gemius_host;
setInterval("pp_gemius_timer()",60*1000);
pp_gemius_sv=35
}else{window.pp_gemius_time_id="";
pp_gemius_sv=31
}window.pp_gemius_image=new Image();
if(typeof pp_gemius_mode=="undefined"){window.pp_gemius_loaded=0;
window.pp_gemius_script=pp_gemius_host+(new Date()).getTime()+"/pp.js?id="+pp_gemius_identifier;
gemius_add_onload_event(window,gemius_obj_loaded);
gemius_add_onload_event(window.pp_gemius_image,gemius_obj_loaded);
pp_gemius_sv-=1
}window.pp_gemius_image.src=pp_gemius_host+(new Date()).getTime()+"/rexdot.gif?l="+pp_gemius_sv.toString()+"&id="+pp_gemius_identifier+window.pp_gemius_time_id+window.pp_gemius_params;
window.pp_gemius_cnt=1
}pp_gemius_identifier="USED_"+pp_gemius_identifier
}}function pp_gemius_hit_int(e,b,d){var a=pp_gemius_host+(new Date()).getTime()+"/redot.gif?l=32";
if(typeof window.xgemius_prot_cnt=="undefined"){window.xgemius_prot_cnt=0
}if(typeof xgemius_prot_cnt=="undefined"){xgemius_prot_cnt=0
}if(window.xgemius_prot_cnt<=xgemius_prot_cnt){go=1;
window.xgemius_prot_cnt++
}else{go=0
}xgemius_prot_cnt++;
for(var c=b;
c<d;c++){a+="&id="+e[c]
}a+=window.pp_gemius_params;
if(typeof window.gemius_hit_images=="undefined"){window.gemius_hit_images=new Array()
}var f=window.gemius_hit_images.length;
window.gemius_hit_images[f]=new Image();
if(go){window.gemius_hit_images[f].src=a
}else{window.gemius_hit_images[f].src=a.replace(/id=/,"id=DBL_")
}}function pp_gemius_hit(){for(i=0;
i<arguments.length;
i+=5){if(i+5<arguments.length){pp_gemius_hit_int(arguments,i,i+5)
}else{pp_gemius_hit_int(arguments,i,arguments.length)
}}}if(typeof gemius_hit!="function"){gemius_hit=pp_gemius_hit
}var _uacct="";
var _userv=0;
var _ufsc=1;
var _udn="auto";
var _uhash="on";
var _utimeout="1800";
var _ugifpath="http://u.iwiw.hu/__utm.gif";
var _utsp="|";
var _uflash=1;
var _utitle=1;
var _ulink=0;
var _uanchor=0;
var _utcp="/";
var _usample=100;
var _uctm=1;
var _ucto="15768000";
var _uccn="utm_campaign";
var _ucmd="utm_medium";
var _ucsr="utm_source";
var _uctr="utm_term";
var _ucct="utm_content";
var _ucid="utm_id";
var _ucno="utm_nooverride";
var _uOsr=new Array();
var _uOkw=new Array();
_uOsr[0]="google";
_uOkw[0]="q";
_uOsr[1]="yahoo";
_uOkw[1]="p";
_uOsr[2]="msn";
_uOkw[2]="q";
_uOsr[3]="aol";
_uOkw[3]="query";
_uOsr[4]="aol";
_uOkw[4]="encquery";
_uOsr[5]="lycos";
_uOkw[5]="query";
_uOsr[6]="ask";
_uOkw[6]="q";
_uOsr[7]="altavista";
_uOkw[7]="q";
_uOsr[8]="netscape";
_uOkw[8]="query";
_uOsr[9]="cnn";
_uOkw[9]="query";
_uOsr[10]="looksmart";
_uOkw[10]="qt";
_uOsr[11]="about";
_uOkw[11]="terms";
_uOsr[12]="mamma";
_uOkw[12]="query";
_uOsr[13]="alltheweb";
_uOkw[13]="q";
_uOsr[14]="gigablast";
_uOkw[14]="q";
_uOsr[15]="voila";
_uOkw[15]="rdata";
_uOsr[16]="virgilio";
_uOkw[16]="qs";
_uOsr[17]="live";
_uOkw[17]="q";
_uOsr[18]="baidu";
_uOkw[18]="wd";
_uOsr[19]="alice";
_uOkw[19]="qs";
_uOsr[20]="yandex";
_uOkw[20]="text";
_uOsr[21]="najdi";
_uOkw[21]="q";
_uOsr[22]="aol";
_uOkw[22]="q";
_uOsr[23]="club-internet";
_uOkw[23]="q";
_uOsr[24]="mama";
_uOkw[24]="query";
_uOsr[25]="seznam";
_uOkw[25]="q";
_uOsr[26]="search";
_uOkw[26]="q";
_uOsr[27]="szukaj";
_uOkw[27]="szukaj";
_uOsr[28]="szukaj";
_uOkw[28]="qt";
_uOsr[29]="netsprint";
_uOkw[29]="q";
_uOsr[30]="google.interia";
_uOkw[30]="q";
_uOsr[31]="szukacz";
_uOkw[31]="q";
_uOsr[32]="yam";
_uOkw[32]="k";
_uOsr[33]="pchome";
_uOkw[33]="q";
_uOsr[34]="bing";
_uOkw[34]="q";
var _uOno=new Array();
var _uRno=new Array();
var _uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1";
var _ugifpath2="http://www.google-analytics.com/__utm.gif";
if(_udl.hash){_udlh=_udl.href.substring(_udl.href.indexOf("#"))
}if(_udl.protocol=="https:"){_ugifpath2="https://ssl.google-analytics.com/__utm.gif"
}if(!_utcp||_utcp==""){_utcp="/"
}function urchinTracker(j){if(_udl.protocol=="file:"){return
}if(_uff&&(!j||j=="")){return
}var p,n,l,d,q,m,e,o="",t="",h=0;
var g=" expires="+_uNx()+";";
var r=_ubd.cookie;
_udh=_uDomain();
if(!_uVG()){return
}_uu=Math.round(Math.random()*2147483647);
_udt=new Date();
_ust=Math.round(_udt.getTime()/1000);
p=r.indexOf("__utma="+_udh);
n=r.indexOf("__utmb="+_udh);
l=r.indexOf("__utmc="+_udh);
if(_udn&&_udn!=""){_udo=" domain="+_udn+";"
}if(_utimeout&&_utimeout!=""){o=new Date(_udt.getTime()+(_utimeout*1000));
o=" expires="+o.toGMTString()+";"
}if(_ulink){if(_uanchor&&_udlh&&_udlh!=""){t=_udlh+"&"
}t+=_udl.search;
if(t&&t!=""&&t.indexOf("__utma=")>=0){if(!(_uIN(p=_uGC(t,"__utma=","&")))){p="-"
}if(!(_uIN(n=_uGC(t,"__utmb=","&")))){n="-"
}if(!(_uIN(l=_uGC(t,"__utmc=","&")))){l="-"
}q=_uGC(t,"__utmv=","&");
m=_uGC(t,"__utmz=","&");
e=_uGC(t,"__utmk=","&");
d=_uGC(t,"__utmx=","&");
if((e*1)!=((_uHash(p+n+l+d+m+q)*1)+(_udh*1))){_ubl=1;
p="-";
n="-";
l="-";
d="-";
m="-";
q="-"}if(p!="-"&&n!="-"&&l!="-"){h=1
}else{if(p!="-"){h=2
}}}}if(h==1){_ubd.cookie="__utma="+p+"; path="+_utcp+";"+g+_udo;
_ubd.cookie="__utmb="+n+"; path="+_utcp+";"+o+_udo;
_ubd.cookie="__utmc="+l+"; path="+_utcp+";"+_udo
}else{if(h==2){p=_uFixA(t,"&",_ust);
_ubd.cookie="__utma="+p+"; path="+_utcp+";"+g+_udo;
_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+o+_udo;
_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
_ufns=1
}else{if(p>=0&&n>=0&&l>=0){_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+o+_udo
}else{if(p>=0){p=_uFixA(_ubd.cookie,";",_ust)
}else{p=_udh+"."+_uu+"."+_ust+"."+_ust+"."+_ust+".1"
}_ubd.cookie="__utma="+p+"; path="+_utcp+";"+g+_udo;
_ubd.cookie="__utmb="+_udh+"; path="+_utcp+";"+o+_udo;
_ubd.cookie="__utmc="+_udh+"; path="+_utcp+";"+_udo;
_ufns=1
}}}if(_ulink&&d&&d!=""&&d!="-"){d=_uUES(d);
if(d.indexOf(";")==-1){_ubd.cookie="__utmx="+d+"; path="+_utcp+";"+g+_udo
}}if(_ulink&&q&&q!=""&&q!="-"){q=_uUES(q);
if(q.indexOf(";")==-1){_ubd.cookie="__utmv="+q+"; path="+_utcp+";"+g+_udo
}}_uInfo(j);
_ufns=0;
_ufno=0;
if(!j||j==""){_uff=1
}}function _uInfo(e){var f,d="",a="",g=_udl.pathname+_udl.search;
if(e&&e!=""){g=_uES(e,1)
}_ur=_ubd.referrer;
if(!_ur||_ur==""){_ur="-"
}else{a=_ubd.domain;
if(_utcp&&_utcp!="/"){a+=_utcp
}f=_ur.indexOf(a);
if((f>=0)&&(f<=8)){_ur="0"
}if(_ur.indexOf("[")==0&&_ur.lastIndexOf("]")==(_ur.length-1)){_ur="-"
}}d+="&utmn="+_uu;
if(_ufsc){d+=_uBInfo()
}if(_uctm){d+=_uCInfo()
}if(_utitle&&_ubd.title&&_ubd.title!=""){d+="&utmdt="+_uES(_ubd.title)
}if(_udl.hostname&&_udl.hostname!=""){d+="&utmhn="+_uES(_udl.hostname)
}d+="&utmr="+_ur;
d+="&utmp="+g;
if((_userv==0||_userv==2)&&_uSP()){var b=new Image(1,1);
b.src=_ugifpath+"?utmwv="+_uwv+d;
b.onload=function(){_uVoid()
}}if((_userv==1||_userv==2)&&_uSP()){var c=new Image(1,1);
c.src=_ugifpath2+"?utmwv="+_uwv+d+"&utmac="+_uacct+"&utmcc="+_uGCS();
c.onload=function(){_uVoid()
}}return
}function _uVoid(){return
}function _uCInfo(){if(!_ucto||_ucto==""){_ucto="15768000"
}if(!_uVG()){return
}var h="",m="-",e="-",b="-",a=0,f=0,k=0,d=0,g="-",n="";
if(_uanchor&&_udlh&&_udlh!=""){n=_udlh+"&"
}n+=_udl.search;
var j=new Date(_udt.getTime()+(_ucto*1000));
var l=_ubd.cookie;
j=" expires="+j.toGMTString()+";";
if(_ulink&&!_ubl){g=_uUES(_uGC(n,"__utmz=","&"));
if(g!="-"&&g.indexOf(";")==-1){_ubd.cookie="__utmz="+g+"; path="+_utcp+";"+j+_udo;
return""
}}g=l.indexOf("__utmz="+_udh);
if(g>-1){g=_uGC(l,"__utmz="+_udh,";")
}else{g="-"
}m=_uGC(n,_ucid+"=","&");
e=_uGC(n,_ucsr+"=","&");
b=_uGC(n,"gclid=","&");
if((m!="-"&&m!="")||(e!="-"&&e!="")||(b!="-"&&b!="")){if(m!="-"&&m!=""){h+="utmcid="+_uEC(m)
}if(e!="-"&&e!=""){if(h!=""){h+="|"
}h+="utmcsr="+_uEC(e)
}if(b!="-"&&b!=""){if(h!=""){h+="|"
}h+="utmgclid="+_uEC(b)
}m=_uGC(n,_uccn+"=","&");
if(m!="-"&&m!=""){h+="|utmccn="+_uEC(m)
}else{h+="|utmccn=(not+set)"
}m=_uGC(n,_ucmd+"=","&");
if(m!="-"&&m!=""){h+="|utmcmd="+_uEC(m)
}else{h+="|utmcmd=(not+set)"
}m=_uGC(n,_uctr+"=","&");
if(m!="-"&&m!=""){h+="|utmctr="+_uEC(m)
}else{m=_uOrg(1);
if(m!="-"&&m!=""){h+="|utmctr="+_uEC(m)
}}m=_uGC(n,_ucct+"=","&");
if(m!="-"&&m!=""){h+="|utmcct="+_uEC(m)
}m=_uGC(n,_ucno+"=","&");
if(m=="1"){a=1
}if(g!="-"&&a==1){return""
}}if(h=="-"||h==""){h=_uOrg();
if(g!="-"&&_ufno==1){return""
}}if(h=="-"||h==""){if(_ufns==1){h=_uRef()
}if(g!="-"&&_ufno==1){return""
}}if(h=="-"||h==""){if(g=="-"&&_ufns==1){h="utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)"
}if(h=="-"||h==""){return""
}}if(g!="-"){d=g.indexOf(".");
if(d>-1){d=g.indexOf(".",d+1)
}if(d>-1){d=g.indexOf(".",d+1)
}if(d>-1){d=g.indexOf(".",d+1)
}m=g.substring(d+1,g.length);
if(m.toLowerCase()==h.toLowerCase()){f=1
}m=g.substring(0,d);
if((d=m.lastIndexOf("."))>-1){m=m.substring(d+1,m.length);
k=(m*1)
}}if(f==0||_ufns==1){m=_uGC(l,"__utma="+_udh,";");
if((d=m.lastIndexOf("."))>9){_uns=m.substring(d+1,m.length);
_uns=(_uns*1)
}k++;if(_uns==0){_uns=1
}_ubd.cookie="__utmz="+_udh+"."+_ust+"."+_uns+"."+k+"."+h+"; path="+_utcp+"; "+j+_udo
}if(f==0||_ufns==1){return"&utmcn=1"
}else{return"&utmcr=1"
}}function _uRef(){if(_ur=="0"||_ur==""||_ur=="-"){return""
}var b=0,d,a,e;
if((b=_ur.indexOf("://"))<0){return""
}d=_ur.substring(b+3,_ur.length);
if(d.indexOf("/")>-1){a=d.substring(d.indexOf("/"),d.length);
if(a.indexOf("?")>-1){a=a.substring(0,a.indexOf("?"))
}d=d.substring(0,d.indexOf("/"))
}d=d.toLowerCase();
e=d;if((b=e.indexOf(":"))>-1){e=e.substring(0,b)
}for(var c=0;
c<_uRno.length;
c++){if((b=e.indexOf(_uRno[c].toLowerCase()))>-1&&e.length==(b+_uRno[c].length)){_ufno=1;
break}}if(d.indexOf("www.")==0){d=d.substring(4,d.length)
}return"utmccn=(referral)|utmcsr="+_uEC(d)+"|utmcct="+_uEC(a)+"|utmcmd=referral"
}function _uOrg(c){if(_ur=="0"||_ur==""||_ur=="-"){return""
}var b=0,e,a;
if((b=_ur.indexOf("://"))<0){return""
}e=_ur.substring(b+3,_ur.length);
if(e.indexOf("/")>-1){e=e.substring(0,e.indexOf("/"))
}for(var d=0;
d<_uOsr.length;
d++){if(e.toLowerCase().indexOf(_uOsr[d].toLowerCase())>-1){if((b=_ur.indexOf("?"+_uOkw[d]+"="))>-1||(b=_ur.indexOf("&"+_uOkw[d]+"="))>-1){a=_ur.substring(b+_uOkw[d].length+2,_ur.length);
if((b=a.indexOf("&"))>-1){a=a.substring(0,b)
}for(var f=0;
f<_uOno.length;
f++){if(_uOno[f].toLowerCase()==a.toLowerCase()){_ufno=1;
break}}if(c){return _uEC(a)
}else{return"utmccn=(organic)|utmcsr="+_uEC(_uOsr[d])+"|utmctr="+_uEC(a)+"|utmcmd=organic"
}}}}return""
}function _uBInfo(){var a="-",f="-",e="-",h="-",d="-",g=1;
var b=navigator;
if(self.screen){a=screen.width+"x"+screen.height;
f=screen.colorDepth+"-bit"
}else{if(self.java){var c=java.awt.Toolkit.getDefaultToolkit();
var k=c.getScreenSize();
a=k.width+"x"+k.height
}}if(b.language){e=b.language.toLowerCase()
}else{if(b.browserLanguage){e=b.browserLanguage.toLowerCase()
}}g=b.javaEnabled()?1:0;
if(_uflash){h=_uFlash()
}if(_ubd.characterSet){d=_uES(_ubd.characterSet)
}else{if(_ubd.charset){d=_uES(_ubd.charset)
}}return"&utmcs="+d+"&utmsr="+a+"&utmsc="+f+"&utmul="+e+"&utmje="+g+"&utmfl="+h
}function __utmSetTrans(){var j;
if(_ubd.getElementById){j=_ubd.getElementById("utmtrans")
}else{if(_ubd.utmform&&_ubd.utmform.utmtrans){j=_ubd.utmform.utmtrans
}}if(!j){return
}var d=j.value.split("UTM:");
var g,b,k;
if(_userv==0||_userv==2){g=new Array()
}if(_userv==1||_userv==2){b=new Array();
k=_uGCS()
}for(var m=0;
m<d.length;
m++){d[m]=_uTrim(d[m]);
if(d[m].charAt(0)!="T"&&d[m].charAt(0)!="I"){continue
}var a=Math.round(Math.random()*2147483647);
if(!_utsp||_utsp==""){_utsp="|"
}var h=d[m].split(_utsp),n="";
if(h[0].charAt(0)=="T"){n="&utmt=tran&utmn="+a;
h[1]=_uTrim(h[1]);
if(h[1]&&h[1]!=""){n+="&utmtid="+_uES(h[1])
}h[2]=_uTrim(h[2]);
if(h[2]&&h[2]!=""){n+="&utmtst="+_uES(h[2])
}h[3]=_uTrim(h[3]);
if(h[3]&&h[3]!=""){n+="&utmtto="+_uES(h[3])
}h[4]=_uTrim(h[4]);
if(h[4]&&h[4]!=""){n+="&utmttx="+_uES(h[4])
}h[5]=_uTrim(h[5]);
if(h[5]&&h[5]!=""){n+="&utmtsp="+_uES(h[5])
}h[6]=_uTrim(h[6]);
if(h[6]&&h[6]!=""){n+="&utmtci="+_uES(h[6])
}h[7]=_uTrim(h[7]);
if(h[7]&&h[7]!=""){n+="&utmtrg="+_uES(h[7])
}h[8]=_uTrim(h[8]);
if(h[8]&&h[8]!=""){n+="&utmtco="+_uES(h[8])
}}else{n="&utmt=item&utmn="+a;
h[1]=_uTrim(h[1]);
if(h[1]&&h[1]!=""){n+="&utmtid="+_uES(h[1])
}h[2]=_uTrim(h[2]);
if(h[2]&&h[2]!=""){n+="&utmipc="+_uES(h[2])
}h[3]=_uTrim(h[3]);
if(h[3]&&h[3]!=""){n+="&utmipn="+_uES(h[3])
}h[4]=_uTrim(h[4]);
if(h[4]&&h[4]!=""){n+="&utmiva="+_uES(h[4])
}h[5]=_uTrim(h[5]);
if(h[5]&&h[5]!=""){n+="&utmipr="+_uES(h[5])
}h[6]=_uTrim(h[6]);
if(h[6]&&h[6]!=""){n+="&utmiqt="+_uES(h[6])
}}if((_userv==0||_userv==2)&&_uSP()){g[m]=new Image(1,1);
g[m].src=_ugifpath+"?utmwv="+_uwv+n;
g[m].onload=function(){_uVoid()
}}if((_userv==1||_userv==2)&&_uSP()){b[m]=new Image(1,1);
b[m].src=_ugifpath2+"?utmwv="+_uwv+n+"&utmac="+_uacct+"&utmcc="+k;
b[m].onload=function(){_uVoid()
}}}return
}function _uFlash(){var f="-",n=navigator;
if(n.plugins&&n.plugins.length){for(var ii=0;
ii<n.plugins.length;
ii++){if(n.plugins[ii].name.indexOf("Shockwave Flash")!=-1){f=n.plugins[ii].description.split("Shockwave Flash ")[1];
break}}}else{if(window.ActiveXObject){for(var ii=10;
ii>=2;
ii--){try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");
if(fl){f=ii+".0";
break}}catch(e){}}}}return f
}function __utmLinker(e,g){if(!_ulink){return
}var d,f,q="-",o="-",n="-",r="-",m="-",s="-";
var t=_ubd.cookie;
if(!e||e==""){return
}var j=e.indexOf("?");
var u=e.indexOf("#");
if(t){q=_uES(_uGC(t,"__utma="+_udh,";"));
o=_uES(_uGC(t,"__utmb="+_udh,";"));
n=_uES(_uGC(t,"__utmc="+_udh,";"));
r=_uES(_uGC(t,"__utmx="+_udh,";"));
m=_uES(_uGC(t,"__utmz="+_udh,";"));
s=_uES(_uGC(t,"__utmv="+_udh,";"));
f=(_uHash(q+o+n+r+m+s)*1)+(_udh*1);
d="__utma="+q+"&__utmb="+o+"&__utmc="+n+"&__utmx="+r+"&__utmz="+m+"&__utmv="+s+"&__utmk="+f
}if(d){if(g&&u>-1){return
}if(g){_udl.href=e+"#"+d
}else{if(j==-1&&u==-1){_udl.href=e+"?"+d
}else{if(u==-1){_udl.href=e+"&"+d
}else{if(j==-1){_udl.href=e.substring(0,u-1)+"?"+d+e.substring(u)
}else{_udl.href=e.substring(0,u-1)+"&"+d+e.substring(u)
}}}}}else{_udl.href=e
}}function __utmLinkPost(l,g){if(!_ulink){return
}var d,e,q="-",o="-",n="-",r="-",m="-",s="-";
var t=_ubd.cookie;
if(!l||!l.action){return
}var j=l.action.indexOf("?");
var u=l.action.indexOf("#");
if(t){q=_uES(_uGC(t,"__utma="+_udh,";"));
o=_uES(_uGC(t,"__utmb="+_udh,";"));
n=_uES(_uGC(t,"__utmc="+_udh,";"));
r=_uES(_uGC(t,"__utmx="+_udh,";"));
m=_uES(_uGC(t,"__utmz="+_udh,";"));
s=_uES(_uGC(t,"__utmv="+_udh,";"));
e=(_uHash(q+o+n+r+m+s)*1)+(_udh*1);
d="__utma="+q+"&__utmb="+o+"&__utmc="+n+"&__utmx="+r+"&__utmz="+m+"&__utmv="+s+"&__utmk="+e
}if(d){if(g&&u>-1){return
}if(g){l.action+="#"+d
}else{if(j==-1&&u==-1){l.action+="?"+d
}else{if(u==-1){l.action+="&"+d
}else{if(j==-1){l.action=l.action.substring(0,u-1)+"?"+d+l.action.substring(u)
}else{l.action=l.action.substring(0,u-1)+"&"+d+l.action.substring(u)
}}}}}return
}function __utmSetVar(a){if(!a||a==""){return
}if(!_udo||_udo==""){_udh=_uDomain();
if(_udn&&_udn!=""){_udo=" domain="+_udn+";"
}}if(!_uVG()){return
}var e=Math.round(Math.random()*2147483647);
_ubd.cookie="__utmv="+_udh+"."+_uES(a)+"; path="+_utcp+"; expires="+_uNx()+";"+_udo;
var d="&utmt=var&utmn="+e;
if((_userv==0||_userv==2)&&_uSP()){var b=new Image(1,1);
b.src=_ugifpath+"?utmwv="+_uwv+d;
b.onload=function(){_uVoid()
}}if((_userv==1||_userv==2)&&_uSP()){var c=new Image(1,1);
c.src=_ugifpath2+"?utmwv="+_uwv+d+"&utmac="+_uacct+"&utmcc="+_uGCS();
c.onload=function(){_uVoid()
}}}function _uGCS(){var b,d="",a=_ubd.cookie;
if((b=_uGC(a,"__utma="+_udh,";"))!="-"){d+=_uES("__utma="+b+";+")
}if((b=_uGC(a,"__utmb="+_udh,";"))!="-"){d+=_uES("__utmb="+b+";+")
}if((b=_uGC(a,"__utmc="+_udh,";"))!="-"){d+=_uES("__utmc="+b+";+")
}if((b=_uGC(a,"__utmx="+_udh,";"))!="-"){d+=_uES("__utmx="+b+";+")
}if((b=_uGC(a,"__utmz="+_udh,";"))!="-"){d+=_uES("__utmz="+b+";+")
}if((b=_uGC(a,"__utmv="+_udh,";"))!="-"){d+=_uES("__utmv="+b+";")
}if(d.charAt(d.length-1)=="+"){d=d.substring(0,d.length-1)
}return d
}function _uGC(a,h,f){if(!a||a==""||!h||h==""||!f||f==""){return"-"
}var d,e,b,g="-";
d=a.indexOf(h);
b=h.indexOf("=")+1;
if(d>-1){e=a.indexOf(f,d);
if(e<0){e=a.length
}g=a.substring((d+b),e)
}return g
}function _uDomain(){if(!_udn||_udn==""||_udn=="none"){_udn="";
return 1
}if(_udn=="auto"){var a=_ubd.domain;
if(a.substring(0,4)=="www."){a=a.substring(4,a.length)
}_udn=a
}_udn=_udn.toLowerCase();
if(_uhash=="off"){return 1
}return _uHash(_udn)
}function _uHash(f){if(!f||f==""){return 1
}var b=0,e=0;
for(var a=f.length-1;
a>=0;a--){var j=parseInt(f.charCodeAt(a));
b=((b<<6)&268435455)+j+(j<<14);
if((e=b&266338304)!=0){b=(b^(e>>21))
}}return b
}function _uFixA(h,g,f){if(!h||h==""||!g||g==""||!f||f==""){return"-"
}var d=_uGC(h,"__utma="+_udh,g);
var b=0,e=0;
if((e=d.lastIndexOf("."))>9){_uns=d.substring(e+1,d.length);
_uns=(_uns*1)+1;
d=d.substring(0,e);
if((e=d.lastIndexOf("."))>7){b=d.substring(e+1,d.length);
d=d.substring(0,e)
}if((e=d.lastIndexOf("."))>5){d=d.substring(0,e)
}d+="."+b+"."+f+"."+_uns
}return d
}function _uTrim(a){if(!a||a==""){return""
}while((a.charAt(0)==" ")||(a.charAt(0)=="\n")||(a.charAt(0,1)=="\r")){a=a.substring(1,a.length)
}while((a.charAt(a.length-1)==" ")||(a.charAt(a.length-1)=="\n")||(a.charAt(a.length-1)=="\r")){a=a.substring(0,a.length-1)
}return a
}function _uEC(b){var c="";
if(!b||b==""){return""
}for(var a=0;
a<b.length;
a++){if(b.charAt(a)==" "){c+="+"
}else{c+=b.charAt(a)
}}return c
}function __utmVisitorCode(k){var j=0,g=0,e=0,h=0,b=31;
var d=_uGC(_ubd.cookie,"__utma="+_udh,";");
if((e=d.indexOf(".",0))<0){return
}if((h=d.indexOf(".",e+1))>0){j=d.substring(e+1,h)
}else{return""
}if((e=d.indexOf(".",h+1))>0){g=d.substring(h+1,e)
}else{return""
}if(k){return j
}else{var l=new Array("A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z","1","2","3","4","5","6","7","8","9");
return l[j>>28&b]+l[j>>23&b]+l[j>>18&b]+l[j>>13&b]+"-"+l[j>>8&b]+l[j>>3&b]+l[((j&7)<<2)+(g>>30&3)]+l[g>>25&b]+l[g>>20&b]+"-"+l[g>>15&b]+l[g>>10&b]+l[g>>5&b]+l[g&b]
}}function _uIN(d){if(!d){return false
}for(var a=0;
a<d.length;
a++){var b=d.charAt(a);
if((b<"0"||b>"9")&&(b!=".")){return false
}}return true
}function _uES(b,a){if(typeof(encodeURIComponent)=="function"){if(a){return encodeURI(b)
}else{return encodeURIComponent(b)
}}else{return escape(b)
}}function _uUES(a){if(typeof(decodeURIComponent)=="function"){return decodeURIComponent(a)
}else{return unescape(a)
}}function _uVG(){if((_udn.indexOf("www.google.")==0||_udn.indexOf(".google.")==0||_udn.indexOf("google.")==0)&&_utcp=="/"&&_udn.indexOf("google.org")==-1){return false
}return true
}function _uSP(){var a=100;
if(_usample){a=_usample
}if(a>=100||a<=0){return true
}return((__utmVisitorCode(1)%10000)<(a*100))
}function urchinPathCopy(a){var l=document,j,f,n,e,m,k,q,g,b;
k=new Array("a","b","c","v","x","z");
g=_uDomain();
if(_udn&&_udn!=""){b=" domain="+_udn+";"
}j=_uNx()+";";
f=new Date();
f.setTime(f.getTime()+(_utimeout*1000));
f=f.toGMTString()+";";
n=new Date();
n.setTime(n.getTime()+(_ucto*1000));
n=n.toGMTString()+";";
for(e=0;
e<6;e++){q=" expires=";
if(e==1){q+=f
}else{if(e==2){q=""
}else{if(e==5){q+=n
}else{q+=j
}}}m=_uGC(l.cookie,"__utm"+k[e]+"="+g,";");
if(m!="-"){l.cookie="__utm"+k[e]+"="+m+"; path="+a+";"+q+b
}}}function _uCO(){if(!_utk||_utk==""||_utk.length<10){return
}var b="www.google.com";
if(_utk.charAt(0)=="!"){b="analytics.corp.google.com"
}_ubd.cookie="GASO="+_utk+"; path="+_utcp+";"+_udo;
var a=document.createElement("script");
a.type="text/javascript";
a.id="_gasojs";
a.src="https://"+b+"/analytics/reporting/overlay_js?gaso="+_utk+"&"+Math.random();
document.getElementsByTagName("head")[0].appendChild(a)
}function _uGT(){var c=location.hash,b;
if(c&&c!=""&&c.indexOf("#gaso=")==0){b=_uGC(c,"gaso=","&")
}else{b=_uGC(_ubd.cookie,"GASO=",";")
}return b
}var _utk=_uGT();
if(_utk&&_utk!=""&&_utk.length>10){if(window.addEventListener){window.addEventListener("load",_uCO,false)
}else{if(window.attachEvent){window.attachEvent("onload",_uCO)
}}}function _uNx(){return(new Date((new Date()).getTime()+63072000000)).toGMTString()
}vc.attach(".iwiwWidget",{".isLogin:onclick":function(b){console.log(b);
b.preventDefault();
b.stopPropagation();
var a=jQuery(b.currentTarget);
jQuery.ajax({url:a.attr("href"),async:false,success:function(){jQuery.get(a.attr("href"),function(){document.location=document.location
})},error:function(g,k,h){vc.InfoBar.hide();
var j=jQuery(g.responseXML).find("msg");
var f=j.attr("code");
if(f==="2773"||f==="6969"){var c=j.text().split("|");
console.log(c[0]);
console.log(c[1]);
var e=c[1];
var d=new vc.URI(a.attr("href"));
d.setQueryParam("token",e);
a.attr("href",unescape(d.toString()));
if(c[0]==="false"){iwiw.popupLogin({loginUrl:a.attr("data-href"),success:function(){jQuery.get(a.attr("href"),function(){document.location=document.location
})}})}else{jQuery.get(a.attr("href"),function(){document.location=document.location
})}}}})
}},{eager:true});
