(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild)})};return this};if(!$.browser.version)$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1]})(jQuery);
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY,track=function(ev){cX=ev.pageX;cY=ev.pageY},compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}},delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])},handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this)try{p=p.parentNode}catch(e){p=this};if(p==this)return false;var ev=jQuery.extend({},e),ob=this;if(ob.hoverIntent_t)ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1)ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1)ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}};return this.mouseover(handleHover).mouseout(handleHover)}})(jQuery);
(function($){$.fn.supposition=function(){var $w=$(window),_offset=function(dir){return window[dir=='y'?'pageYOffset':'pageXOffset']||document.documentElement&&document.documentElement[dir=='y'?'scrollTop':'scrollLeft']||document.body[dir=='y'?'scrollTop':'scrollLeft']},onInit=function(){$topNav=$('li',this);var cZ=parseInt($topNav.css('z-index'))+$topNav.length;$topNav.each(function(){$(this).css({zIndex:--cZ})})},onHide=function(){this.css({marginTop:'',marginLeft:''})},onBeforeShow=function(){this.each(function(){var $u=$(this);$u.css('display','block');var menuWidth=$u.width(),parentWidth=$u.parents('ul').width(),totalRight=$w.width()+_offset('x'),menuRight=$u.offset().left+menuWidth;if(menuRight>totalRight)$u.css('margin-left',($u.parents('ul').length==1?totalRight-menuRight:-(menuWidth+parentWidth))+'px');var windowHeight=$w.height(),offsetTop=$u.offset().top,menuHeight=$u.height(),baseline=windowHeight+_offset('y'),expandUp=(offsetTop+menuHeight>baseline);if(expandUp)$u.css('margin-top',baseline-(menuHeight+offsetTop));$u.css('display','none')})};return this.each(function(){var o=$.fn.superfish.o[this.serial],_onInit=o.onInit,_onBeforeShow=o.onBeforeShow,_onHide=o.onHide;$.extend($.fn.superfish.o[this.serial],{onInit:function(){onInit.call(this);_onInit.call(this)},onBeforeShow:function(){onBeforeShow.call(this);_onBeforeShow.call(this)},onHide:function(){onHide.call(this);_onHide.call(this)}})})}})(jQuery);
(function($){$.fn.supersubs=function(options){var opts=$.extend({},$.fn.supersubs.defaults,options);return this.each(function(){var $$=$(this),o=$.meta?$.extend({},opts,$$.data()):opts,fontsize=$('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:'absolute',top:'-999em',width:'auto'}).appendTo($$).width();$('#menu-fontsize').remove();$ULs=$$.find('ul');$ULs.each(function(i){var $ul=$ULs.eq(i),$LIs=$ul.children(),$As=$LIs.children('a'),liFloat=$LIs.css('white-space','nowrap').css('float'),emWidth=$ul.add($LIs).add($As).css({'float':'none',width:'auto'}).end().end()[0].clientWidth/fontsize;emWidth+=o.extraWidth;if(emWidth>o.maxWidth){emWidth=o.maxWidth}else if(emWidth<o.minWidth)emWidth=o.minWidth;emWidth+='em';$ul.css('width',emWidth);$LIs.css({'float':liFloat,width:'100%','white-space':'normal'}).each(function(){var $childUl=$('>ul',this),offsetDirection=$childUl.css('left')!==undefined?'left':'right';$childUl.css(offsetDirection,emWidth)})})})};$.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(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,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(){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);
Drupal.behaviors.fusionEqualheights=function(context){if(jQuery().equalHeights){$("#header-top-wrapper div.equal-heights div.content").equalHeights();$("#header-group-wrapper div.equal-heights div.content").equalHeights();$("#preface-top-wrapper div.equal-heights div.content").equalHeights();$("#preface-bottom div.equal-heights div.content").equalHeights();$("#sidebar-first div.equal-heights div.content").equalHeights();$("#content-top div.equal-heights div.content").equalHeights();$("#content-region div.equal-heights div.content").equalHeights();$("#content-bottom div.equal-heights div.content").equalHeights();$("#node-top div.equal-heights div.content").equalHeights();$("#node-bottom div.equal-heights div.content").equalHeights();$("#sidebar-last div.equal-heights div.content").equalHeights();$("#postscript-top div.equal-heights div.content").equalHeights();$("#postscript-bottom-wrapper div.equal-heights div.content").equalHeights();$("#footer-wrapper div.equal-heights div.content").equalHeights()}};Drupal.behaviors.fusionIE6fixes=function(context){if($.browser.msie&&($.browser.version<7)){$('form input.form-submit').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')});$('#primary-menu ul.sf-menu li.expanded').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')});$('.sf-menu li').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')});$('#search input#search_header').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')})}};Drupal.behaviors.fusionOverlabel=function(context){if(jQuery().overlabel)$("div.fusion-horiz-login label").overlabel()};Drupal.behaviors.fusionSuperfish=function(context){$("#primary-menu ul.sf-menu").superfish({hoverClass:'sfHover',delay:250,animation:{opacity:'show',height:'show'},speed:'fast',autoArrows:false,dropShadows:false,disableHI:true}).supposition()};Drupal.behaviors.fusionSuperfishBlocks=function(context){$("div.block ul.sf-menu").superfish({hoverClass:'sfHover',delay:250,animation:{opacity:'show',height:'show'},speed:'fast',autoArrows:false,dropShadows:false,disableHI:true}).supposition()};Drupal.behaviors.fusionGridMask=function(context){if($('body.grid-mask-enabled').size()>0){var grid_width_pos=parseInt($('body').attr('class').indexOf('grid-width-'))+11,grid_width=$('body').attr('class').substring(grid_width_pos,grid_width_pos+2),grid='<div id="grid-mask-overlay" class="full-width"><div class="row">';for(i=1;i<=grid_width;i++)grid+='<div class="block grid'+grid_width+'-1"><div class="inner"></div></div>';grid+='</div></div>';$('body.grid-mask-enabled').prepend(grid);$('#grid-mask-overlay .row').addClass('grid'+grid_width+'-'+grid_width);$('#grid-mask-overlay .block .inner').height($('body').height())}};Drupal.behaviors.fusionGridMaskToggle=function(context){if($('body.grid-mask-enabled').size()>0){$('body.grid-mask-enabled').prepend('<div id="grid-mask-toggle">grid</div>');$('div#grid-mask-toggle').toggle(function(){$(this).toggleClass('grid-on');$('body').toggleClass('grid-mask')},function(){$(this).toggleClass('grid-on');$('body').toggleClass('grid-mask')})}};Drupal.behaviors.fusionPanelsShowEdit=function(context){if($("#panels-edit-display-form").size()>0||$("#page-manager-edit").size()>0){$("#panels-edit-display-form").parents('.row, .block').css("overflow","visible");$("#page-manager-edit").parents('.row, .block').css("overflow","visible")}};Drupal.behaviors.fusionScreenshotpreview=function(context){if($('span.preview-icon').size()>0){var xOffset=20,yOffset=0;$('span.preview-icon').hover(function(e){var img_class=this.id,caption=$(this).parent().text();$('body').append('<div id="screenshot"><div class="screenshot-preview '+img_class+'" alt="preview"></div><div class="screenshot-caption">'+caption+'</div></div>');$("#screenshot").hide();$("#screenshot").css("left",(e.pageX+xOffset)+"px").css("top",(e.pageY+yOffset)+"px");var img=new Image();img.onload=function(){var caption_height=parseFloat($("#screenshot .screenshot-caption").css("height"));$("#screenshot").css("height",img.height+caption_height);$("#screenshot").css("width",img.width);$("#screenshot ."+img_class).css("height",img.height);$("#screenshot ."+img_class).css("width",img.width);$("#screenshot .screenshot-caption").css("width",img.width-10);$("#screenshot").fadeIn("fast")};img.src=$("."+img_class).css("background-image").replace(/^url|[\(\)\"]/g,'')},function(){$("#screenshot").remove()});$("span.preview-icon").mousemove(function(e){$("#screenshot").css("left",(e.pageX+xOffset)+"px").css("top",(e.pageY+yOffset)+"px")})}};
Drupal.behaviors.acquia_prosperRoundedCorner=function(context){$(".prosper-rounded-title h2.block-title").corner("top 5px");$(".prosper-shoppingcart h2.block-title").corner("top 5px");$(".prosper-menu-list h2.block-title").corner("top 5px");$(".prosper-grayborder-darkbackground .inner").corner("7px")};
(function($)
{$.fn.formly=function(options,callback)
{var settings={'theme':'Base','onBlur':true};if(options)
{$.extend(settings,options);}
var formName=this.attr('id');if(!formName)
{formName=Math.ceil(Math.random()*5000);this.attr('id',formName);}
this.append('<div style="clear:both;"></div><div class="formlyAlerts"></div>');this.addClass('formlyWrapper-'+settings['theme']);if(this.attr('width'))
{this.css('width',this.attr('width'));}
if(this.attr('subtitle')||this.attr('title'))
{this.prepend('<hr/>');}
if(this.attr('subtitle'))
{this.prepend('<h2>'+this.attr('subtitle')+'</h2>');}
if(this.attr('title'))
{this.prepend('<h1>'+this.attr('title')+'</h1>');}
this.children().each(function(index,item)
{if($(item).attr('place'))
{if($(item).attr('type')=='password')
{var hID='pwPlace-'+$(item).attr('name');$(item).after('<input type="text" id="'+hID+'" value="'+$(item).attr('place')+'" class="formlyPWPlaces" />');$('#'+hID).css('color','#bbb');$(item).hide();$('#'+hID).show();$('#'+hID).focus(function()
{$('#'+hID).hide();$(item).show();$(item).focus();});$(item).blur(function()
{if(!$(item).val())
{$('#'+hID).show();$(item).hide();}});}
else
{$(item).val($(item).attr('place'));$(item).css('color','#bbb');}}
$(item).blur(function()
{if(!$(item).val()||$(item).val()==$(item).attr('pre-fix'))
{if($(item).attr('type')!='password')
{$(item).val($(item).attr('place'));$(item).css('color','#bbb');}}
if($(item).attr('pre-fix'))
{var originalVal=$(item).val();var thePrefix=$(item).attr('pre-fix');if(thePrefix.length==1)
{if(originalVal.charAt(0)!=thePrefix&&$(item).val()!=$(item).attr('place'))
{$(item).val(thePrefix+originalVal);}}
else
{if(originalVal.indexOf(thePrefix)==-1&&$(item).val()!=$(item).attr('place'))
{$(item).val(thePrefix+originalVal);}}}
if(settings['onBlur'])
{if($(item).attr('validate'))
{functions.validate(item);}
if($(item).attr('require'))
{functions.require(item);}
if($(item).attr('match'))
{functions.match(item);}}});$(item).focus(function()
{if($(item).attr('place'))
{if($(item).val()==$(item).attr('place'))
{$(item).val('');$(item).css('color','');}}
if($(item).attr('pre-fix')&&!$(item).val())
{$(item).val('');$(item).val($(item).attr('pre-fix'));}});$('#'+formName).find('input:reset').click(function(item)
{item.preventDefault();$('#'+formName).find('input:text, input:password, input:checkbox, input:radio').each(function()
{$(this).css('border-color','');if($(this).is(':checked'))
{$(this).attr('checked',false);}
if($(this).attr('place'))
{if($(this).attr('type')!='password')
{$(this).val($(this).attr('place'));$(this).css('color','#bbb');}
else
{if($(this).hasClass('formlyPWPlaces'))
{$(this).show();$(this).prev('input').hide();}
else
{$(this).val('');}}}
else
{if($(this).hasClass('formlyPWPlaces'))
{$(this).show();$(this).prev('input').hide();}
else
{$(this).val('');}}});$('#'+formName).find('.formlyAlert').each(function()
{$(this).fadeOut(function()
{$(this).remove()});});});});this.submit(function(item)
{var canSubmit=true;$(this).find('input').each(function()
{if($(this).attr('require'))
{if(!functions.require(this))
{canSubmit=false;}}
if($(this).attr('validate'))
{if(!functions.validate(this))
{canSubmit=false;}}
if($(this).attr('match'))
{if(!functions.match(this))
{canSubmit=false;}}});if(!canSubmit)
{item.preventDefault();}
else
{if(callback)
{item.preventDefault();callback($(this).serialize());}}});var functions={validateString:function(type,string)
{if(type=='email')
{var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if(filter.test(string))
{return true;}
else
{return false;}}
else if(type=='http')
{var filter=/http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{2,3}/i
if(filter.test(string))
{return true;}
else
{return false;}}},validate:function(item)
{var alertName=formName+$(item).attr('name');if($(item).attr('validate')=='email')
{var valid=functions.validateString('email',$(item).val());var validType='email address';}
else if($(item).attr('validate')=='http')
{var valid=functions.validateString('http',$(item).val());var validType='web address';}
if(!valid)
{if(!$('#'+alertName).is(':visible'))
{$('#'+formName).find('.formlyAlerts').append('<div class="formlyInvalid formlyAlert" id="'+alertName+'">Invalid '+validType+'</div>')
$('#'+alertName).fadeIn();}
var borderColor=$('#'+alertName).css('background-color');$(item).css('border-color',borderColor);if($(item).attr('type')=='password')
{$(item).next('.formlyPWPlaces').css('border-color',borderColor);}
return false;}
else
{$('#'+alertName).fadeOut(function()
{$(this).remove()});$(item).css('border-color','');$('.formlyPWPlaces').css('border-color','');return true;}},require:function(item)
{var alertName=formName+$(item).attr('name');var label=$(item).attr('label')+' ';if(label=='undefined '){label='';}
if(!$(item).val()||$(item).val()==$(item).attr('place'))
{if(!$('#'+alertName).is(':visible'))
{$('#'+formName).find('.formlyAlerts').append('<div class="formlyRequired formlyAlert" id="'+alertName+'">'+label+'Required</div>')
$('#'+alertName).fadeIn();}
var borderColor=$('#'+alertName).css('background-color');$(item).css('border-color',borderColor);if($(item).attr('type')=='password')
{$(item).next('.formlyPWPlaces').css('border-color',borderColor);}
return false;}
else if($(item).attr('type')=='checkbox'&&!$(item).is(':checked'))
{if(!$('#'+alertName).is(':visible'))
{$('#'+formName).find('.formlyAlerts').append('<div class="formlyRequired formlyAlert" id="'+alertName+'">'+label+'Required</div>')
$('#'+alertName).fadeIn();$(item).focus();}
var borderColor=$('#'+alertName).css('background-color');$(item).css('border-color',borderColor);return false;}
else
{$('#'+alertName).fadeOut(function()
{$(this).remove()});$(item).css('border-color','');$('.formlyPWPlaces').css('border-color','');return true;}},match:function(item)
{var alertName=formName+$(item).attr('name');var label=$(item).attr('label')+' ';if(label=='undefined '){label='';}
var toMatch=$(item).attr('match');if($(item).val()!=$('#'+formName).find('input[name='+toMatch+']').val()||!$(item).val())
{if(!$('#'+alertName).is(':visible'))
{$('#'+formName).find('.formlyAlerts').append('<div class="formlyInvalid formlyAlert" id="'+alertName+'">'+label+'Does not match</div>')
$('#'+alertName).fadeIn();}
var borderColor=$('#'+alertName).css('background-color');$(item).css('border-color',borderColor);if($(item).attr('type')=='password')
{$(item).next('.formlyPWPlaces').css('border-color',borderColor);}
return false;}
else
{$('#'+alertName).fadeOut(function()
{$(this).remove()});$(item).css('border-color','');$('.formlyPWPlaces').css('border-color','');return true;}}};};})(jQuery);;
$().ready(function(){var str="<img class='comment-icon' src='/files/icon/comment.png'/>commentreply";$(".comment a").each(function(i){var str2=$(this).text();if(str2=="reply"){$(this).html(str);$(this).attr({title:"reply"})}});var str="<img class='comment-icon' src='/files/icon/edit.png'/>commentedit";$(".comment a").each(function(i){var str2=$(this).text();if(str2=="edit"){$(this).html(str);$(this).attr({title:"edit"})}});var str="<img class='comment-icon' src='/files/icon/delete.png'/>commentdelete";$(".comment a").each(function(i){var str2=$(this).text();if(str2=="delete"){$(this).html(str);$(this).attr({title:"delete"})}});var str="<img src='/files/icon/view.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="view"||str2=="View"){$(this).html(str);$(this).attr({title:"view"})}});var str="<img src='/files/icon/edit.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="edit"||str2=="Edit"||str2=="edit gallery"||str2=="edit forum"){$(this).html(str);$(this).attr({title:"edit"})}});var str="<img src='/files/icon/edit.png'/>";$("#sidebar-first .block a").each(function(i){var str2=$(this).text();if(str2=="edit"||str2=="Edit"){$(this).html(str);$(this).attr({title:"edit"})}});var str="<img src='/files/icon/delete.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="delete"||str2=="Delete"||str2=="Delete..."||str2=="Remove"){$(this).html(str);$(this).attr({title:"delete"})}});var str="<img src='/files/icon/revert.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="Restore"||str2=="Restore..."||str2=="reset"||str2=="Revert"){$(this).html(str);$(this).attr({title:"restore"})}});var str="<img src='/files/icon/download.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="Download"){$(this).html(str);$(this).attr({title:"download"})}});var str="<img src='/files/icon/fields.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="manage fields"){$(this).html(str);$(this).attr({title:"manage fields"})}});var str="<img src='/files/icon/configure.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="configure"||str2=="Configure"||str2=="edit block"){$(this).html(str);$(this).attr({title:"configure"})}});var str="<img src='/files/icon/configure.png'/>";$("#sidebar-first .block a").each(function(i){var str2=$(this).text();if(str2=="configure"||str2=="Configure"||str2=="edit block"){$(this).html(str);$(this).attr({title:"configure"})}});var str="<img src='/files/icon/menu_edit.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="edit menu"){$(this).html(str);$(this).attr({title:"edit menu"})}});var str="<img src='/files/icon/menu_edit.png'/>";$("#sidebar-first .block a").each(function(i){var str2=$(this).text();if(str2=="edit menu"){$(this).html(str);$(this).attr({title:"edit menu"})}});var str="<img src='/files/icon/view_edit.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="edit view"){$(this).html(str);$(this).attr({title:"edit view"})}});var str="<img src='/files/icon/view_edit.png'/>";$("#sidebar-first .block a").each(function(i){var str2=$(this).text();if(str2=="edit view"){$(this).html(str);$(this).attr({title:"edit view"})}});var str="<img src='/files/icon/export.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="Export"){$(this).html(str);$(this).attr({title:"export"})}});var str="<img src='/files/icon/export.png'/>";$("#sidebar-first .block a").each(function(i){var str2=$(this).text();if(str2=="Export"){$(this).html(str);$(this).attr({title:"export"})}});var str="<img src='/files/icon/clone.png'/>";$("#content-content a").each(function(i){var str2=$(this).text();if(str2=="Clone"||str2=="clone"){$(this).html(str);$(this).attr({title:"clone"})}});var str="<img src='/files/icon/clone.png'/>";$("#sidebar-first .block a").each(function(i){var str2=$(this).text();if(str2=="Clone"||str2=="clone"){$(this).html(str);$(this).attr({title:"clone"})}});var str="<img class='comment-icon' src='/files/icon/comment.png'/>reply";$(".comment a").each(function(i){var str2=$(this).text();if(str2=="commentreply"){$(this).html(str);$(this).attr({title:"reply"})}});var str="<img class='comment-icon' src='/files/icon/edit.png'/>edit";$(".comment a").each(function(i){var str2=$(this).text();if(str2=="commentedit"){$(this).html(str);$(this).attr({title:"edit"})}});var str="<img class='comment-icon' src='/files/icon/delete.png'/>delete";$(".comment a").each(function(i){var str2=$(this).text();if(str2=="commentdelete"){$(this).html(str);$(this).attr({title:"delete"})}});$("div.service-label").html("Share:");$("table th:contains('Operations')").html("");$("table#taxonomy th:contains('Name')").html("");$("form#user-admin-account th:contains('Operations')").html("");$("fieldset:has(legend a:contains('Contact settings'))").hide();$("fieldset:has(legend a:contains('Email settings'))").hide();$("fieldset:has(legend a:contains('Theme configuration'))").hide();$("ul.primary li:has(a:contains('Contact'))").hide();$("ul.ui-tabs-nav li:has(a:contains('Contact'))").show();$("p a:contains('More information about formatting options')").hide();$("div.description:contains('and all its children is fixed at')").hide();$("option:contains('- None -')").hide();$("form#user-filter-form").hide();$("form#taxonomy-form-term fieldset:has(legend a:contains('Advanced options'))").hide();$("form#taxonomy-form-term fieldset:has(legend a:contains('Meta tags'))").hide();$("ul.tabs:has(li a:contains('Automatic image handling'))").show();$("div.follow-links a").attr("target","_blank");$("option:contains('Manual Backups Directory')").remove();$("form#filebrowser-upload-form fieldset").removeClass("collapsed");var str="This screen allows you to add/edit/delete terms for this categorisation.";$("p:contains('is a single hierarchy vocabulary.')").html(str);$("textarea#edit-comment").css({height:"50px"});$("form#node-form input#edit-preview").attr({onclick:"form.action='javascript:history.back(-1);'",value:"Cancel",name:"op"});$(".node .filefield-file a").attr({target:"_blank"});$(".view .filefield-file a").attr({target:"_blank"});$(".sm2-filelink a").attr({target:"_blank"});$("a#dhtml_menu-10555").attr({target:"_blank"});$("div.image-gallery-terms li:has(h3:contains('Website Graphics'))").remove();$("div.node-type-dir_listing td a").each(function(){var str="/files/webfiles/",str2=$(this).html(),str3=str+str2;$(this).attr("href",str3);$(this).attr("target","_blank")});$("form#simplenews-block-form-1 input#edit-submit").attr({value:"Submit"});$(".view img").attr({alt:"",title:""});$("h1.title").each(function(i){var str=$(this).text();if(str=="Create Web Directory listing")$(this).html("Create a new Web Directory listing");if(str=="Create Forum topic")$(this).html("Create a new Forum Topic");if(str=="Create Web Image")$(this).html("Create a new Image");if(str=="Create Media Partner Website Page")$(this).html("Create a new Media Partner Website Page");if(str=="Create Web News Blog")$(this).html("Create a new Web News Blog");if(str=="Create Web Newsletter Issue")$(this).html("Create a new Web Newsletter Issue");if(str=="Create Web Page")$(this).html("Create a new Website Page");if(str=="Create Audio File")$(this).html("Create a new Audio File");if(str=="Create Video File")$(this).html("Create a new Video File")});$('a.lightbox-processed img').wrap("<span class='magnify-img' />");$('a.lightbox-processed:has(img)').hover(function(){$(this).children("span.magnify-img").animate({opacity:.3},300)},function(){$(this).children("span.magnify-img").animate({opacity:1},500)});$('a.lightbox-processed:has(img)').append("<span class='magnify' />");$('a.lightbox-processed:has(img) span.magnify').css({opacity:'0'});$('a.lightbox-processed:has(img)').hover(function(){$(this).children('span.magnify').animate({opacity:1,marginTop:'-21px'},300)},function(){$(this).children('span.magnify').animate({opacity:0,marginTop:'-8px'},500)})});
$().ready(function() {
		$('.node-type-product .service-links').insertAfter($('.node-type-product .add-to-cart'));
});;
$().ready(function(){$("div#content-region:has(h1:contains('Create Performance')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Performance')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Performance')) h1").text("Submit a Performance Application");$("div#content-region:has(h1:contains('Create Volunteer')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Volunteer')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Volunteer')) h1").text("Submit a Volunteer Application");$("div#content-region:has(h1:contains('Create Market Stall')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Market Stall')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Market Stall')) h1").text("Submit a Market Stall Application");$("div#content-region:has(h1:contains('Create Event Personnel')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Event Personnel')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Event Personnel')) h1").text("Submit an Event Personnel Application");$("div#content-region:has(h1:contains('Create Arts Grant')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Arts Grant')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Arts Grant')) h1").text("Submit an Arts Grant Application");$("div#content-region:has(h1:contains('Create Musician')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Musician')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Musician')) h1").text("Submit a Musician Application");$("div#content-region:has(h1:contains('Create Decor / Installation')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Decor / Installation')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Decor / Installation')) h1").text("Submit a Decor / Installation Application");$("div#content-region:has(h1:contains('Create Kids Space')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Kids Space')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Kids Space')) h1").text("Submit a Kids Space Application");$("div#content-region:has(h1:contains('Create Food Stall')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Food Stall')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Food Stall')) h1").text("Submit a Food Stall Application");$("div#content-region:has(h1:contains('Create Massage / Healing Stall')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Massage / Healing Stall')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Massage / Healing Stall')) h1").text("Submit a Massage / Healing Stall Application");$("div#content-region:has(h1:contains('Create Media')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Media')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Media')) h1").text("Submit a Media Pass Application");$("div#content-region:has(h1:contains('Create VJ / Multimedia')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create VJ / Multimedia')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create VJ / Multimedia')) h1").text("Submit a VJ / Multimedia Application");$("div#content-region:has(h1:contains('Create Workshop / Discussion')) input#edit-submit").attr({value:"Submit Application"});$("div#content-region:has(h1:contains('Create Workshop / Discussion')) input#edit-preview").remove();$("div#content-region:has(h1:contains('Create Workshop / Discussion')) h1").text("Submit a Workshop / Discussion Application");$("div.messages:contains('has been created')").hide();$("option:contains('- None -')").remove();$("input:submit[value='Delete node']").attr('value','Delete Selected Items');$("form#views-bulk-operations-form--1 fieldset legend:contains('Placeholder tokens')").hide();$("div.views-node-selector").insertBefore("div#edit-recipient-wrapper");$("div.view fieldset:has(legend a:contains('Recipients'))").hide();$("div.view fieldset fieldset:has(legend a:contains('Replacements'))").hide();$("div.view fieldset fieldset:has(legend a:contains('Message format'))").hide();$("a#switch_edit-views-send-message").remove()});
(function($){var style=document.createElement('div').style,moz=style.MozBorderRadius!==undefined,webkit=style.WebkitBorderRadius!==undefined,radius=style.BorderRadius!==undefined,mode=document.documentMode||0,noBottomFold=$.browser.msie&&(($.browser.version<8&&!mode)||mode<8),expr=$.browser.msie&&(function(){var div=document.createElement('div');try{div.style.setExpression('width','0+0');div.style.removeExpression('width')}catch(e){return false};return true})()
function sz(el,p){return parseInt($.css(el,p))||0}
function hex2(s){var s=parseInt(s).toString(16);return(s.length<2)?'0'+s:s}
function gpc(node){for(;node&&node.nodeName.toLowerCase()!='html';node=node.parentNode){var v=$.css(node,'backgroundColor');if(v=='rgba(0, 0, 0, 0)')continue;if(v.indexOf('rgb')>=0){var rgb=v.match(/\d+/g);return'#'+hex2(rgb[0])+hex2(rgb[1])+hex2(rgb[2])};if(v&&v!='transparent')return v};return'#ffffff'}
function getWidth(fx,i,width){switch(fx){case'round':return Math.round(width*(1-Math.cos(Math.asin(i/width))));case'cool':return Math.round(width*(1+Math.cos(Math.asin(i/width))));case'sharp':return Math.round(width*(1-Math.cos(Math.acos(i/width))));case'bite':return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));case'slide':return Math.round(width*(Math.atan2(i,width/i)));case'jut':return Math.round(width*(Math.atan2(width,(width-i-1))));case'curl':return Math.round(width*(Math.atan(i)));case'tear':return Math.round(width*(Math.cos(i)));case'wicked':return Math.round(width*(Math.tan(i)));case'long':return Math.round(width*(Math.sqrt(i)));case'sculpt':return Math.round(width*(Math.log((width-i-1),width)));case'dogfold':case'dog':return(i&1)?(i+1):width;case'dog2':return(i&2)?(i+1):width;case'dog3':return(i&3)?(i+1):width;case'fray':return(i%2)*width;case'notch':return width;case'bevelfold':case'bevel':return i+1}};$.fn.corner=function(options){if(this.length==0){if(!$.isReady&&this.selector){var s=this.selector,c=this.context;$(function(){$(s,c).corner(options)})};return this};return this.each(function(index){var $this=$(this),o=[$this.attr($.fn.corner.defaults.metaAttr)||'',options||''].join(' ').toLowerCase(),keep=/keep/.test(o),cc=((o.match(/cc:(#[0-9a-f]+)/)||[])[1]),sc=((o.match(/sc:(#[0-9a-f]+)/)||[])[1]),width=parseInt((o.match(/(\d+)px/)||[])[1])||10,re=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,fx=((o.match(re)||['round'])[0]),fold=/dogfold|bevelfold/.test(o),edges={T:0,B:1},opts={TL:/top|tl|left/.test(o),TR:/top|tr|right/.test(o),BL:/bottom|bl|left/.test(o),BR:/bottom|br|right/.test(o)};if(!opts.TL&&!opts.TR&&!opts.BL&&!opts.BR)opts={TL:1,TR:1,BL:1,BR:1};if($.fn.corner.defaults.useNative&&fx=='round'&&(radius||moz||webkit)&&!cc&&!sc){if(opts.TL)$this.css(radius?'border-top-left-radius':moz?'-moz-border-radius-topleft':'-webkit-border-top-left-radius',width+'px');if(opts.TR)$this.css(radius?'border-top-right-radius':moz?'-moz-border-radius-topright':'-webkit-border-top-right-radius',width+'px');if(opts.BL)$this.css(radius?'border-bottom-left-radius':moz?'-moz-border-radius-bottomleft':'-webkit-border-bottom-left-radius',width+'px');if(opts.BR)$this.css(radius?'border-bottom-right-radius':moz?'-moz-border-radius-bottomright':'-webkit-border-bottom-right-radius',width+'px');return};var strip=document.createElement('div');$(strip).css({overflow:'hidden',height:'1px',minHeight:'1px',fontSize:'1px',backgroundColor:sc||'transparent',borderStyle:'solid'});var pad={T:parseInt($.css(this,'paddingTop'))||0,R:parseInt($.css(this,'paddingRight'))||0,B:parseInt($.css(this,'paddingBottom'))||0,L:parseInt($.css(this,'paddingLeft'))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!keep)this.style.border='none';strip.style.borderColor=cc||gpc(this.parentNode);var cssHeight=$.curCSS(this,'height');for(var j in edges){var bot=edges[j];if((bot&&(opts.BL||opts.BR))||(!bot&&(opts.TL||opts.TR))){strip.style.borderStyle='none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');var d=document.createElement('div');$(d).addClass('jquery-corner');var ds=d.style;bot?this.appendChild(d):this.insertBefore(d,this.firstChild);if(bot&&cssHeight!='auto'){if($.css(this,'position')=='static')this.style.position='relative';ds.position='absolute';ds.bottom=ds.left=ds.padding=ds.margin='0';if(expr){ds.setExpression('width','this.parentNode.offsetWidth')}else ds.width='100%'}else if(!bot&&$.browser.msie){if($.css(this,'position')=='static')this.style.position='relative';ds.position='absolute';ds.top=ds.left=ds.right=ds.padding=ds.margin='0';if(expr){var bw=sz(this,'borderLeftWidth')+sz(this,'borderRightWidth');ds.setExpression('width','this.parentNode.offsetWidth - '+bw+'+ "px"')}else ds.width='100%'}else{ds.position='relative';ds.margin=!bot?'-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px':(pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px'};for(var i=0;i<width;i++){var w=Math.max(0,getWidth(fx,i,width)),e=strip.cloneNode(false);e.style.borderWidth='0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';bot?d.appendChild(e):d.insertBefore(e,d.firstChild)};if(fold&&$.support.boxModel){if(bot&&noBottomFold)continue;for(var c in opts){if(!opts[c])continue;if(bot&&(c=='TL'||c=='TR'))continue;if(!bot&&(c=='BL'||c=='BR'))continue;var common={position:'absolute',border:'none',margin:0,padding:0,overflow:'hidden',backgroundColor:strip.style.borderColor},$horz=$('<div/>').css(common).css({width:width+'px',height:'1px'});switch(c){case'TL':$horz.css({bottom:0,left:0});break;case'TR':$horz.css({bottom:0,right:0});break;case'BL':$horz.css({top:0,left:0});break;case'BR':$horz.css({top:0,right:0});break};d.appendChild($horz[0]);var $vert=$('<div/>').css(common).css({top:0,bottom:0,width:'1px',height:width+'px'});switch(c){case'TL':$vert.css({left:width});break;case'TR':$vert.css({right:width});break;case'BL':$vert.css({left:width});break;case'BR':$vert.css({right:width});break};d.appendChild($vert[0])}}}}})};$.fn.uncorner=function(){if(radius||moz||webkit)this.css(radius?'border-radius':moz?'-moz-border-radius':'-webkit-border-radius',0);$('div.jquery-corner',this).remove();return this};$.fn.corner.defaults={useNative:true,metaAttr:'data-corner'}})(jQuery);

