if(!(window.showModelessDialog&&!document.implementation)){;(function($){$.ifixpng=function(customPixel){$.ifixpng.pixel=customPixel;};$.ifixpng.regexp={bg:/^url\(["']?(.*\.png([?].*)?)["']?\)$/i,img:/.*\.png([?].*)?$/i},$.ifixpng.getPixel=function(){return $.ifixpng.pixel||'images/pixel.gif';};var hack={base:$('base').attr('href'),ltie7:$.browser.msie&&$.browser.version<7,filter:function(src){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";}};$.fn.ifixpng=hack.ltie7?function(){function fixImage(image,source,width,height,hidden){image.css({filter:hack.filter(source),width:width,height:height}).attr({src:$.ifixpng.getPixel()}).positionFix();}
return this.each(function(){var $$=$(this);if($$.is('img')||$$.is('input')){var source,img;if(this.src&&this.src.match($.ifixpng.regexp.img)){source=(hack.base&&this.src.substring(0,1)!='/'&&this.src.indexOf(hack.base)===-1)?hack.base+this.src:this.src;if(!this.width||!this.height){$(new Image()).one('load',function(){fixImage($$,source,this.width,this.height);$(this).remove();}).attr('src',source);}else fixImage($$,source,this.width,this.height);}}else if(this.style){var imageSrc=$$.css('backgroundImage');if(imageSrc&&imageSrc.match($.ifixpng.regexp.bg)&&this.currentStyle.backgroundRepeat=='no-repeat'){imageSrc=RegExp.$1;var x=this.currentStyle.backgroundPositionX||0,y=this.currentStyle.backgroundPositionY||0;if(x||y){var css={},img;if(typeof x!='undefined'){if(x=='left')css.left=0;else if(x=='right')css.right=$$.width()%2===1?-1:0;else css.left=x;}
if(typeof y!='undefined'){if(y=='bottom')css.bottom=$$.height()%2===1?-1:0;else if(y=='top')css.top=0;else css.top=y;}
img=new Image();$(img).one('load',function(){var x,y,expr={},prop;if(/center|%/.test(css.top)){expr.top="(this.parentNode.offsetHeight - this.offsetHeight) * "+(css.top=='center'?0.5:(parseInt(css.top)/100));delete css.top;}
if(/center|%/.test(css.left)){expr.left="(this.parentNode.offsetWidth - this.offsetWidth) * "+(css.left=='center'?0.5:(parseInt(css.left)/100));delete css.left;}
$$.positionFix().css({backgroundImage:'none'}).prepend($('<div></div>').css(css).css({width:this.width,height:this.height,position:'absolute',filter:hack.filter(imageSrc)}));if(expr.top||expr.left){var elem=$$.children(':first')[0];for(prop in expr)elem.style.setExpression(prop,expr[prop],'JavaScript');}
$(this).remove();});img.src=imageSrc;}else{$$.css({backgroundImage:'none',filter:hack.filter(imageSrc)});}}}});}:function(){return this;};$.fn.positionFix=function(){return this.each(function(){var $$=$(this);if($$.css('position')!='absolute')$$.css({position:'relative'});});};})(jQuery);};;if(!(window.showModelessDialog&&!document.implementation)){$(document).domready(function(){$('img, .backgroundPNG, #primaryNavigation h2, #primaryNavigation h2.closed, #primaryNavigation h2.opened, .searchSite, #thirdLevelLinksLine, #thirdLevelLinksBorderTopRight, #tooltip, #tooltip div, #whatIsAnandaImage, #whatIsAnandaImageCorner, #whatIsAnandaMenu').ifixpng();$('body').addClass('jsEnabled');});$(document).ready(function(){var today=new Date();var dateWithoutYear=(today.getMonth()+1)+"-"+today.getDate();var date="2008-"+(today.getMonth()+1)+"-"+today.getDate();var moreHTML='<a class="viewMore" title="Expand to see the full saying" href="/inspiration/daily/" onClick="pageTracker._trackEvent(\'DailyInspiration\', \'More\', \''+dateWithoutYear+'\');">(More...)</a></span>';var lessHTML='<p class="viewLess"><a href="/inspiration/daily/" title="Collapse the saying" onClick="pageTracker._trackEvent(\'DailyInspiration\', \'Less\', \''+dateWithoutYear+'\');">(Less...)</a></p>';if($("#home").length>0){$("#dailyQuoteRightBottom").load("/includes/applications/daily-quote/daily-quote.php #dailyQuoteContent",{output:"complete",date:date},function(){$("#dailyQuoteContainer span.more, #dailyQuoteContainer div.more").hide();if($("#dailyQuoteContainer span.more").length>0){$("#dailyQuoteContainer span.more").before(moreHTML);$("#dailyQuoteContainer .attribution").before(lessHTML);}
else if($("#dailyQuoteContainer div.more").length>0){$("#dailyQuoteContainer div.more").before(moreHTML);$("#dailyQuoteContainer .attribution").before(lessHTML);}
$("#dailyQuoteContainer").show();$("#dailyQuoteContainer a.viewMore").click(function(event){$("#dailyQuoteContainer span.more, #dailyQuoteContainer div.more").show();$("#dailyQuoteContainer .viewLess, #dailyQuoteContainer .viewLess a").show();$(this).hide();event.preventDefault();});$("#dailyQuoteContainer .viewLess a").click(function(event){$("#dailyQuoteContainer span.more, #dailyQuoteContainer div.more").hide();$("#dailyQuoteContainer .viewMore").show();$(this).hide();event.preventDefault();});$('#dailyQuoteContainer [title]').tooltip({delay:250,showBody:"|",fixPNG:true,showURL:false});});}
$("a[href$='.pdf']").not("a:has(img)").not("a:empty").addClass("pdf");$("a[href$='.doc']").not("a:has(img)").not("a:empty").addClass("document");$("a[href$='.mp3']").not("a:has(img)").not("a:empty").addClass("audio");$("a[href$='.ram']").not("a:has(img)").not("a:empty").addClass("audio");$("a[href$='.m3u']").not("a:has(img)").not("a:empty").addClass("audio");$("a[href^='javascript:videoWindow']").not("a:has(img)").not("a:empty").addClass("video");$("a[href^='http://']").not("[href*='www.ananda.org']").not("[href^='http://ananda.org']").not("a:has(img)").not("a:empty").addClass("external");$("a[href^='/mp3/'], a[href^='http://www.ananda.org/mp3/'], a[href$='.pdf'], a[href$='.doc'], a[href$='.ram'], a[href$='.mp3'],   a[href$='.swf']").not(".external").bind("click",function(arr){var href=$(this).attr("href");href=href.replace("http://www.ananda.org/","/");pageTracker._trackPageview(href);});$(".external").bind("click",function(arr){var href=$(this).attr("href");href=href.replace("http://","/external/");pageTracker._trackPageview(href);});$('[title!= ]').tooltip({delay:250,showBody:"|",fixPNG:true,showURL:false});$('a.useTooltipContent').tooltip({bodyHandler:function(){var tooltipContent=$(this).next(".tooltipContent").html();if(null==tooltipContent){tooltipContent=$(this).parent().next(".tooltipContent").html();}
return tooltipContent;},delay:250,fixPNG:true,showURL:false});$("a[href=placeholder]").click(function(event){return false;});$(".searchSite input.text").val("Search").focus(function(){$(this).val("");});$(".searchSection input.text").val("Search this section").focus(function(){$(this).val("");});$("#tabContainer li").hover(function(){$(this).addClass("active");},function(){$(this).removeClass("active");});var speed=1000;var clickedOnNavigationLink=false;$("#primaryNavigation h2").addClass("closed");$("#primaryNavigation h2.current").addClass("opened").removeClass("closed");$("#primaryNavigation a").click(function(event){clickedOnNavigationLink=true;return;});$("#primaryNavigation h2").click(function(event){if(clickedOnNavigationLink==true){return;}
$("#primaryNavigation ul").not($(this).next("ul")).hide(speed);$("#primaryNavigation h2").not($(this)).removeClass("opened");$("#primaryNavigation h2").not($(this)).addClass("closed");$(this).next("ul").toggle(speed);$(this).toggleClass("opened");$(this).toggleClass("closed");var h2Label=$(this).text();if($(this).hasClass("opened")){pageTracker._trackEvent('PrimaryNavigation','ArrowOpened',h2Label);}
if($(this).hasClass("closed")){pageTracker._trackEvent('PrimaryNavigation','ArrowClosed',h2Label);}
return false;});});$(window).bind('load',function(){$("#whatIsAnandaImage").animate({opacity:0},1);$("#whatIsAnandaMenu ul a").hoverIntent({over:function(){var imageClass=$(this).attr("className");$("#whatIsAnandaImage").queue(function(){$("#whatIsAnandaImage").attr("className",imageClass);$(this).dequeue();});$("#whatIsAnandaImage").animate({opacity:1},1000);$("#whatIsAnandaImage").queue(function(){$("#whatIsAnandaLine").attr("className",imageClass);$(this).dequeue();});$("#whatIsAnandaImage").animate({opacity:0},1);},out:function(){},timeout:500,sensitivity:5});});};;function videoWindow(id,service,widescreen,message)
{if(!service){var service="google";}
if(!widescreen){var widescreen="false";if(!message){var height="520";}
else{var height="595";}}
else if(widescreen="true"){if(!message){var height="450";}
else{var height="525";}}
else if(widescreen="false"){if(!message){var height="570";}
else{var height="665";}}
if(!message){var message="0";}
url="http://www.ananda.org/includes/applications/video-popups/popup-videos.asp?id="+escape(id)+"&service="+service+"&widescreen="+widescreen+"&message="+message;oWindow=window.open(url,"Video","toolbar=no,width=630,height="+height+",directories=no,status=no,scrollbars=no,resize=yes,menubar=no");oWindow.focus();};if(!(window.showModelessDialog&&!document.implementation)){;(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked;}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip",settings);this.tOpacity=helper.parent.css("opacity");this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).mouseover(save).mouseout(hide).click(hide);},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')
$(this).css('position','relative');});}});}:function(){return this;},unfixPNG:IE?function(){return this.each(function(){$(this).css({'filter':'',backgroundImage:''});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]();});},url:function(){return this.attr('href')||this.attr('src');}});function createHelper(settings){if(helper.parent)
return;helper.parent=$('<div id="'+settings.id+'"><div class="background"><h3></h3><div class="body"></div></div><div class="bottom">&nbsp;</div></div>').appendTo(document.body).hide();if($.fn.bgiframe)
helper.parent.bgiframe();helper.title=$('h3',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent);}
function settings(element){return $.data(element,"tooltip");}
function handle(event){if(settings(this).delay)
tID=setTimeout(show,settings(this).delay);else
show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}
function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))
return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(null==bodyContent){bodyContent="Click here to visit this page";}
if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent);}
helper.body.show();}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;(part=parts[i]);i++){if(i>0)
helper.body.append("<br/><br/>");helper.body.append(part);}
helper.body.hideWhenEmpty();}else{helper.title.html(title).show();helper.body.hide();}
if(settings(this).showURL&&$(this).url())
helper.url.html($(this).url().replace('http://','')).show();else
helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)
helper.parent.fixPNG();handle.apply(this,arguments);}
function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(current).fade){if(helper.parent.is(":animated"))
helper.parent.stop().show().fadeTo(settings(current).fade,current.tOpacity);else
helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);}else{helper.parent.show();}
update();}
function update(event){if($.tooltip.blocked)
return;if(event&&event.target.tagName=="OPTION"){return;}
if(!track&&helper.parent.is(":visible")){$(document.body).unbind('mousemove',update)}
if(current==null){$(document.body).unbind('mousemove',update);return;}
helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;var right='auto';if(settings(current).positionLeft){right=$(window).width()-left;left='auto';}
helper.parent.css({left:left,right:right,top:top});}
var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+5+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right");}
if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight-20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom");}}
function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()};}
function hide(event){if($.tooltip.blocked)
return;if(tID)
clearTimeout(tID);current=null;var tsettings=settings(this);function complete(){helper.parent.removeClass(tsettings.extraClass).hide().css("opacity","");}
if((!IE||!$.fn.bgiframe)&&tsettings.fade){if(helper.parent.is(':animated'))
helper.parent.stop().fadeTo(tsettings.fade,0,complete);else
helper.parent.stop().fadeOut(tsettings.fade,complete);}else
complete();if(settings(this).fixPNG)
helper.parent.unfixPNG();}})(jQuery);};;$(document).ready(function(){$('#rightColumn .custom_hover').click(function()
{if(!$('#rightColumn .custom_button').hasClass('active')){$('#rightColumn .hover_menu').fadeIn('fast');$('#rightColumn .custom_button').addClass('active');}
else{$('#rightColumn .hover_menu').fadeOut('fast');$('#rightColumn .custom_button').removeClass('active');}
return false;});$('#mainCenter .custom_hover').click(function()
{if(!$('#mainCenter .custom_button').hasClass('active')){$('#mainCenter .hover_menu').fadeIn('fast');$('#mainCenter .custom_button').addClass('active');}
else{$('#mainCenter .hover_menu').fadeOut('fast');$('#mainCenter .custom_button').removeClass('active');}
return false;});});