(function($){jQuery.fn.wpSPGallery=function(){this.each(function(){$root=$(this);var alt=1;$root.children().each(function(){if(alt==1){$(this).hover(function(){$("img:first",this).stop().animate({left:'170px'},{queue:false,duration:500})},function(){$("img:first",this).stop().animate({left:'0px'},{queue:false,duration:500})}).click(function(){window.location=$('a.more',this).attr('href')})}else{$(this).hover(function(){$("img:first",this).stop().animate({top:'170px',left:'170px'},{queue:false,duration:500})},function(){$("img:first",this).stop().animate({top:'0px',left:'0px'},{queue:false,duration:500})}).click(function(){window.location=$('a.more',this).attr('href')})}alt++;if(alt>2)alt=1});return this})}})(jQuery);

(function($){jQuery.fn.wpTabbs=function(options){opt={speed:10,fixHeight:true,effect:'none'};var options=$.extend(opt,options);this.each(function(){var $root=$(this);if($root.data('already_atab') && $root.data('already_atab').length > 0 ) {return false};$root.data('already_atab','yes');if(options.fixHeight){var heights=new Array();$root.find('.wphp_tabber_div').each(function(){heights.push($(this).height())});maxh=Math.max.apply(Math,heights);$('.wphp_tabber_div',$root).height(maxh)}$('.wphp_tabber_div',$root).hide().eq(0).show();$('.wphp_tabber_nav li',$root).each(function(i){var ind=i;if(ind==0)$('a',$(this)).addClass('selected');$('a',$(this)).data('eqID',ind).click(function(event){eqID=$(this).data('eqID');$('.wphp_tabber_nav li a',$root).removeClass('selected');$(this).addClass('selected');if($('.wphp_tabber_div',$root).eq(eqID).is(':visible'))return false;if(options.effect=='slide'){$('.wphp_tabber_div:visible',$root).slideUp(400,function(){$('.wphp_tabber_div',$root).eq(eqID).slideDown(400)})}else if(options.effect=='fade'){$('.wphp_tabber_div:visible',$root).fadeOut(100,function(){  $('.wphp_tabber_div',$root).eq(eqID).fadeIn(100)})}else if(options.effect == 'zoom'){$('.wphp_tabber_div:visible',$root).css('overflow','hidden').animate({ letterSpacing : "50px", opacity : 'hide', fontSize: '20px'},350,function(){ $(this).css({'letter-spacing':'','overflow' : '','font-size': ''}); $('.wphp_tabber_div',$root).eq(eqID) .css({'letter-spacing':'50px','overflow' : 'hidden','font-size': '20px'}) .animate({letterSpacing : "1px", fontSize : '12px',  opacity : 'show'},500,function(){  $(this).css({'letter-spacing':'','overflow' : '','font-size': ''}); });});}else{$('.wphp_tabber_div',$root).hide().eq(eqID).show()}event.preventDefault()})});return this}); }})(jQuery);

jQuery.noConflict(); jQuery(document).ready(function($){ 
/* Text Resizer Widget (Minified Code ) */
$("#wp_content_single .text_resizer a:first").click(function(){$('div,h1,h2,h3,h4,h5,h6,p','#wp_content_single').each(function(){if($(this).hasClass('text_resizer')||$(this).parent().hasClass('text_resizer')){}else{currentFontSize=$(this).css('font-size');currentFontSizeNum=parseFloat(currentFontSize,16);newFontSize=currentFontSizeNum+1;if(newFontSize>9){$(this).css('font-size',newFontSize);}}})});$("#wp_content_single .text_resizer a:last").click(function(){$('div,h1,h2,h3,h4,h5,h6,p','#wp_content_single').each(function(){currentFontSize=$(this).css('font-size');currentFontSizeNum=parseFloat(currentFontSize,16);newFontSize=currentFontSizeNum-1;if(newFontSize>9){$(this).css('font-size',newFontSize)}})});
/* End of Text Resizer Widget */
$('#tabbed_rtab').wpTabbs();
$('.wphpw_sgallery_plist').wpSPGallery();
});
function fixWidth($){content=$("#wp_content");sidebar=$("#wp_sidebar");aditional=$("div.wp_aditional_sidebar");content.width(content.width()-Math.ceil(content.outerWidth(true)-content.outerWidth()));sidebar.width(sidebar.width()-Math.ceil(sidebar.outerWidth(true)-sidebar.outerWidth()));aditional.width(aditional.width()-Math.ceil(aditional.outerWidth(true)-aditional.outerWidth()));} function position_footer($){$footer_inside = $("#container").find("#wp_footer");$footer_outside = $("#wp_footer");if($footer_inside.length > 0 ){return false;}else{if($footer_outside.length == 1 ){total_height = Math.ceil($("#container").outerHeight(true) + $footer_outside.outerHeight(true)); if((total_height + 10) < $(document).height()){ margin_foot = Math.ceil($(document).height() - total_height); $footer_outside.css({"margin-top": margin_foot});}else return false;}}}