function convertEntities(b){var d,a;d=function(c){if(/&[^;]+;/.test(c)){var f=document.createElement("div");f.innerHTML=c;return!f.firstChild?c:f.firstChild.nodeValue}return c};if(typeof b==="string"){return d(b)}else{if(typeof b==="object"){for(a in b){if(typeof b[a]==="string"){b[a]=d(b[a])}}}}return b};;
/*
 * webTicker 1.3
 * Examples and documentation at: 
 * http://jonmifsud.com
 * 2011 Jonathan Mifsud
 * Version: 1.2 (26-JUNE-2011)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires:
 * jQuery v1.4.2 or later
 * 
 */
(function($){var globalSettings=new Array();var methods={init:function(settings){settings=jQuery.extend({travelocity:0.05,direction:1,moving:true},settings);globalSettings[jQuery(this).attr('id')]=settings;return this.each(function(){var $strip=jQuery(this);$strip.addClass("newsticker")
var stripWidth=0;var $mask=$strip.wrap("<div class='mask'></div>");$mask.after("<span class='tickeroverlay-left'>&nbsp;</span><span class='tickeroverlay-right'>&nbsp;</span>")
var $tickercontainer=$strip.parent().wrap("<div class='tickercontainer'></div>");$strip.find("li").each(function(i){stripWidth+=jQuery(this,i).outerWidth(true);});$strip.width(stripWidth+200);function scrollnews(spazio,tempo){if(settings.direction==1)
$strip.animate({left:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("left",'0');scrollnews(width,defTiming);});else
$strip.animate({right:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("right",'0');scrollnews(width,defTiming);});}
var first=$strip.children().first();var travel=first.outerWidth(true);var timing=travel/settings.travelocity;scrollnews(travel,timing);$strip.hover(function(){jQuery(this).stop();},function(){if(globalSettings[jQuery(this).attr('id')].moving){var offset=jQuery(this).offset();var first=$strip.children().first();var width=first.outerWidth(true);var residualSpace;if(settings.direction==1)residualSpace=parseInt(jQuery(this).css('left').replace('px',''))+width;else residualSpace=parseInt(jQuery(this).css('right').replace('px',''))+width;var residualTime=residualSpace/settings.travelocity;scrollnews(residualSpace,residualTime);}});});},stop:function(){if(globalSettings[jQuery(this).attr('id')].moving){globalSettings[jQuery(this).attr('id')].moving=false;return this.each(function(){jQuery(this).stop();});}},cont:function(){if(!(globalSettings[jQuery(this).attr('id')].moving)){globalSettings[jQuery(this).attr('id')].moving=true;var settings=globalSettings[jQuery(this).attr('id')];return this.each(function(){var $strip=jQuery(this);function scrollnews(spazio,tempo){if(settings.direction==1)
$strip.animate({left:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("left",'0');scrollnews(width,defTiming);});else
$strip.animate({right:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("right",'0');scrollnews(width,defTiming);});}
var offset=jQuery(this).offset();var first=$strip.children().first();var width=first.outerWidth(true);var residualSpace;if(settings.direction==1)residualSpace=parseInt(jQuery(this).css('left').replace('px',''))+width;else residualSpace=parseInt(jQuery(this).css('right').replace('px',''))+width;var residualTime=residualSpace/settings.travelocity;scrollnews(residualSpace,residualTime);});}}};$.fn.webTicker=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments);}else{$.error('Method '+method+' does not exist on jQuery.webTicker');}};})(jQuery);;function LiveSearch(){var resultsElement='';var searchBoxes='';}
LiveSearch.activeRequests=new Array();LiveSearch.init=function(){jQuery("body").append('<ul class="search_results"></ul>');this.resultsElement=jQuery('ul').filter('.search_results');this.resultsElement.hide();LiveSearch.searchBoxes=jQuery("input").filter("[name='s']");LiveSearch.searchBoxes.keyup(LiveSearch.handleKeypress);if(!LiveSearch.searchBoxes.outerHeight){alert(DavesWordPressLiveSearchConfig.outdatedJQuery);}
LiveSearch.searchBoxes.parents('form').attr('autocomplete','off');jQuery("html").click(LiveSearch.hideResults);LiveSearch.searchBoxes.add(this.resultsElement).click(function(e){e.stopPropagation();});jQuery(window).resize(function(){var wasVisible=LiveSearch.resultsElement.is(':visible');LiveSearch.positionResults(this);if(!wasVisible){LiveSearch.resultsElement.hide();}});}
LiveSearch.positionResults=function(){if(LiveSearch.searchBoxes.size()===0){return false;}
var searchBoxPosition=LiveSearch.searchBoxes.offset();searchBoxPosition.left+=parseInt(DavesWordPressLiveSearchConfig.xOffset,10);this.resultsElement.css('left',searchBoxPosition.left);this.resultsElement.css('display','block');switch(DavesWordPressLiveSearchConfig.resultsDirection)
{case'up':var topOffset=searchBoxPosition.top-this.resultsElement.height();break;case'down':default:var topOffset=searchBoxPosition.top+LiveSearch.searchBoxes.outerHeight();}
this.resultsElement.css('top',topOffset+'px');};LiveSearch.handleAJAXResults=function(e){LiveSearch.activeRequests.pop();if(e){resultsSearchTerm=e.searchTerms;if(resultsSearchTerm!=LiveSearch.searchBoxes.val()){if(LiveSearch.activeRequests.length==0){LiveSearch.removeIndicator();}
return;}
var resultsShownFor=jQuery("ul").filter(".search_results").children("input[name=query]").val();if(resultsShownFor!=""&&resultsSearchTerm==resultsShownFor)
{if(LiveSearch.activeRequests.length==0){LiveSearch.removeIndicator();}
return;}
var searchResultsList=jQuery("ul").filter(".search_results");searchResultsList.empty();searchResultsList.append('<input type="hidden" name="query" value="'+resultsSearchTerm+'" />');if(e.results.length==0){LiveSearch.hideResults();}
else{for(var postIndex=0;postIndex<e.results.length;postIndex++){var searchResult=e.results[postIndex];if(searchResult.post_title!==undefined){var renderedResult='';if(DavesWordPressLiveSearchConfig.showThumbs=="true"&&searchResult.attachment_thumbnail){var liClass="post_with_thumb";}
else{var liClass="";}
renderedResult+='<li class="'+liClass+'">';if(DavesWordPressLiveSearchConfig.showThumbs=="true"&&searchResult.attachment_thumbnail){renderedResult+='<img src="'+searchResult.attachment_thumbnail+'" class="post_thumb" />';}
renderedResult+='<a href="'+searchResult.permalink+'">'+searchResult.post_title+'</a>';if(searchResult.post_price!=undefined){renderedResult+='<p class="price">'+searchResult.post_price+'</p>';}
if(DavesWordPressLiveSearchConfig.showExcerpt=="true"&&searchResult.post_excerpt){renderedResult+='<p class="excerpt clearfix">'+searchResult.post_excerpt+'</p>';}
if(e.displayPostMeta){renderedResult+='<p class="meta clearfix" id="daves-wordpress-live-search_author">Posted by '+searchResult.post_author_nicename+'</p><p id="daves-wordpress-live-search_date" class="meta clearfix">'+searchResult.post_date+'</p>';}
renderedResult+='<div class="clearfix"></div></li>';searchResultsList.append(renderedResult);}}
if(searchResult.show_more!=undefined&&searchResult.show_more&&DavesWordPressLiveSearchConfig.showMoreResultsLink=="true"){searchResultsList.append('<div class="clearfix search_footer"><a href="'+DavesWordPressLiveSearchConfig.blogURL+'/?s='+resultsSearchTerm+'">'+DavesWordPressLiveSearchConfig.viewMoreText+'</a></div>');}
LiveSearch.showResults();}
if(LiveSearch.activeRequests.length==0){LiveSearch.removeIndicator();}}};LiveSearch.handleKeypress=function(e){var delayTime=0;var term=LiveSearch.searchBoxes.val();setTimeout(function(){LiveSearch.runQuery(term);},delayTime);};LiveSearch.runQuery=function(terms){var srch=LiveSearch.searchBoxes.val();if(srch===""||srch.length<DavesWordPressLiveSearchConfig.minCharsToSearch){LiveSearch.hideResults();LiveSearch.removeIndicator();}
else{LiveSearch.displayIndicator();while(LiveSearch.activeRequests.length>0)
{var req=LiveSearch.activeRequests.pop();req.abort();}
var parameters={s:terms};var searchSource=jQuery("input").filter("[name='search_source']").val();if(searchSource!=undefined){parameters.search_source=searchSource;}
var lang=jQuery("input").filter("[name='lang']").val();if(lang!=undefined){parameters.lang=lang;}
parameters.action="dwls_search";var req=jQuery.get(DavesWordPressLiveSearchConfig.ajaxURL,parameters,LiveSearch.handleAJAXResults,"json");LiveSearch.activeRequests.push(req);}};LiveSearch.hideResults=function(){switch(DavesWordPressLiveSearchConfig.resultsDirection)
{case'up':jQuery("ul").filter(".search_results:visible").fadeOut();return;case'down':default:jQuery("ul").filter(".search_results:visible").slideUp();return;}};LiveSearch.showResults=function(){this.positionResults();switch(DavesWordPressLiveSearchConfig.resultsDirection)
{case'up':jQuery("ul").filter(".search_results:hidden").fadeIn();return;case'down':default:jQuery("ul").filter(".search_results:hidden").slideDown();return;}};LiveSearch.displayIndicator=function(){if(jQuery("#search_results_activity_indicator").size()===0){jQuery("body").append('<img id="search_results_activity_indicator" src="'+DavesWordPressLiveSearchConfig.indicatorURL+'" />');var searchBoxPosition=LiveSearch.searchBoxes.offset();jQuery("#search_results_activity_indicator").css('position','absolute');var indicatorY=(searchBoxPosition.top+((LiveSearch.searchBoxes.outerHeight()-LiveSearch.searchBoxes.innerHeight())/2)+'px');jQuery("#search_results_activity_indicator").css('top',indicatorY);var indicatorX=(searchBoxPosition.left+LiveSearch.searchBoxes.outerWidth()-DavesWordPressLiveSearchConfig.indicatorWidth-2)+'px';jQuery("#search_results_activity_indicator").css('left',indicatorX);}};LiveSearch.removeIndicator=function(){jQuery("#search_results_activity_indicator").remove();};jQuery(function(){LiveSearch.init();});;addComment={moveForm:function(d,f,i,c){var m=this,a,h=m.I(d),b=m.I(i),l=m.I("cancel-comment-reply-link"),j=m.I("comment_parent"),k=m.I("comment_post_ID");if(!h||!b||!l||!j){return}m.respondId=i;c=c||false;if(!m.I("wp-temp-form-div")){a=document.createElement("div");a.id="wp-temp-form-div";a.style.display="none";b.parentNode.insertBefore(a,b)}h.parentNode.insertBefore(b,h.nextSibling);if(k&&c){k.value=c}j.value=f;l.style.display="";l.onclick=function(){var n=addComment,e=n.I("wp-temp-form-div"),o=n.I(n.respondId);if(!e||!o){return}n.I("comment_parent").value="0";e.parentNode.insertBefore(o,e);e.parentNode.removeChild(e);this.style.display="none";this.onclick=null;return false};try{m.I("comment").focus()}catch(g){}return false},I:function(a){return document.getElementById(a)}};;
/*
 * webTicker 1.3
 * Examples and documentation at: 
 * http://jonmifsud.com
 * 2011 Jonathan Mifsud
 * Version: 1.2 (26-JUNE-2011)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires:
 * jQuery v1.4.2 or later
 * 
 */
(function($){var globalSettings=new Array();var methods={init:function(settings){settings=jQuery.extend({travelocity:0.05,direction:1,moving:true},settings);globalSettings[jQuery(this).attr('id')]=settings;return this.each(function(){var $strip=jQuery(this);$strip.addClass("newsticker")
var stripWidth=0;var $mask=$strip.wrap("<div class='mask'></div>");$mask.after("<span class='tickeroverlay-left'>&nbsp;</span><span class='tickeroverlay-right'>&nbsp;</span>")
var $tickercontainer=$strip.parent().wrap("<div class='tickercontainer'></div>");$strip.find("li").each(function(i){stripWidth+=jQuery(this,i).outerWidth(true);});$strip.width(stripWidth+200);function scrollnews(spazio,tempo){if(settings.direction==1)
$strip.animate({left:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("left",'0');scrollnews(width,defTiming);});else
$strip.animate({right:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("right",'0');scrollnews(width,defTiming);});}
var first=$strip.children().first();var travel=first.outerWidth(true);var timing=travel/settings.travelocity;scrollnews(travel,timing);$strip.hover(function(){jQuery(this).stop();},function(){if(globalSettings[jQuery(this).attr('id')].moving){var offset=jQuery(this).offset();var first=$strip.children().first();var width=first.outerWidth(true);var residualSpace;if(settings.direction==1)residualSpace=parseInt(jQuery(this).css('left').replace('px',''))+width;else residualSpace=parseInt(jQuery(this).css('right').replace('px',''))+width;var residualTime=residualSpace/settings.travelocity;scrollnews(residualSpace,residualTime);}});});},stop:function(){if(globalSettings[jQuery(this).attr('id')].moving){globalSettings[jQuery(this).attr('id')].moving=false;return this.each(function(){jQuery(this).stop();});}},cont:function(){if(!(globalSettings[jQuery(this).attr('id')].moving)){globalSettings[jQuery(this).attr('id')].moving=true;var settings=globalSettings[jQuery(this).attr('id')];return this.each(function(){var $strip=jQuery(this);function scrollnews(spazio,tempo){if(settings.direction==1)
$strip.animate({left:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("left",'0');scrollnews(width,defTiming);});else
$strip.animate({right:'-='+spazio},tempo,"linear",function(){$strip.children().last().after($strip.children().first());var first=$strip.children().first();var width=first.outerWidth(true);var defTiming=width/settings.travelocity;$strip.css("right",'0');scrollnews(width,defTiming);});}
var offset=jQuery(this).offset();var first=$strip.children().first();var width=first.outerWidth(true);var residualSpace;if(settings.direction==1)residualSpace=parseInt(jQuery(this).css('left').replace('px',''))+width;else residualSpace=parseInt(jQuery(this).css('right').replace('px',''))+width;var residualTime=residualSpace/settings.travelocity;scrollnews(residualSpace,residualTime);});}}};$.fn.webTicker=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments);}else{$.error('Method '+method+' does not exist on jQuery.webTicker');}};})(jQuery);;window.onresize=resize;function pageWidth(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null;}
function pageHeight(){var htmlheight=document.body.parentNode.scrollHeight;var windowheight=window.innerHeight;if(htmlheight<windowheight){return windowheight}
else{return htmlheight}}
function resize()
{jQuery('rightBackground').css('height',(pageHeight()+40)+"px");if(pageWidth()<955){jQuery('headerBox').css('left',"70px");jQuery('rightBackground').css('left',"380px");jQuery('rightBackground').css('width',"570px");}else{jQuery('headerBox').css('left',"auto");jQuery('headerBox').css('width',"570px");jQuery('rightBackground').css('left',"40%");jQuery('rightBackground').css('width',"60%");}}
jQuery(document).ready(function(){resize();});;
/*
 * jQuery Form Plugin
 * version: 2.84 (12-AUG-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}
var method,action,url,$form=this;if(typeof options=='function'){options={success:options};}
method=this.attr('method');action=this.attr('action');url=(typeof action==='string')?$.trim(action):'';url=url||window.location.href||'';if(url){url=(url.match(/^([^#]+)/)||[])[1];}
options=$.extend(true,{url:url,success:$.ajaxSettings.success,type:method||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}
if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}
var n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(n in options.data){if($.isArray(options.data[n])){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]});}}
else{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v});}}}
if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}
this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}
var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}
else{options.data=q;}
var callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});}
if(options.clearForm){callbacks.push(function(){$form.clearForm();});}
if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(oldSuccess,arguments);});}
else if(options.success){callbacks.push(options.success);}
options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form]);}};var fileInputs=$('input:file',this).length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')==mp||$form.attr('encoding')==mp);if(options.iframe!==false&&(fileInputs||options.iframe||multipart)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,function(){fileUpload(a);});}
else{fileUpload(a);}}
else{if($.browser.msie&&method=='get'){var ieMeth=$form[0].getAttribute('method');if(typeof ieMeth==='string')
options.type=ieMeth;}
$.ajax(options);}
this.trigger('form-submit-notify',[this,options]);return this;function fileUpload(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var useProp=!!$.fn.prop;if(a){for(i=0;i<a.length;i++){el=$(form[a[i].name]);el[useProp?'prop':'attr']('disabled',false);}}
if($(':input[name=submit],:input[id=submit]',form).length){alert('Error: Form elements must not have name or id of "submit".');return;}
s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+(new Date().getTime());if(s.iframeTarget){$io=$(s.iframeTarget);n=$io.attr('name');if(n==null)
$io.attr('name',id);else
id=n;}
else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />');$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}
io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;$io.attr('src',s.iframeSrc);xhr.error=e;s.error&&s.error.call(s.context,xhr,e,status);g&&$.event.trigger("ajaxError",[xhr,s,e]);s.complete&&s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}
if(g){$.event.trigger("ajaxSend",[xhr,s]);}
if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--;}
return;}
if(xhr.aborted){return;}
sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}
var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=frame.contentWindow?frame.contentWindow.document:frame.contentDocument?frame.contentDocument:frame.document;return doc;}
function doSubmit(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(!method){form.setAttribute('method','POST');}
if(a!=s.url){form.setAttribute('action',s.url);}
if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});}
if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);}
function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state.toLowerCase()=='uninitialized')
setTimeout(checkState,50);}
catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);timeoutHandle&&clearTimeout(timeoutHandle);timeoutHandle=undefined;}}
var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" />').attr('value',s.extraData[n]).appendTo(form)[0]);}}
if(!s.iframeTarget){$io.appendTo('body');io.attachEvent?io.attachEvent('onload',cb):io.addEventListener('load',cb,false);}
setTimeout(checkState,15);form.submit();}
finally{form.setAttribute('action',a);if(t){form.setAttribute('target',t);}else{$form.removeAttr('target');}
$(extraInputs).remove();}}
if(s.forceSync){doSubmit();}
else{setTimeout(doSubmit,10);}
var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return;}
try{doc=getDoc(io);}
catch(ex){log('cannot access response document: ',ex);e=SERVER_ABORT;}
if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');return;}
else if(e==SERVER_ABORT&&xhr){xhr.abort('server abort');return;}
if(!doc||doc.location.href==s.iframeSrc){if(!timedOut)
return;}
io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,false);var status='success',errMsg;try{if(timedOut){throw'timeout';}
var isXml=s.dataType=='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=='')){if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}}
var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)
s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}
var dt=s.dataType||'';var scr=/(json|script|text)/.test(dt.toLowerCase());if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}
else if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre){xhr.responseText=pre.textContent?pre.textContent:pre.innerHTML;}
else if(b){xhr.responseText=b.innerHTML;}}}
else if(s.dataType=='xml'&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}
try{data=httpData(xhr,s.dataType,s);}
catch(e){status='parsererror';xhr.error=errMsg=(e||status);}}
catch(e){log('error caught: ',e);status='error';xhr.error=errMsg=(e||status);}
if(xhr.aborted){log('upload aborted');status=null;}
if(xhr.status){status=(xhr.status>=200&&xhr.status<300||xhr.status===304)?'success':'error';}
if(status==='success'){s.success&&s.success.call(s.context,data,'success',xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s]);}
else if(status){if(errMsg==undefined)
errMsg=xhr.statusText;s.error&&s.error.call(s.context,xhr,status,errMsg);g&&$.event.trigger("ajaxError",[xhr,s,errMsg]);}
g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop");}
s.complete&&s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)
clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)
$io.remove();xhr.responseXML=null;},100);}
var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}
else{doc=(new DOMParser()).parseFromString(s,'text/xml');}
return(doc&&doc.documentElement&&doc.documentElement.nodeName!='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=type==='xml'||!type&&ct.indexOf('xml')>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror'){$.error&&$.error('parsererror');}
if(s&&s.dataFilter){data=s.dataFilter(data,type);}
if(typeof data==='string'){if(type==='json'||!type&&ct.indexOf('json')>=0){data=parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data);}}
return data;};}};$.fn.ajaxForm=function(options){if(this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}
log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}
return this.ajaxFormUnbind().bind('submit.form-plugin',function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options);}}).bind('click.form-plugin',function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(':submit');if(t.length==0){return;}
target=t[0];}
var form=this;form.clk=target;if(target.type=='image'){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset=='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}
setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic){var a=[];if(this.length===0){return a;}
var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els){return a;}
var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue;}
if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}
continue;}
v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:n,value:v});}}
if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}
return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return;}
var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=='undefined'||(v.constructor==Array&&!v.length)){continue;}
v.constructor==Array?$.merge(val,v):val.push(v);}
return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=true;}
if(successful&&(!n||el.disabled||t=='reset'||t=='button'||(t=='checkbox'||t=='radio')&&!el.checked||(t=='submit'||t=='image')&&el.form&&el.form.clk!=el||tag=='select'&&el.selectedIndex==-1)){return null;}
if(tag=='select'){var index=el.selectedIndex;if(index<0){return null;}
var a=[],ops=el.options;var one=(t=='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes['value']&&!(op.attributes['value'].specified))?op.text:op.value;}
if(one){return v;}
a.push(v);}}
return a;}
return $(el).val();};$.fn.clearForm=function(){return this.each(function(){$('input,select,textarea',this).clearFields();});};$.fn.clearFields=$.fn.clearInputs=function(){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag=='textarea'){this.value='';}
else if(t=='checkbox'||t=='radio'){this.checked=false;}
else if(tag=='select'){this.selectedIndex=-1;}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=='function'||(typeof this.reset=='object'&&!this.reset.nodeType)){this.reset();}});};$.fn.enable=function(b){if(b===undefined){b=true;}
return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select===undefined){select=true;}
return this.each(function(){var t=this.type;if(t=='checkbox'||t=='radio'){this.checked=select;}
else if(this.tagName.toLowerCase()=='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type=='select-one'){$sel.find('option').selected(false);}
this.selected=select;}});};function log(){var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log){window.console.log(msg);}
else if(window.opera&&window.opera.postError){window.opera.postError(msg);}};})(jQuery);;(function($){$(function(){try{if(typeof _wpcf7=='undefined'||_wpcf7===null)
_wpcf7={};_wpcf7=$.extend({cached:0},_wpcf7);$('div.wpcf7 > form').ajaxForm({beforeSubmit:function(formData,jqForm,options){jqForm.wpcf7ClearResponseOutput();jqForm.find('img.ajax-loader').css({visibility:'visible'});return true;},beforeSerialize:function(jqForm,options){jqForm.find('.wpcf7-use-title-as-watermark.watermark').each(function(i,n){$(n).val('');});return true;},data:{'_wpcf7_is_ajax_call':1},dataType:'json',success:function(data){var ro=$(data.into).find('div.wpcf7-response-output');$(data.into).wpcf7ClearResponseOutput();if(data.invalids){$.each(data.invalids,function(i,n){$(data.into).find(n.into).wpcf7NotValidTip(n.message);});ro.addClass('wpcf7-validation-errors');}
if(data.captcha)
$(data.into).wpcf7RefillCaptcha(data.captcha);if(data.quiz)
$(data.into).wpcf7RefillQuiz(data.quiz);if(1==data.spam)
ro.addClass('wpcf7-spam-blocked');if(1==data.mailSent){$(data.into).find('form').resetForm().clearForm();ro.addClass('wpcf7-mail-sent-ok');if(data.onSentOk)
$.each(data.onSentOk,function(i,n){eval(n)});}else{ro.addClass('wpcf7-mail-sent-ng');}
if(data.onSubmit)
$.each(data.onSubmit,function(i,n){eval(n)});$(data.into).find('.wpcf7-use-title-as-watermark.watermark').each(function(i,n){$(n).val($(n).attr('title'));});ro.append(data.message).slideDown('fast');}});$('div.wpcf7 > form').each(function(i,n){if(_wpcf7.cached)
$(n).wpcf7OnloadRefill();$(n).wpcf7ToggleSubmit();$(n).find('.wpcf7-acceptance').click(function(){$(n).wpcf7ToggleSubmit();});$(n).find('.wpcf7-exclusive-checkbox').each(function(i,n){$(n).find('input:checkbox').click(function(){$(n).find('input:checkbox').not(this).removeAttr('checked');});});$(n).find('.wpcf7-use-title-as-watermark').each(function(i,n){var input=$(n);input.val(input.attr('title'));input.addClass('watermark');input.focus(function(){if($(this).hasClass('watermark'))
$(this).val('').removeClass('watermark');});input.blur(function(){if(''==$(this).val())
$(this).val($(this).attr('title')).addClass('watermark');});});});}catch(e){}});$.fn.wpcf7ToggleSubmit=function(){return this.each(function(){var form=$(this);if(this.tagName.toLowerCase()!='form')
form=$(this).find('form').first();if(form.hasClass('wpcf7-acceptance-as-validation'))
return;var submit=form.find('input:submit');if(!submit.length)return;var acceptances=form.find('input:checkbox.wpcf7-acceptance');if(!acceptances.length)return;submit.removeAttr('disabled');acceptances.each(function(i,n){n=$(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked'))
submit.attr('disabled','disabled');});});};$.fn.wpcf7NotValidTip=function(message){return this.each(function(){var into=$(this);into.append('<span class="wpcf7-not-valid-tip">'+message+'</span>');$('span.wpcf7-not-valid-tip').mouseover(function(){$(this).fadeOut('fast');});into.find(':input').mouseover(function(){into.find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');});into.find(':input').focus(function(){into.find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');});});};$.fn.wpcf7OnloadRefill=function(){return this.each(function(){var url=$(this).attr('action');if(0<url.indexOf('#'))
url=url.substr(0,url.indexOf('#'));var id=$(this).find('input[name="_wpcf7"]').val();var unitTag=$(this).find('input[name="_wpcf7_unit_tag"]').val();$.getJSON(url,{_wpcf7_is_ajax_call:1,_wpcf7:id},function(data){if(data&&data.captcha)
$('#'+unitTag).wpcf7RefillCaptcha(data.captcha);if(data&&data.quiz)
$('#'+unitTag).wpcf7RefillQuiz(data.quiz);});});};$.fn.wpcf7RefillCaptcha=function(captcha){return this.each(function(){var form=$(this);$.each(captcha,function(i,n){form.find(':input[name="'+i+'"]').clearFields();form.find('img.wpcf7-captcha-'+i).attr('src',n);var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);form.find('input:hidden[name="_wpcf7_captcha_challenge_'+i+'"]').attr('value',match[1]);});});};$.fn.wpcf7RefillQuiz=function(quiz){return this.each(function(){var form=$(this);$.each(quiz,function(i,n){form.find(':input[name="'+i+'"]').clearFields();form.find(':input[name="'+i+'"]').siblings('span.wpcf7-quiz-label').text(n[0]);form.find('input:hidden[name="_wpcf7_quiz_answer_'+i+'"]').attr('value',n[1]);});});};$.fn.wpcf7ClearResponseOutput=function(){return this.each(function(){$(this).find('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');$(this).find('span.wpcf7-not-valid-tip').remove();$(this).find('img.ajax-loader').css({visibility:'hidden'});});};})(jQuery);;function si_captcha_refresh(img_id,form_id,type,securimage_url,securimage_show_url){var chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";var string_length=16;var prefix='';for(var i=0;i<string_length;i++){var rnum=Math.floor(Math.random()*chars.length);prefix+=chars.substring(rnum,rnum+1);}
document.getElementById('si_code_'+form_id).value=prefix;var si_image_ctf=securimage_show_url+prefix;if(img_id=='si_image_side_login'){document.getElementById('si_image_side_login').src=si_image_ctf;}else{document.getElementById('si_image_'+form_id).src=si_image_ctf;}
if(type=='flash'){var si_flash_url=securimage_url+'/securimage_play.swf?prefix='+prefix+'&bgColor1=#8E9CB6&bgColor2=#fff&iconColor=#000&roundedCorner=5&audio='+securimage_url+'/securimage_play.php?prefix='+prefix;var si_flash='<object type="application/x-shockwave-flash" data="'+si_flash_url+'" id="SecurImage_as3_'+form_id+'" width="19" height="19">';si_flash+='<param name="allowScriptAccess" value="sameDomain" />';si_flash+='<param name="allowFullScreen" value="false" />';si_flash+='<param name="movie" value="'+si_flash_url+'" />';si_flash+='<param name="quality" value="high" />';si_flash+='<param name="bgcolor" value="#ffffff" />';si_flash+='</object>';document.getElementById('si_flash_'+form_id).innerHTML=si_flash;return false;}
if(type=='wav'){var si_aud=securimage_url+'/securimage_play.php?prefix='+prefix;document.getElementById('si_aud_'+form_id).href=si_aud;}}
 $.noConflict();
