;(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($){$('#tabs').tabs();});;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);};(function(a){a.fn.hoverIntent=function(l,j){var m={sensitivity:7,interval:100,timeout:0};m=a.extend(m,j?{over:l,out:j}:l);var o,n,h,d;var e=function(f){o=f.pageX;n=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-o)+Math.abs(d-n))<m.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return m.over.apply(f,[g])}else{h=o;d=n;f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g])};var b=function(q){var f=this;var g=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(g&&g!=this){try{g=g.parentNode}catch(q){g=this}}if(g==this){if(a.browser.mozilla){if(q.type=="mouseout"){f.mtout=setTimeout(function(){k(q,f)},30)}else{if(f.mtout){f.mtout=clearTimeout(f.mtout)}}}return}else{if(f.mtout){f.mtout=clearTimeout(f.mtout)}k(q,f)}};var k=function(p,f){var g=jQuery.extend({},p);if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(p.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},m.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);
