
function refreshLotusScroll(){lotuswndo.load('lotus');lcol.updateDims();}
function refreshHeavenScroll(){heavenwndo.load('heaven');hcol.updateDims();}
function lotusScrollTop(){var lypos=lotuswndo.getY();if(lypos<0){dw_scrollObj.scrollToId('lotuscont','pgtop','lotus',2000);}}
function lotusTxtEnter(){var lotusTxtArr=[];lotusTxtArr[0]="<p>Life has only one demand:</p><p>that you show up in the world</p><p>just as you are.</p>";lotusTxtArr[1]="<p>In actually living up to</p><p>our true human potential</p><p>failure is impossible.</p>";lotusTxtArr[2]="<p>Be the change you wish</p><p>to see in the world.</p><p>&mdash;&nbsp;Gandhi</p>";lotusTxtArr[3]="<p>Life has only one demand:</p><p>that you show up in the world</p><p>just as you are.</p>";lotusTxtArr[4]="<p>In actually living up to</p><p>our true human potential</p><p>failure is impossible.</p>";$("#divLotusTextEnter").html(lotusTxtArr.random());}
function lotusTxtScroll(){var top='<div id="pgtop" style="position:absolute; top:0px; left:0px;"></div>';var lotus=$('#lotus');var heaven=$('#heaven');var lotuscontent;var heavencontent;var cloud1content;var cloud2content;var whichLotusTxt;var whichHeavenTxt;var whichCloudTxt;var tipHeaven="heavenTxtHeaven,BALLOON,true,LEFT,true,TEXTALIGN,'left',ABOVE,true,OFFSETY,'10',WIDTH,140,DURATION,10000,BALLOONIMGPATH,'Images/ttipBalloonThinkLeft'";var tipSpirit="heavenTxtSpirit,BALLOON,true,LEFT,true,TEXTALIGN,'left',ABOVE,true,OFFSETY,'10',WIDTH,140,DURATION,10000,BALLOONIMGPATH,'Images/ttipBalloonThinkLeft'";var tipYoga="heavenTxtYoga,BALLOON,true,LEFT,true,TEXTALIGN,'left',ABOVE,true,OFFSETY,'10',WIDTH,140,DURATION,10000,BALLOONIMGPATH,'Images/ttipBalloonThinkLeft'";var meaningHeaven='<a href="#" onfocus="if(this.blur)this.blur()" onclick="showHeavenMeans()" onmouseover="tTip('+tipHeaven+')" onmouseout="unTip()" onmousedown="unTip()">heaven !?</a>';var meaningSpirit='<a href="#" onfocus="if(this.blur)this.blur()" onclick="showHeavenMeans()" onmouseover="tTip('+tipSpirit+')" onmouseout="unTip()" onmousedown="unTip()">spirit !?</a>';var meaningYoga='<a href="#" onfocus="if(this.blur)this.blur()" onclick="showHeavenMeans()" onmouseover="tTip('+tipYoga+')" onmouseout="unTip()" onmousedown="unTip()">yoga !?</a>';var cloud1Arr=[];cloud1Arr[0]="heaven rocks&hellip;";cloud1Arr[1]="heaven is here&hellip;";cloud1Arr[2]="want to be in heaven now?";cloud1Arr[3]="heaven is hell&hellip;";cloud1Arr[4]="heaven waits&hellip;";cloud1Arr[5]="heaven is&hellip;";cloud1Arr[6]="heaven is loving&hellip;";cloud1Arr[7]="heaven doesn&rsquo;s mind&hellip;";cloud1Arr[8]="heaven is being&hellip;";var cloud2Arr=[];cloud2Arr[0]="what the hell are you waiting for?";cloud2Arr[1]="and now";cloud2Arr[2]="just die now";cloud2Arr[3]="to the separate ego";cloud2Arr[4]="behind fear&rsquo;s gate";cloud2Arr[5]="nearer than near";cloud2Arr[6]="every now and zen";cloud2Arr[7]="what happened";cloud2Arr[8]="al-one with others";lotuscontent=lotusArr.random();heavencontent=heavenArr.random();cloud1content=cloud1Arr.random();whichHeavenTxt=heavenArr.indexOf(heavencontent);whichCloudTxt=cloud1Arr.indexOf(cloud1content);setTimeout(function(){if(whichHeavenTxt===0){$('#divHeaven').html(meaningHeaven);}
else if(whichHeavenTxt===1){$('#divHeaven').html(meaningSpirit);}
else if(whichHeavenTxt===2){$('#divHeaven').html(meaningYoga);}},500);cloud2content=cloud2Arr[whichCloudTxt];$('#cloud1').html(cloud1content);$('#cloud2').html(cloud2content);$.ajax({url:lotuscontent,cache:false,success:function(html){$(lotus).html(top+html);},complete:function(){refreshLotusScroll();if($.browser.msie){setTimeout(function(){$('#lotus').css('visibility','visible');},500);}else{setTimeout(function(){$('#lotus').animate({opacity:1},500);},500);}}});$.ajax({url:heavencontent,cache:false,success:function(html){$(heaven).html(html);},complete:function(){var hyphenatorSettings={selectorfunction:function(){return $('#heavencont .hyph').get();}};Hyphenator.config(hyphenatorSettings);Hyphenator.run();}});}
function loadHeaven(content){$.ajax({url:content,cache:false,success:function(html){$('#heaven').html(html);},complete:function(){var hyphenatorSettings={selectorfunction:function(){return $('#heavencont .hyph').get();}};Hyphenator.config(hyphenatorSettings);Hyphenator.run();setTimeout(function(){refreshHeavenScroll();},20);if($.browser.msie){setTimeout(function(){$('#heaven').css('visibility','visible');},500);}else{$('#heaven').animate({opacity:1},500);}}});}
function fadeInCloud(){if($.browser.msie){$('.cloud').css('display','block');}else{$('.cloud').fadeIn(500);}}
function showCloud2(){$('#cloud1').fadeOut();$('#cloud2').fadeIn();}
function hideCloud2(){$('#cloud2').fadeOut();$('#cloud1').fadeIn();}
function fadeLotusHeaven(){var sumW;if(screen.height<=scrHeight){sumW=SW;}else{sumW=SWb;}
if($.browser.msie){$('#divPond1, #divPond2, #divPond3').css('display','block');}else{$('#divPond1, #divPond2, #divPond3').fadeIn(500);}
if(getBrowserWidth()-sumW>freeWidth){if($('#divLotus').css('display')==='none'){$('#divLotus').fadeIn(500);setTimeout(function(){fadeInCloud();},500);}}else{$('#fadedLotus').show();}}
function fadeHeaven(){var sumH;if(screen.height<=scrHeight){sumH=SH;}else{sumH=SHb;}
if(getBrowserHeight()-SH>freeHeight){$("#divHeaven").fadeIn(500);}}
function enablePond(){$("#divLotus").fadeIn(200,function(){$('#fadedLotus').hide();});$('.cloud').css('visibility','visible');if($('.cloud').css('display')==='none'){if($.browser.msie){$('.cloud').css('display','block');}else{$('.cloud').fadeIn(200);}
if(intro===0){fadeHeaven();}}}
function disablePond(){$("#divLotus").fadeOut(200);$('#fadedLotus').show();$('.cloud').css('visibility','hidden');}
function enableHeaven(){$('#divHeaven').css('visibility','visible');$('#divHeavenMeans').css('visibility','visible');}
function disableHeaven(){$('#divHeaven').css('visibility','hidden');$('#divHeavenMeans').css('visibility','hidden');}
function showHeavenMeans(){$('#divHeaven').animate({'bottom':'350px'},1000);$('#divHeavenMeans').show();refreshHeavenScroll();if($.browser.msie){setTimeout(function(){$('#heaven').css('visibility','visible');},500);}else{setTimeout(function(){$('#heaven, #heavenCtl').animate({opacity:1},500);},1000);}}
function hideHeavenMeans(){if($.browser.msie){$('#heaven').css('visibility','hidden');setTimeout(function(){$('#divHeavenMeans').hide();$('#divHeaven').animate({'bottom':'380px'},1000);},500);}else{$('#heaven, #heavenCtl').animate({opacity:0},500,function(){$('#divHeavenMeans').hide();$('#divHeaven').animate({'bottom':'380px'},1000);});}}
function resetLotus(){var lypos=lotuswndo.getY();if(lypos<0){if($.browser.msie){$('#lotus').css('visibility','hidden');}else{$('#lotus').animate({opacity:0},500);}
setTimeout(function(){refreshLotusScroll();},500);if($.browser.msie){setTimeout(function(){$('#lotus').css('visibility','visible');},800);}else{setTimeout(function(){$('#lotus').animate({opacity:1},500);},800);}}}
