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};;jQuery(document).ready(function($){var data={link:window.location.href,title:jQuery('title').html()};jQuery.post(base_url_sociable+'includes/async_request.php',data,function(response){eval(response);});});;oPlugin={PluginWidth:80,PluginHeight:1,SlideBig:'Small',LabelBgColor:'#f7f7f7',BgColor:'#fefefe',Color:'#6A6A6A',FontSize:'11',LinkColor:'#587cc8',Timer:null,LastBox:null,Browser:{Explorer:!!(navigator.appName=='Microsoft Internet Explorer'),Other:!!!(navigator.appName=='Microsoft Internet Explorer'),Chrome:!!(navigator.userAgent.toLowerCase().indexOf('chrome')>-1)},boxDialog:function(sId){if(document.getElementById('content_'+sId).style.display=='block'){if(oPlugin.LastBox){if(document.getElementById('boxDialog_'+oPlugin.LastBox)){jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;}
jQuery('#content_'+oPlugin.LastBox).show('fast');document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}
if(document.getElementById('boxDialog_'+sId)){jQuery('#boxDialog_'+sId).show('slow');document.getElementById('boxDialog_'+sId).style.zIndex=10;}
jQuery('#content_'+sId).hide('fast');oPlugin.LastBox=sId;document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';}else{oPlugin.LastBox=null;if(document.getElementById('boxDialog_'+sId)){jQuery('#boxDialog_'+sId).hide('slow');}
jQuery('#content_'+sId).show('fast');document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}},boxDialogShow:function(sId){if(document.getElementById('content_'+sId).style.display=='block'){if(oPlugin.LastBox){if(document.getElementById('boxDialog_'+oPlugin.LastBox)){jQuery('#boxDialog_'+oPlugin.LastBox).hide('slow');document.getElementById('boxDialog_'+oPlugin.LastBox).style.zIndex=0;}
jQuery('#content_'+oPlugin.LastBox).show('fast');document.getElementById('arrow_'+oPlugin.LastBox).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}
if(document.getElementById('boxDialog_'+sId)){jQuery('#boxDialog_'+sId).show('slow');document.getElementById('boxDialog_'+sId).style.zIndex=10;}
jQuery('#content_'+sId).hide('fast');oPlugin.LastBox=sId;document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';}},hideShowToolbar:function(){if(document.getElementById('wpPlugin-MainFrame').style.display=='none'){jQuery('#wpPlugin-MainFrame').show(1500);document.getElementById('wpSocciable').className='wpSocciable'+oPlugin.SlideBig+'';document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)";document.getElementById('wpSocciableClose').className='wpSocciableClose';document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";document.getElementById('wpSocciable').style.marginLeft='-20px';document.getElementById('wpSocciableClose').style.marginLeft='-20px';}else{document.getElementById('wpPlugin-MainFrame').style.display='none';document.getElementById('wpSocciable').className='wpSocciable'+oPlugin.SlideBig+'-c';document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable-c.png)";document.getElementById('wpSocciableClose').className='wpSocciableClose-c';document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close-c.png)";}},focus:function(obj){obj.style.opacity='1';obj.style.filter="alpha(opacity='100')";},blur:function(obj){obj.style.opacity='0.4';obj.style.filter="alpha(opacity='40')";},refreshPosition:function(){var scrolltop=jQuery('html,body').scrollTop();if(oPlugin.Browser.Chrome){scrolltop=document.body.scrollTop;}
var div=jQuery('#wpPlugin-BOX');var start=jQuery(div).offset().top;var p=jQuery(window).scrollTop();jQuery(div).css('position','fixed');},toolbarStart:function(sID_Parent,sMove,sHeight,sWidth,sBgColor,sLabelBgColor,sSlideBig,sColor,sFontSize,sLinkColor){if(sLinkColor){oPlugin.LinkColor=sLinkColor;}
if(sFontSize){oPlugin.FontSize=sFontSize;}
if(sColor){oPlugin.Color=sColor;}
if(sBgColor){oPlugin.BgColor=sBgColor;}
if(sSlideBig){oPlugin.SlideBig="Big";}
if(sLabelBgColor){oPlugin.LabelBgColor=sLabelBgColor;}
if(sWidth){oPlugin.PluginWidth=sWidth;}
if(sHeight){oPlugin.PluginHeight=sHeight;}
if(sMove){window.onscroll=function(e){if(!oPlugin.Timer){oPlugin.Timer=setInterval("oPlugin.refreshPosition();",50);}}}
jQuery(document).ready(function(){document.getElementById('wpPlugin-BOX').style.marginLeft=(21-jQuery("body").css("padding-left").replace('px',''))+'px';});var Base='<div align="center" class="wpPlugin-MainFrame" id="wpPlugin-BOX"  style="width:'+(oPlugin.PluginWidth+2)+'px;position:absolute;margin-top:40px;display:block;height:'+oPlugin.PluginHeight+'px;" >'+'<a href="http://blogplay.com" target="_blank" ><div id="wpSocciable" class="wpSocciable'+oPlugin.SlideBig+'" ></div></a>'+'<div id="wpSocciableClose" class="wpSocciableClose"   onclick="oPlugin.hideShowToolbar();"></div>'+'<table id="wpPlugin-MainFrame"  class="shape" cellspacing="0" cellpadding="0"  width="100%">'+'<tr>'+'<td class="top-left" /><td class="top" /><td class="top-right" />'+'</tr>'+'<tr valign="top"  >'+'<td class="left" />'+'<td align="left" class="frame" style="background-color:'+oPlugin.BgColor+';width:'+(oPlugin.PluginWidth-7+7)+'px;" >'+'<ul class="toolbar" style="color:'+oPlugin.Color+';font-size:'+oPlugin.FontSize+'px;width:'+(oPlugin.PluginWidth-7+7)+'px;" id="toolbar" >'+'</ul>'+'</td>'+'<td class="right" />'+'</tr>'+'<tr>'+'<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+'</tr>'+'</table></div>';document.getElementById(sID_Parent).innerHTML=Base+document.getElementById(sID_Parent).innerHTML;oPlugin.InitializeShowObj='wpPlugin-MainFrame';document.getElementById(oPlugin.InitializeShowObj).style.display='none';oPlugin.InitializeShow=setInterval("jQuery('#'+oPlugin.InitializeShowObj).show(3000);clearInterval(oPlugin.InitializeShow);",1000);document.getElementById('wpPlugin-BOX').style.top='20px';document.getElementById('wpSocciable').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-sociable.png)";document.getElementById('wpSocciableClose').style.backgroundImage="url("+jQuery("#skyscraper_dir").val()+"images/toolbar/slide-close.png)";},CreateGoToTop:function(sId,sTitle,sContent){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){if(oPlugin.Browser.Chrome){document.body.scrollTop=0;}
else{jQuery('html,body').scrollTop(0);}};oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);oLi_Content=oPlugin.createElement('div','content_'+sId,'content',oLi_Functions,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';oLi_Content.style.display='block';oLi_Content.style.cursor='pointer';oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},CreateSimpleNode:function(sId,sTitle,sContent,display){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){if(document.getElementById('content_'+sId).style.display=='none'){document.getElementById('content_'+sId).style.display='block';document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png';}else{document.getElementById('content_'+sId).style.display='none';document.getElementById('arrow_'+sId).src=jQuery("#skyscraper_dir").val()+'images/toolbar/arrow_s.png';}};if(display){arrow='';}else{arrow='_s';}
oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow'+arrow+'.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);oLi_Content=oPlugin.createElement('div','content_'+sId,'content',oLi_Functions,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';if(display){oLi_Content.style.display='block';}else{oLi_Content.style.display='none';}
oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},CreateGoToHome:function(sId,sTitle,sContent){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){document.location.href='http://'+document.location.href.split("/")[2];};oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);oLi_Content=oPlugin.createElement('div','content_'+sId,'content',oLi_Functions,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';oLi_Content.style.display='block';oLi_Content.style.cursor='pointer';oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},CreateNode:function(sId,sTitle,sContent,sContentDialog,sContentDialogStyle,dialogHeight,dialogWidth){oLi=oPlugin.createElement('li',sId,'item',null,'',null);var oLi_Functions;oLi_Functions=Array();oLi_Functions[0]=new Array();oLi_Functions[0][0]='click';oLi_Functions[0][1]=function(){oPlugin.boxDialog(sId);};oLabel=oPlugin.createElement('div','title_'+sId,'title',oLi_Functions,'<img id="arrow_'+sId+'" src="'+jQuery("#skyscraper_dir").val()+'images/toolbar/arrow.png" /><span>'+sTitle+'</span>',null);oLabel.style.background=oPlugin.LabelBgColor;oLi.appendChild(oLabel);if(sContentDialog){var oLi_BoxShape='<table class="shape" cellspacing="0" cellpadding="0" height="'+(dialogHeight)+'" width="100%"  >'+'<tr>'+'<td class="top-left" /><td class="top" /><td class="top-right" />'+'</tr>'+'<tr valign="top">'+'<td class="left"  style="font-size:10px;" >&nbsp;</td>'+'<td align="left"  style="background-color:'+oPlugin.BgColor+';width:'+(dialogWidth+50)+'px;" class="frame"  >';oLi_BoxShape+='';oLi_BoxShape+='<span style="color:'+oPlugin.Color+';position:absolute;margin-left:';if(oPlugin.Browser.Explorer){oLi_BoxShape+=(oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth-12)+'px;';}else{oLi_BoxShape+=(oPlugin.PluginWidth+dialogWidth-oPlugin.PluginWidth)+'px;';}
oLi_BoxShape+='margin-top:5px;font-size:11px;font-weight:bold;cursor:pointer;border:solid 1px '+oPlugin.Color+';padding:2px;line-height:9px;padding-top:0px;padding-bottom:2px;" onclick="oPlugin.boxDialog(\''+sId+'\')" >x</span>';oLi_BoxShape+='<div class="boxTitleContent" style="font-size:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';font-weight:bold;background:'+oPlugin.LabelBgColor+';';if(oPlugin.Browser.Explorer){oLi_BoxShape+='width:'+(dialogWidth+8)+'px;';}else{oLi_BoxShape+='width:'+(dialogWidth+13)+'px;';}
oLi_BoxShape+='" >&nbsp;&nbsp;&nbsp;&nbsp;'+sTitle+'</div>';switch(sContentDialogStyle){case'List':oLi_BoxShape+='<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';oLi_BoxShape+='<ul align="left" >';for(i=0;i<sContentDialog.length;i++){oLi_BoxShape+='<li style="position:relative;color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;">';oLi_BoxShape+='<span style="color:'+oPlugin.Color+';" >'+sContentDialog[i][0]+'</span>&nbsp;&nbsp;';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][1]+'</span>&nbsp;&nbsp;';oLi_BoxShape+='<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][2]+'</a>';oLi_BoxShape+='</li>';}
oLi_BoxShape+='</ul>';oLi_BoxShape+='</div>';break;case'Urls':oLi_BoxShape+='<div align="left" style="height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;padding-bottom:0px;width:100%;float:none;clear:both;" >';oLi_BoxShape+='<ul align="left" >';for(i=0;i<sContentDialog.length;i++){oLi_BoxShape+='<li style="color:#c1c1c1;margin-left:-20px;margin-bottom:5px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';oLi_BoxShape+='<a href="'+sContentDialog[i]+'" style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i]+'</a>';oLi_BoxShape+='</li>';}
oLi_BoxShape+='</ul>';oLi_BoxShape+='</div>';break;case'Notice':oLi_BoxShape+='<ul  style="margin-top:10px;margin-bottom:10px;margin-left:10px;padding-left:15px;width:'+(dialogWidth-50)+'px;" >';for(i=0;i<sContentDialog.length;i++){oLi_BoxShape+='<li style="font-size:'+oPlugin.FontSize+'px;';if(i!=sContentDialog.length-1){oLi_BoxShape+='padding-bottom:10px;border-bottom:solid 1px #c1c1c1;';}
oLi_BoxShape+='list-style:disc;font-weight:bold;color:#c1c1c1;">';oLi_BoxShape+='<a style="color:'+oPlugin.LinkColor+';" >'+sContentDialog[i][0]+'</a> ';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+'; filter: alpha(opacity=40);opacity:0.4;" >'+sContentDialog[i][1]+'</span><br/>';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';filter: alpha(opacity=70);opacity:0.7;" >'+sContentDialog[i][2]+'';oLi_BoxShape+=' - <a style="color:'+oPlugin.LinkColor+';" href="'+sContentDialog[i][3]+'" >'+sContentDialog[i][3]+'</a></span><br/>';oLi_BoxShape+='<span style="height:'+(oPlugin.FontSize+2)+'px;color:'+oPlugin.Color+';opacity:0.4;filter: alpha(opacity=40);" >'+sContentDialog[i][4]+'</span>';oLi_BoxShape+='</li>';}
oLi_BoxShape+='</ul>';break;case'Item':oLi_BoxShape+='<div align="left" style="opacity:0.8;filter: alpha(opacity=80);height:'+(dialogHeight)+'px;margin:10px;margin-bottom:0px;margin-top:5px;padding-bottom:0px;width:100%;float:none;clear:both;" >';oLi_BoxShape+='<ul align="left" >';oLi_BoxShape+='<li style="color:#c1c1c1;margin-left:-20px;font-size:'+oPlugin.FontSize+'px;padding-bottom:5px;list-style:disc;font-weight:bold;" >';oLi_BoxShape+='<span style="color:'+oPlugin.Color+';" >'+sContentDialog+'</span>';oLi_BoxShape+='</li>';oLi_BoxShape+='</ul>';oLi_BoxShape+='</div>';break;default:oLi_BoxShape+='<div align="center" style="height:'+(dialogHeight)+'px;width:100%;" ><div  style="height:'+(dialogHeight)+'px;color:'+oPlugin.Color+';font-size:'+(oPlugin.FontSize-1)+'px;margin:5px;padding:0px;width:95%;float:none;clear:both;" >';oLi_BoxShape+=sContentDialog;oLi_BoxShape+='</div></div>';break;}
oLi_BoxShape+='<td class="right" style="font-size:10px;" >&nbsp;</td>'+'</tr>'+'<tr>'+'<td class="bottom-left" /><td class="bottom" /><td class="bottom-right" />'+'</tr>'+'</table>';oLi_BoxDialog=oPlugin.createElement('div','boxDialog_'+sId,'boxDialog',null,oLi_BoxShape,null);oLi_BoxDialog.align='left';if(dialogWidth){oLi_BoxDialog.style.width=(dialogWidth+10)+'px';}
if(dialogHeight){if(oPlugin.Browser.Explorer){oLi_BoxDialog.style.height=(dialogHeight+100)+'px';}else{oLi_BoxDialog.style.height=(dialogHeight+10)+'px';}}
oLi_BoxDialog.style.display='none';oLi_BoxDialog.style.left=(oPlugin.PluginWidth-7+7)+'px';oLi_BoxDialog.style.marginTop='-35px';oLi.appendChild(oLi_BoxDialog);}
oLi_Content=oPlugin.createElement('div','content_'+sId,'content',null,sContent,null);if(sContent==''){oLi_Content.style.lineHeight='1px';oLi_Content.style.height='1px';oLi_Content.innerHTML='';}
oLi_Content.align='center';oLi_Content.style.display='block';oLi.appendChild(oLi_Content);document.getElementById('toolbar').appendChild(oLi);},createElement:function(sType,sId,sClass,aFunctions,sHtml,oParent){var oElement;oElement=document.createElement(sType);oElement.setAttribute('id',sId);oElement.className=sClass;if(sHtml)
{oElement.innerHTML=sHtml;}
if(aFunctions)
{for(iFunctions=0;iFunctions<aFunctions.length;iFunctions++)
{if(oPlugin.Browser.Other)
{oElement.addEventListener(aFunctions[iFunctions][0],eval(aFunctions[iFunctions][1]),false);}
if(oPlugin.Browser.Explorer)
{oElement['on'+aFunctions[iFunctions][0]]=aFunctions[iFunctions][1];}}}
if(oParent)
{oParent.appendChild(oElement);}else{return oElement;}}};function twitter(url,title){return'<a href="https://twitter.com/share" data-text="'+title+' (via http://www.fueto.com)" data-url="'+url+'" class="twitter-share-button" data-count="horizontal">Tweet</a><scr'+'ipt type="text/javascript" src="//platform.twitter.com/widgets.js"></scr'+'ipt>';}
function facebook(url){return'<iframe src="//www.facebook.com/plugins/like.php?href='+url+'&send=false&layout=button_count&show_faces=false&action=like&colorscheme=light&font" scrolling="no" frameborder="0" style="border:none; overflow:hidden;height:32px;width:115px" allowTransparency="true"></iframe>'}
function plus(url){return'<g:plusone annotation="bubble" href="'+url+'" size="medium"></g:plusone>';}
function counters(){jQuery("span#socialstats").each(function(i){var url=jQuery(this).attr("url");var title=jQuery(this).attr("title");var append='<table border=0"><tr>';append+='<td valign="top">'+twitter(url,title)+'</td>';append+='<td valign="top">'+plus(url)+'</td>';append+='<td valign="baseline">'+facebook(url)+'</td>';append+='</tr></table>';jQuery(this).html(append);});};function more(obj,id){var button;var box;var sociable;box=document.getElementById("sociable-"+id+"");button=obj;sociable=document.getElementById("sociable");sociable.style.postion="absloute";sociable.style.top=button.offsetTop;sociable.style.left=button.offsetLeft;box.style.display="";}
var t;function hide_sociable(id,close){if(close==null){t=setTimeout(function(){hide_sociable(id,true)},1000);}else{var box;box=document.getElementById("sociable-"+id+"");box.style.display="none";}}
function get_object(id){var object=null;if(document.layers){object=document.layers[id];}else if(document.all){object=document.all[id];}else if(document.getElementById){object=document.getElementById(id);}
return object;}
function is_child_of(parent,child){if(child!=null){while(child.parentNode){if((child=child.parentNode)==parent){return true;}}}
return false;}
function fixOnMouseOut(element,event,id){clearTimeout(t);var current_mouse_target=null;if(event.toElement){current_mouse_target=event.toElement;}else if(event.relatedTarget){current_mouse_target=event.relatedTarget;}
if(!is_child_of(element,current_mouse_target)&&element!=current_mouse_target){hide_sociable(id)}}
window.___gcfg={lang:'en-US'};(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();;function AddToFavorites()
{var title=document.title;var url=location.href;if(window.sidebar)
window.sidebar.addPanel(title,url,'');else if(window.opera&&window.print)
{var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}
else if(document.all)
window.external.AddFavorite(url,title);};jQuery(document).ready(function()
{slide(".sub-menu",25,8,16,.6);});function slide(navigation_id,pad_out,pad_in,time,multiplier)
{var list_elements=navigation_id+" li";var link_elements=list_elements+" a";var timer=0;jQuery(list_elements).each(function(i)
{jQuery(this).css("margin-left","-180px");timer=(timer*multiplier+time);jQuery(this).animate({marginLeft:"0"},timer);jQuery(this).animate({marginLeft:"10px"},timer);jQuery(this).animate({marginLeft:"0"},timer);});jQuery(link_elements).each(function(i)
{jQuery(this).hover(function()
{jQuery(this).animate({paddingLeft:pad_out},150);},function()
{jQuery(this).animate({paddingLeft:pad_in},150);});});};;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);;;(function($){var l=location.href.replace(/#.*/,'');var g=$.localScroll=function(a){$('body').localScroll(a)};g.defaults={duration:1e3,axis:'y',event:'click',stop:true,target:window,reset:true};g.hash=function(a){if(location.hash){a=$.extend({},g.defaults,a);a.hash=false;if(a.reset){var e=a.duration;delete a.duration;$(a.target).scrollTo(0,a);a.duration=e}i(0,location,a)}};$.fn.localScroll=function(b){b=$.extend({},g.defaults,b);return b.lazy?this.bind(b.event,function(a){var e=$([a.target,a.target.parentNode]).filter(d)[0];if(e)i(a,e,b)}):this.find('a,area').filter(d).bind(b.event,function(a){i(a,this,b)}).end().end();function d(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==l&&(!b.filter||$(this).is(b.filter))}};function i(a,e,b){var d=e.hash.slice(1),f=document.getElementById(d)||document.getElementsByName(d)[0];if(!f)return;if(a)a.preventDefault();var h=$(b.target);if(b.lock&&h.is(':animated')||b.onBefore&&b.onBefore.call(b,a,f,h)===false)return;if(b.stop)h.stop(true);if(b.hash){var j=f.id==d?'id':'name',k=$('<a> </a>').attr(j,d).css({position:'absolute',top:$(window).scrollTop(),left:$(window).scrollLeft()});f[j]='';$('body').prepend(k);location=e.hash;k.remove();f[j]=d}h.scrollTo(f,b).trigger('notify.serialScroll',[f])}})(jQuery);;;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu;},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this));}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)
this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});})(jQuery);;jQuery(function($){$(document).ready(function()
{$('a.scrollto').click(function(){$.scrollTo(0,500);return false;});});$(document).ready(function()
{$.localScroll({queue:true,duration:1000});});$(document).ready(function(){$('ul.sf-menu').superfish({delay:100,animation:{opacity:'show',height:'show'},speed:'normal',autoArrows:true,dropShadows:true});});});;(function(a){var A=function(s,v){var f=a.extend({},a.fn.nivoSlider.defaults,v),g={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false},e=a(s);e.data("nivo:vars",g);e.css("position","relative");e.addClass("nivoSlider");var j=e.children();j.each(function(){var b=a(this),h="";if(!b.is("img")){if(b.is("a")){b.addClass("nivo-imageLink");h=b}b=b.find("img:first")}var c=b.width();if(c==0)c=b.attr("width");var o=b.height();if(o==0)o=b.attr("height");c>e.width()&&e.width(c);o>e.height()&&e.height(o);h!=""&&h.css("display","none");b.css("display","none");g.totalSlides++});if(f.startSlide>0){if(f.startSlide>=g.totalSlides)f.startSlide=g.totalSlides-1;g.currentSlide=f.startSlide}g.currentImage=a(j[g.currentSlide]).is("img")?a(j[g.currentSlide]):a(j[g.currentSlide]).find("img:first");a(j[g.currentSlide]).is("a")&&a(j[g.currentSlide]).css("display","block");e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat');for(var k=0;k<f.slices;k++){var p=Math.round(e.width()/f.slices);k==f.slices-1?e.append(a('<div class="nivo-slice"></div>').css({left:p*k+"px",width:e.width()-p*k+"px"})):e.append(a('<div class="nivo-slice"></div>').css({left:p*k+"px",width:p+"px"}))}e.append(a('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:f.captionOpacity}));if(g.currentImage.attr("title")!=""){k=g.currentImage.attr("title");if(k.substr(0,1)=="#")k=a(k).html();a(".nivo-caption p",e).html(k);a(".nivo-caption",e).fadeIn(f.animSpeed)}var l=0;if(!f.manualAdvance&&j.length>1)l=setInterval(function(){r(e,j,f,false)},f.pauseTime);if(f.directionNav){e.append('<div class="nivo-directionNav"><a class="nivo-prevNav">Prev</a><a class="nivo-nextNav">Next</a></div>');if(f.directionNavHide){a(".nivo-directionNav",e).hide();e.hover(function(){a(".nivo-directionNav",e).show()},function(){a(".nivo-directionNav",e).hide()})}a("a.nivo-prevNav",e).live("click",function(){if(g.running)return false;clearInterval(l);l="";g.currentSlide-=2;r(e,j,f,"prev")});a("a.nivo-nextNav",e).live("click",function(){if(g.running)return false;clearInterval(l);l="";r(e,j,f,"next")})}if(f.controlNav){p=a('<div class="nivo-controlNav"></div>');e.append(p);for(k=0;k<j.length;k++)if(f.controlNavThumbs){var t=j.eq(k);t.is("img")||(t=t.find("img:first"));f.controlNavThumbsFromRel?p.append('<a class="nivo-control" rel="'+k+'"><img src="'+t.attr("rel")+'" alt="" /></a>'):p.append('<a class="nivo-control" rel="'+k+'"><img src="'+t.attr("src").replace(f.controlNavThumbsSearch,f.controlNavThumbsReplace)+'" alt="" /></a>')}else p.append('<a class="nivo-control" rel="'+k+'">'+(k+1)+"</a>");a(".nivo-controlNav a:eq("+g.currentSlide+")",e).addClass("active");a(".nivo-controlNav a",e).live("click",function(){if(g.running)return false;if(a(this).hasClass("active"))return false;clearInterval(l);l="";e.css("background",'url("'+g.currentImage.attr("src")+'") no-repeat');g.currentSlide=a(this).attr("rel")-1;r(e,j,f,"control")})}f.keyboardNav&&a(window).keypress(function(b){if(b.keyCode=="37"){if(g.running)return false;clearInterval(l);l="";g.currentSlide-=2;r(e,j,f,"prev")}if(b.keyCode=="39"){if(g.running)return false;clearInterval(l);l="";r(e,j,f,"next")}});f.pauseOnHover&&e.hover(function(){g.paused=true;clearInterval(l);l=""},function(){g.paused=false;if(l==""&&!f.manualAdvance)l=setInterval(function(){r(e,j,f,false)},f.pauseTime)});e.bind("nivo:animFinished",function(){g.running=false;a(j).each(function(){a(this).is("a")&&a(this).css("display","none")});a(j[g.currentSlide]).is("a")&&a(j[g.currentSlide]).css("display","block");if(l==""&&!g.paused&&!f.manualAdvance)l=setInterval(function(){r(e,j,f,false)},f.pauseTime);f.afterChange.call(this)});var w=function(b,h){var c=0;a(".nivo-slice",b).each(function(){var o=a(this),d=Math.round(b.width()/h.slices);c==h.slices-1?o.css("width",b.width()-d*c+"px"):o.css("width",d+"px");c++})},r=function(b,h,c,o){var d=b.data("nivo:vars");d&&d.currentSlide==d.totalSlides-1&&c.lastSlide.call(this);if((!d||d.stop)&&!o)return false;c.beforeChange.call(this);if(o){o=="prev"&&b.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat');o=="next"&&b.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat')}else b.css("background",'url("'+d.currentImage.attr("src")+'") no-repeat');d.currentSlide++;if(d.currentSlide==d.totalSlides){d.currentSlide=0;c.slideshowEnd.call(this)}if(d.currentSlide<0)d.currentSlide=d.totalSlides-1;d.currentImage=a(h[d.currentSlide]).is("img")?a(h[d.currentSlide]):a(h[d.currentSlide]).find("img:first");if(c.controlNav){a(".nivo-controlNav a",b).removeClass("active");a(".nivo-controlNav a:eq("+d.currentSlide+")",b).addClass("active")}if(d.currentImage.attr("title")!=""){var u=d.currentImage.attr("title");if(u.substr(0,1)=="#")u=a(u).html();a(".nivo-caption",b).css("display")=="block"?a(".nivo-caption p",b).fadeOut(c.animSpeed,function(){a(this).html(u);a(this).fadeIn(c.animSpeed)}):a(".nivo-caption p",b).html(u);a(".nivo-caption",b).fadeIn(c.animSpeed)}else a(".nivo-caption",b).fadeOut(c.animSpeed);var m=0;a(".nivo-slice",b).each(function(){var i=Math.round(b.width()/c.slices);a(this).css({height:"0px",opacity:"0",background:'url("'+d.currentImage.attr("src")+'") no-repeat -'+(i+m*i-i)+"px 0%"});m++});if(c.effect=="random"){h=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","slideInRight","slideInLeft"];d.randAnim=h[Math.floor(Math.random()*(h.length+1))];if(d.randAnim==undefined)d.randAnim="fade"}if(c.effect.indexOf(",")!=-1){h=c.effect.split(",");d.randAnim=h[Math.floor(Math.random()*h.length)];if(d.randAnim==undefined)d.randAnim="fade"}d.running=true;if(c.effect=="sliceDown"||c.effect=="sliceDownRight"||d.randAnim=="sliceDownRight"||c.effect=="sliceDownLeft"||d.randAnim=="sliceDownLeft"){var n=0;m=0;w(b,c);h=a(".nivo-slice",b);if(c.effect=="sliceDownLeft"||d.randAnim=="sliceDownLeft")h=a(".nivo-slice",b)._reverse();h.each(function(){var i=a(this);i.css({top:"0px"});m==c.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},100+n):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed)},100+n);n+=50;m++})}else if(c.effect=="sliceUp"||c.effect=="sliceUpRight"||d.randAnim=="sliceUpRight"||c.effect=="sliceUpLeft"||d.randAnim=="sliceUpLeft"){m=n=0;w(b,c);h=a(".nivo-slice",b);if(c.effect=="sliceUpLeft"||d.randAnim=="sliceUpLeft")h=a(".nivo-slice",b)._reverse();h.each(function(){var i=a(this);i.css({bottom:"0px"});m==c.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},100+n):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed)},100+n);n+=50;m++})}else if(c.effect=="sliceUpDown"||c.effect=="sliceUpDownRight"||d.randAnim=="sliceUpDown"||c.effect=="sliceUpDownLeft"||d.randAnim=="sliceUpDownLeft"){var x=m=n=0;w(b,c);h=a(".nivo-slice",b);if(c.effect=="sliceUpDownLeft"||d.randAnim=="sliceUpDownLeft")h=a(".nivo-slice",b)._reverse();h.each(function(){var i=a(this);if(m==0){i.css("top","0px");m++}else{i.css("bottom","0px");m=0}x==c.slices-1?setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},100+n):setTimeout(function(){i.animate({height:"100%",opacity:"1.0"},c.animSpeed)},100+n);n+=50;x++})}else if(c.effect=="fold"||d.randAnim=="fold"){m=n=0;w(b,c);a(".nivo-slice",b).each(function(){var i=a(this),y=i.width();i.css({top:"0px",height:"100%",width:"0px"});m==c.slices-1?setTimeout(function(){i.animate({width:y,opacity:"1.0"},c.animSpeed,"",function(){b.trigger("nivo:animFinished")})},100+n):setTimeout(function(){i.animate({width:y,opacity:"1.0"},c.animSpeed)},100+n);n+=50;m++})}else if(c.effect=="fade"||d.randAnim=="fade"){var q=a(".nivo-slice:first",b);q.css({height:"100%",width:b.width()+"px"});q.animate({opacity:"1.0"},c.animSpeed*2,"",function(){b.trigger("nivo:animFinished")})}else if(c.effect=="slideInRight"||d.randAnim=="slideInRight"){q=a(".nivo-slice:first",b);q.css({height:"100%",width:"0px",opacity:"1"});q.animate({width:b.width()+"px"},c.animSpeed*2,"",function(){b.trigger("nivo:animFinished")})}else if(c.effect=="slideInLeft"||d.randAnim=="slideInLeft"){q=a(".nivo-slice:first",b);q.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});q.animate({width:b.width()+"px"},c.animSpeed*2,"",function(){q.css({left:"0px",right:""});b.trigger("nivo:animFinished")})}},z=function(b){this.console&&typeof console.log!="undefined"&&console.log(b)};this.stop=function(){if(!a(s).data("nivo:vars").stop){a(s).data("nivo:vars").stop=true;z("Stop Slider")}};this.start=function(){if(a(s).data("nivo:vars").stop){a(s).data("nivo:vars").stop=false;z("Start Slider")}};f.afterLoad.call(this)};a.fn.nivoSlider=function(s){return this.each(function(){var v=a(this);if(!v.data("nivoslider")){var f=new A(this,s);v.data("nivoslider",f)}})};a.fn.nivoSlider.defaults={effect:"random",slices:15,animSpeed:500,pauseTime:3E3,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};a.fn._reverse=[].reverse})(jQuery);
