jQuery(document).ready(function(){jQuery('.col1 .post.fl').each(function(){h_left=jQuery(this).children('.box-post-content').height();h_right=jQuery(this).next('.fr').children('.box-post-content').height();if(h_left>=h_right)
{jQuery(this).next('.fr').children('.box-post-content').height(h_left);}
if(h_left<h_right)
{jQuery(this).children('.box-post-content').height(h_right);}})});jQuery(document).ready(function(){var tag_cloud_class='#tagcloud';var tag_cloud_height=jQuery('#tagcloud').height();jQuery('.inside ul li:last-child').css('border-bottom','0px')
jQuery('.wooTabs li a:first').addClass('selected');jQuery('.inside > *').hide();jQuery('.inside > *:first').show();jQuery('.wooTabs li a').click(function(evt){var clicked_tab_ref=jQuery(this).attr('href');jQuery('.wooTabs li a').removeClass('selected');jQuery(this).addClass('selected');jQuery('.inside > *').hide();jQuery('.inside '+clicked_tab_ref).fadeIn(500);evt.preventDefault();})});jQuery(document).ready(function(){var slide_fade=false;var content_fade=false;var padding_offset=20;var counter=0;var amount_of_slides=jQuery('#slider-holder .slide').length;var rel_left=amount_of_slides;var slider_tracker=1;var rel_right=2;var slider_height=jQuery('#slider-holder').height();var slider_width=jQuery('#slider-holder').width();jQuery('#slider-nav .slider-left').attr('rel',rel_left);jQuery('#slider-nav .slider-right').attr('rel',rel_right);if(amount_of_slides==1)
{jQuery('#slider-holder .slider-shelf').add('#slider-holder #slider-nav').add('#slider-holder .shelf-content').add('#slider-holder .clicker').hide();}
else
{var shelf_height=jQuery('#slider-holder .shelf-content').height();shelf_height=shelf_height+8
jQuery('#slider-holder .slider-shelf').css('opacity',0.9);jQuery('#slider-holder .clicker').css('opacity',0.9);jQuery('#slider-holder .shelf-content img').css('opacity',0.3);jQuery('#slider-holder .slider-shelf').css('height',shelf_height);var shelf=jQuery('#slider-holder .slider-shelf').add('#slider-holder .shelf-content');shelf.css('top',shelf_height*-1);var flip=1;jQuery('#slider-holder .clicker').click(function(){flip++;if(flip%2==0)
{shelf.animate({top:0},300);jQuery(this).animate({top:shelf_height},300);jQuery('#slider-nav .slider-right').add('#slider-nav .slider-left').fadeOut(100);}
else
{shelf.animate({top:shelf_height*-1},300);jQuery(this).animate({top:0},300);jQuery('#slider-nav .slider-right').add('#slider-nav .slider-left').fadeIn(400).attr('style','');}});jQuery('#slider-holder .shelf-content img').hover(function(){jQuery(this).stop().animate({opacity:1});var title=jQuery(this).parent('span').attr('title');jQuery('#slider-holder .shelf-title').html(title);},function(){jQuery(this).stop().animate({opacity:0.3})
jQuery('#slider-holder .shelf-title').html('');});jQuery('#slider-holder .shelf-content span').click(function(){var shelf_rel=jQuery(this).attr('class');});jQuery('#slider-holder .shelf-content img').click(function(){var shelf_click=jQuery(this).parent('span').attr('class');var i=0;var dif=shelf_click-slider_tracker;if(dif>0){while(i<dif){jQuery('#slider-nav .slider-right').click();i++;}}
if(dif<0){while(i>dif){jQuery('#slider-nav .slider-left').click();i--;}}})}
jQuery('#slider-holder .slide-content-1').css('opacity','0').show();var content_height=jQuery('#slider-holder .slide-content-height-1').height();jQuery('#slider-holder .slide-content-1').hide().attr('style','');var cut_from_top=(slider_height-padding_offset)-content_height;if(content_fade==false){jQuery('#slider-holder .slide-content-1').show().css({'opacity':'0','top':slider_height+'px'});jQuery('#slider-holder .slide-content-1').animate({'top':cut_from_top,opacity:0.8},1000);}else{jQuery('#slider-holder .slide-content-1').show().css({'opacity':'0','top':cut_from_top+'px'});jQuery('#slider-holder .slide-content-1').animate({opacity:0.8},1000);}
jQuery('#slider-holder .slider-left').add('#slider-holder .slider-right').css('opacity',0.6);jQuery('#slider-holder .slider-left').add('#slider-holder .slider-right').hover(function(){jQuery(this).animate({opacity:1},200)},function(){jQuery(this).animate({opacity:0.6},400);});if(amount_of_slides>1){var t;var timeout=6000;function click_do(){t=setTimeout(function(){jQuery('#slider-nav .slider-right').click();click_do();},timeout);}
click_do();jQuery('#slider-nav .slider-right').click(function(evt){clearTimeout(t);counter=counter+2;var target_slide=jQuery(this).attr('rel');var content_height=jQuery('#slider-holder .slide-content-height-'+target_slide).height();var cut_from_top=(slider_height-padding_offset)-content_height;if(content_fade==false){jQuery('#slider-holder .slide-content-'+target_slide).css({'z-index':counter,'opacity':'0','top':slider_height+'px'});}else{jQuery('#slider-holder .slide-content-'+target_slide).css({'z-index':counter,'opacity':'0','top':cut_from_top+'px'});}
if(slide_fade==false){jQuery('#slider-holder .slide-'+target_slide).css({'opacity':'0','z-index':counter,'left':slider_width+'px'}).animate({'left':'0px',opacity:1},500,"linear",content_stuff);}else{jQuery('#slider-holder .slide-'+target_slide).css({'opacity':'0','z-index':counter}).animate({opacity:1},500,"linear",content_stuff);}
function content_stuff(){jQuery('#slider-holder .slide-'+target_slide).attr('style','').css({'z-index':counter,'left':'0px'})
if(content_fade==false){jQuery('#slider-holder .slide-content-'+target_slide).animate({'top':cut_from_top,opacity:0.8},1000);}else{jQuery('#slider-holder .slide-content-'+target_slide).animate({opacity:0.8},1000);}}
slider_tracker++;rel_left++;rel_right++;if(rel_left>amount_of_slides){rel_left=1;}
if(rel_right>amount_of_slides){rel_right=1;}
if(slider_tracker>amount_of_slides){slider_tracker=1;}
jQuery('#slider-nav .slider-left').attr('rel',rel_left);jQuery('#slider-nav .slider-right').attr('rel',rel_right);evt.preventDefault();jQuery('.slider-dots span').fadeTo(200,0.2);jQuery('.slider-dots span.dot-'+slider_tracker).fadeTo(200,1);});jQuery('#slider-nav .slider-left').click(function(evt){clearTimeout(t);counter=counter+2;var target_slide=jQuery(this).attr('rel');var content_height=jQuery('#slider-holder .slide-content-height-'+target_slide).height();var cut_from_top=(slider_height-padding_offset)-content_height;jQuery('#slider-holder .slide-content-'+rel_left).css({'top':slider_height+'px','left':'0px','opacity':0});jQuery('#slider-holder .slide-'+target_slide).attr('style','').css({'z-index':counter-1,'left':'0px'})
if(content_fade==false){jQuery('#slider-holder .slide-content-'+slider_tracker).css({'z-index':counter,'opacity':0,'top':slider_height+'px'});}else{jQuery('#slider-holder .slide-content-'+target_slide).css({'z-index':counter,'opacity':0,'top':cut_from_top+'px'});}
if(slide_fade==false){jQuery('#slider-holder .slide-'+slider_tracker).css({'opacity':1,'z-index':counter,'left':'0px'}).animate({'left':slider_width+'px',opacity:0},500,"linear",content_stuff_alt);}else{jQuery('#slider-holder .slide-'+target_slide).css({'opacity':'0','z-index':counter}).animate({opacity:1},500,"linear",content_stuff_alt);}
function content_stuff_alt(){if(content_fade==false){jQuery('#slider-holder .slide-content-'+target_slide).animate({'top':cut_from_top,opacity:0.8},1000);}else{jQuery('#slider-holder .slide-content-'+target_slide).animate({opacity:0.8},1000);}}
slider_tracker--;rel_left--;rel_right--;if(rel_left<1){rel_left=amount_of_slides;}
if(rel_right<1){rel_right=amount_of_slides;}
if(slider_tracker<1){slider_tracker=amount_of_slides;}
jQuery('#slider-nav .slider-left').attr('rel',rel_left);jQuery('#slider-nav .slider-right').attr('rel',rel_right);evt.preventDefault();jQuery('.slider-dots span').fadeTo(200,0.2);jQuery('.slider-dots span.dot-'+slider_tracker).fadeTo(200,1);});}});;(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(document).ready(function(){jQuery('ul#nav1').superfish();jQuery('ul#nav2').superfish();});;var VC_REQUIRED_MIN_SPACE_WIDTH=125;var VC_MAX_SPACE_WIDTH=200;var VC_REQUIRED_BOTTOM_HORIZONTAL_WIDTH=330;var VC_BOTTOM_HORIZONTAL_HEIGHT=120;var VC_BOTTOM_VERTICAL_HEIGHT=225;jQuery(document).ready(function($){$(".fscf_vcita_container").each(function(){VC_FSCF_widget_load($(this));});});function VC_FSCF_cookie_name(uid){return"vc_widget_"+uid;}
function VC_FSCF_set_cookie(uid,value){var date=new Date();date.setTime(date.getTime()+(1*365*86400*1000));var expires="; expires="+date.toGMTString();document.cookie=VC_FSCF_cookie_name(uid)+"="+value+expires+"; path=/";}
function VC_FSCF_read_cookie(uid){var nameEQ=VC_FSCF_cookie_name(uid)+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}
return null;}
function VC_FSCF_get_owner_token(uid){var content=VC_FSCF_read_cookie(uid);var token="";if(content!=null&&content.length>0){var attributes=content.split("|||");for(i=0;i<attributes.length;i++){var attribute=attributes[i].split("=");if(attribute[0]=='confirmation_token'&&attribute.length>1){token=attribute[1];}}}
return token;}
function VC_FSCF_get_confirmation_token(container,uid){var confirmation_token=container.attr("confirmation_token");if(confirmation_token!=null&&confirmation_token!=""){VC_FSCF_set_cookie(uid,"confirmation_token="+confirmation_token);}else{confirmation_token=VC_FSCF_get_owner_token(uid);}
return confirmation_token;}
function VC_FSCF_populate_frame(container,widget_position,widget_orientation,width,height){var divClass="";var uid=container.attr("vcita_uid");var custom_style="color:"+container.css("color")+";";var confirmation_token=VC_FSCF_get_confirmation_token(container,uid);var url="http://www.vcita.com/"+uid+"/buttons?invite=wp-fscf";if(confirmation_token!=null&&confirmation_token!=""){url+="&confirmation_token="+confirmation_token;}
if(container.attr("custom_style")!=null&&container.attr("custom_style")!=""){custom_style+=container.attr("custom_style");}
url+="&custom_style="+encodeURIComponent(custom_style);if(widget_position=="right"){divClass="vcita-widget-right";}else{divClass="vcita-widget-bottom";}
container.attr("class",divClass);container.html("<iframe style='border:none !important;' src='"+url+"&position="+widget_position+"&orientation="+widget_orientation+"'"+"width='"+width+"' height='"+height+"' frameborder='0' allowtransparency='true'></iframe>");}
function VC_FSCF_widget_load(container){var widget_position="";var widget_orientation="vertical";var height="";var width="";if(container.parent().parent().outerWidth(true)>container.parent().outerWidth(true)){container.parent().find(".fsc_data_container").css("width",container.parent().find(".fsc_data_container").outerWidth(true));container.parent().css("width",container.parent().parent().outerWidth(true));}
var available_space=container.parent().outerWidth(true)-container.parent().children().outerWidth(true);if(available_space>VC_REQUIRED_MIN_SPACE_WIDTH){var formHeight=container.parent().children().outerHeight(true)
width=((available_space<VC_MAX_SPACE_WIDTH)?available_space:VC_MAX_SPACE_WIDTH)+"px";height=formHeight+"px";widget_position="right";}else{widget_position="bottom";if(container.parent().outerWidth(true)>=VC_REQUIRED_BOTTOM_HORIZONTAL_WIDTH){width=VC_REQUIRED_BOTTOM_HORIZONTAL_WIDTH+"px";height=VC_BOTTOM_HORIZONTAL_HEIGHT+"px";widget_orientation="horizontal";}else{width="100%";height=VC_BOTTOM_VERTICAL_HEIGHT+"px";}}
VC_FSCF_populate_frame(container,widget_position,widget_orientation,width,height);};jQuery.cookie=function(key,value,options){if(arguments.length>1&&String(value)!=="[object Object]"){options=jQuery.extend({},options);if(value===null||value===undefined){options.expires=-1;}
if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}
value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}
options=value||{};var result,decode=options.raw?function(s){return s;}:decodeURIComponent;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decode(result[1]):null;};
