/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Codewise Lite - JavaScript Library for RanjSingh.com

 Copyright (c) 2004-2008 Codewise Systems Inc. & Twisted Lime Media Inc. 
All rights reserved.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

var WTF='WTF?!?';var agent='';if(navigator.userAgent){agent=navigator.userAgent.toLowerCase();}else{agent=navigator.appVersion.toLowerCase();};var is_ie=(agent.indexOf('msie')!=-1);var is_ie7=(is_ie&&(agent.indexOf('msie 7.0')!=-1));var is_ie7up=(is_ie&&is_ie7);var is_safari=(agent.indexOf('safari')!=-1);var URL=location.href;var URLProtocol=location.protocol;var URLHostName=location.hostname;var URLPort=location.port;var URLPath=location.pathname;var URLHash=location.hash;var URLSearch=location.search;if(URL.indexOf('?')!=-1){URLMinusQueryStringTemp=URL.split('\\');URLMinusQueryString=URLMinusQueryStringTemp[0];}else{URLMinusQueryString=URL;};if((fDPO=='undefined')||(fDPO==null)){var fDPO='';};if((mFPO=='undefined')||(mFPO==null)){var mFPO='';};var scr_W=screen.width;var scr_H=screen.height;var win_IH;var win_ISH;function dEV(){if(window.innerHeight){win_IH=window.innerHeight;win_ISH=document.height;}else if((document.documentElement)&&(document.documentElement.clientHeight)){win_IH=document.documentElement.clientHeight;win_ISH=document.documentElement.scrollHeight;}else if(document.body){win_IH=document.body.clientHeight;win_ISH=document.body.scrollHeight;};if(document.body.scrollHeight){win_ISH=document.body.scrollHeight;};if(document.height){win_ISH=document.height;};if(document.documentElement.scrollHeight){win_ISH=document.documentElement.scrollHeight;};if(is_ie7){win_ISH=document.documentElement.scrollHeight;};};function gCOT(){if(document.getElementsByTagName){tAArray=document.getElementsByTagName('a');tDivArray=document.getElementsByTagName('div');tIFrameArray=document.getElementsByTagName('iframe');tImgArray=document.getElementsByTagName('img');tLiArray=document.getElementsByTagName('li');tObjectArray=document.getElementsByTagName('object');tPArray=document.getElementsByTagName('p');tSpanArray=document.getElementsByTagName('span');tHrArray=document.getElementsByTagName('hr');};};var flashinstalled=0;var flashversion=0;var FlashPlayerVersionRequired=8;var FlashPlayerPluginObject='';var FlashMSDetect="false";var QuickTimePlayerInstalled=0;var QuickTimePlayerVersion=0;var QuickTimePlayerVersionRequired=1;var QuickTimePlayerPluginObject='';var QuickTimePlayerMSDetect="false";if((navigator.plugins)&&(navigator.plugins.length>0)){FlashPlayerPluginObject=navigator.plugins['Shockwave Flash'];if(FlashPlayerPluginObject){flashinstalled=2;if(FlashPlayerPluginObject.description){pluginDescription=FlashPlayerPluginObject.description;flashversion=pluginDescription.charAt(pluginDescription.indexOf('.')-1);};}else{flashinstalled=1;if(navigator.plugins['Shockwave Flash 2.0']){flashinstalled=2;flashversion=2;};};for(loop00=0;loop00<navigator.plugins.length;loop00++){if(navigator.plugins[loop00].name.indexOf('QuickTime')!=-1){QuickTimePlayerInstalled=1;QuickTimePlayerVersion=parseFloat(navigator.plugins[loop00].name.substring(18));};};}else if((navigator.mimeTypes)&&(navigator.mimeTypes.length)){FlashPlayerPluginObject=navigator.mimeTypes['application/FlashPlayerPluginObject-shockwave-flash'];if((FlashPlayerPluginObject)&&(FlashPlayerPluginObject.enabledPlugin)){flashinstalled=2;}else{flashinstalled=1;};}else{FlashMSDetect="true";QuickTimePlayerMSDetect="true";};var eFM_ObjectTagHTML='';var eFM_EmbedTagHTML='';function embedFlashMovie(eFM_Filename,eFM_Container,eFM_PlayerVersion,eFM_Width,eFM_Height,eFM_OptionalParameters){if(document.getElementById(eFM_Container)){var e_FC=document.getElementById(eFM_Container);var eFM_IdAttribute01HTML='';var eFM_IdAttribute02HTML='';if(eFM_OptionalParameters){eFM_Temp01=eFM_OptionalParameters.split(',');for(loop00=0;loop00<eFM_Temp01.length;loop00++){eFM_Temp02=eFM_Temp01[loop00].split('=');if(eFM_Temp02[0]=='id'){eFM_IdAttribute01HTML+='id="'+eFM_Temp02[1]+'" ';eFM_IdAttribute02HTML+='name="'+eFM_Temp02[1]+'" ';};};};if(eFM_Filename.indexOf('http:\/\/')==-1){eFM_Filename='\/media\/flash\/'+eFM_Filename;};eFM_ObjectTagHTML+='<object '+eFM_IdAttribute01HTML+'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version='+eFM_PlayerVersion+',0,0,0" width="'+eFM_Width+'" height="'+eFM_Height+'">';eFM_ObjectTagHTML+='<param name="movie" value="'+eFM_Filename+'" \/>';eFM_EmbedTagHTML+='<embed '+eFM_IdAttribute02HTML+'pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" type="application\/x-shockwave-flash" src="'+eFM_Filename+'" width="'+eFM_Width+'" height="'+eFM_Height+'"';if(eFM_OptionalParameters){for(loop00=0;loop00<eFM_Temp01.length;loop00++){eFM_Temp02=eFM_Temp01[loop00].split('=');if(eFM_Temp02[0]!='id'){eFM_ObjectTagHTML+='<param name="'+eFM_Temp02[0]+'" value="'+eFM_Temp02[1]+'" />';eFM_EmbedTagHTML+=' '+eFM_Temp02[0]+'="'+eFM_Temp02[1]+'"';};};};eFM_EmbedTagHTML+='><\/embed>';eFM_ObjectTagHTML+=eFM_EmbedTagHTML+'<\/object>';if((flashinstalled==2)&&(flashversion>=eFM_PlayerVersion)){e_FC.innerHTML=eFM_ObjectTagHTML;};}else{};};var eQTM_ObjectTagHTML='';var eQTM_EmbedTagHTML='';function embedQuickTimeMovie(eQTM_Filename,eQTM_Container,eQTM_PlayerVersion,eQTM_Width,eQTM_Height,eQTM_OptionalParameters){if(document.getElementById(eQTM_Container)){var e_QC=document.getElementById(eQTM_Container);var eQTM_IdAttribute01HTML='';var eQTM_IdAttribute02HTML='';if(eQTM_OptionalParameters){eQTM_Temp01=eQTM_OptionalParameters.split(',');for(loop00=0;loop00<eQTM_Temp01.length;loop00++){eQTM_Temp02=eQTM_Temp01[loop00].split('=');if(eQTM_Temp02[0]=='id'){eQTM_IdAttribute01HTML+='id="'+eQTM_Temp02[1]+'" ';eQTM_IdAttribute02HTML+='name="'+eQTM_Temp02[1]+'" ';}else if((eQTM_Temp02[0]=='controller')&&(eQTM_Temp02[1]=='true')){eQTM_Height+=16;};};};if(eQTM_Filename.indexOf('http:\/\/')==-1){eQTM_Filename='\/media\/quicktime\/'+eQTM_Filename;};eQTM_ObjectTagHTML+='<object '+eQTM_IdAttribute01HTML+'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http:\/\/www.apple.com\/qtactivex\/qtplugin.cab" width="'+eQTM_Width+'" height="'+eQTM_Height+'">';eQTM_ObjectTagHTML+='<param name="type" value="video\/quicktime" \/>';eQTM_ObjectTagHTML+='<param name="src" value="'+eQTM_Filename+'" \/>';eQTM_EmbedTagHTML+='<embed '+eQTM_IdAttribute02HTML+'pluginspage="http:\/\/www.apple.com\/quicktime\/download\/" type="video\/quicktime" src="'+eQTM_Filename+'" width="'+eQTM_Width+'" height="'+eQTM_Height+'"';if(eQTM_OptionalParameters){for(loop00=0;loop00<eQTM_Temp01.length;loop00++){eQTM_Temp02=eQTM_Temp01[loop00].split('=');if(eQTM_Temp02[0]!='id'){eQTM_ObjectTagHTML+='<param name="'+eQTM_Temp02[0]+'" value="'+eQTM_Temp02[1]+'" />';eQTM_EmbedTagHTML+=' '+eQTM_Temp02[0]+'="'+eQTM_Temp02[1]+'"';};};};eQTM_EmbedTagHTML+='><\/embed>';eQTM_ObjectTagHTML+=eQTM_EmbedTagHTML+'<\/object>';if(QuickTimePlayerInstalled&&(QuickTimePlayerVersion>=eQTM_PlayerVersion)){e_QC.innerHTML=eQTM_ObjectTagHTML;};}else{};};function oPGI(cI){oPGISrc=cI.parentNode.href;oPGIWindowWidth=640;oPGIWindowHeight=480;for(loop00=0;loop00<iPLImagesArray.length;loop00++){if(iPLImagesArray[loop00].src==oPGISrc){oPGIWindowWidth=iPLImagesArray[loop00].width;oPGIWindowHeight=iPLImagesArray[loop00].height;};};oPGIWindowNameTemp='';oPGIWindowName='';oPGIWObj='';oPGIWindowNameTemp=oPGISrc.split('/');oPGIWindowName=oPGIWindowNameTemp[oPGIWindowNameTemp.length-1];for(loop00=0;loop00<oPGIWindowNameTemp.length;loop00++){oPGIWindowName=oPGIWindowName.replace('.','');oPGIWindowName=oPGIWindowName.replace('-','');oPGIWindowName=oPGIWindowName.replace('_','');};oPGIWObj=window.open('',oPGIWindowName,'top='+parseInt((scr_H-oPGIWindowHeight-80)/2)+',left='+parseInt((scr_W-oPGIWindowWidth)/2)+',location=no,status=no,width='+oPGIWindowWidth+',height='+oPGIWindowHeight);oPGIWObj.document.write('<html><head><meta http-equiv="Page-Enter" content="blendTrans(Duration=1.5)" \/><meta http-equiv="Page-Exit" content="blendTrans(Duration=1.5)" \/><style type="text\/css"><!-- html { overflow: hidden; } body { margin: 0px; padding: 0px; background-color: #000000; background-image: url(\/media\/images\/icons\/loading_01_inv.gif); background-repeat: no-repeat; background-position: center center; } #contentContainer { width: '+oPGIWindowWidth+'px; height: '+oPGIWindowHeight+'px; background-image: url('+oPGISrc+'); background-repeat: no-repeat; background-position: center center; } #imageDescription { position: absolute; left: 0px; bottom: 0px; width: '+oPGIWindowWidth+'px; overflow: visible; padding: 10px; color: #ffffaf; background-image: url(\/media\/images\/gui\/_image_description_bg.png); background-position: bottom left; font-size: 8pt; font-family: georgia, times, baskerville, serif; font-weight: bold; } --><\/style><\/head><body onload="self.focus();">');oPGIWObj.document.write('<div id="contentContainer"><\/div>');if((cI.alt)&&(cI.alt!='')&&(cI.alt!=' Click to open full-sized image... ')){oPGIWObj.document.write('<div id="imageDescription">'+cI.alt+'<\/div>');};oPGIWObj.document.write('<\/body><\/html>');oPGIWObj.document.title='www.RanjSingh.com';oPGIWObj.document.close();};var iSSHTML='';if(document.write){iSSHTML+=' #footerContainer { visibility: hidden; }';if(is_ie){iSSHTML+=' hr { display: none; }';iSSHTML+=' #footerContainer { margin-top: -84px; }';}else{
// iSSHTML+=' body#index h1, body#bio h1, body#news h1, body#newsArchive h1, body#music h1, body#purchase h1, body#shows h1, body#blog h1, body#lyrics h1, body#pictures h1, body#contacts h1, body#legalStuff h1, body#errorDocument404 h1 { color: #000000; }';
};if(is_safari){iSSHTML+=' html, body { overflow: scroll; }';};iSSHTML='<style type="text\/css" media="screen"><!--\n'+iSSHTML+'\n--><\/style>';document.write(iSSHTML);};function pI(){var e_HTML=document.getElementsByTagName('html').item(0);var e_BODY=document.getElementsByTagName('body').item(0);var e_PCO=document.getElementById('pageContainerOuter');var e_PCI=document.getElementById('pageContainerInner');var e_CCI=document.getElementById('contentContainerInner');var e_FC=document.getElementById('footerContainer');if(URL.indexOf('index.php')!=-1){};var e_CL='';for(loop00=0;loop00<tAArray.length;loop00++){e_CL=tAArray[loop00];if(e_CL.className=='menu'){if(e_CL.href==URLMinusQueryString){e_CL.className='menuOn';e_CL.onclick=function(){this.blur();return false;};}else{e_CL.onclick=function(){this.blur();};};};if(e_CL.className=='photoGallery'){iPLArray[iPLCount]=e_CL.href;iPLCount++;e_CL.onclick=function(){return false;};e_CL.title=e_CL.childNodes[0].alt;};};for(loop00=0;loop00<tSpanArray.length;loop00++){if(tSpanArray[loop00].className=='emailCloak'){if(tSpanArray[loop00].innerHTML.indexOf('(-a-)')!=-1){emailAddressHTMLTemp=tSpanArray[loop00].innerHTML.split('(-a-)');emailAddressHTML=emailAddressHTMLTemp[0]+'@'+emailAddressHTMLTemp[1];tSpanArray[loop00].innerHTML='<a class="emailLink" href="mailto:'+emailAddressHTML+'">'+emailAddressHTML+'<\/a>';};};};for(loop00=0;loop00<tImgArray.length;loop00++){e_CI=tImgArray[loop00];if(e_CI.className.indexOf('photoGallery')!=-1){e_CI.onclick=function(){oPGI(this);};};};var e_CS='';for(loop00=0;loop00<tSpanArray.length;loop00++){e_CS=tSpanArray[loop00];if(e_CS.className=='quotationMarkOpen'){e_CS.innerHTML='<img src="\/media\/images\/gui\/_quotation_mark_open.gif" alt="" \/>';}else if(e_CS.className=='quotationMarkClose'){e_CS.innerHTML='<img src="\/media\/images\/gui\/_quotation_mark_close.gif" alt="" style="vertical-align: bottom;" \/>';};};if(is_ie){var e_FC=document.getElementById('footerContainer');if(e_FC){};for(loop00=0;loop00<tHrArray.length;loop00++){if(tHrArray[loop00].className=='small'){tHrArray[loop00].outerHTML+='<div class="hr small"><\/div>';}else{tHrArray[loop00].outerHTML+='<div class="hr"><\/div>';};};};if(e_PCI.offsetHeight<Math.max(win_ISH,win_IH)){if(is_ie){e_PCI.style.height=(Math.max(win_ISH,win_IH)-80)+'px';}else{e_PCI.style.height=(Math.max(win_ISH,win_IH)-80)+'px';};}else{if(is_ie){e_PCI.style.height=e_PCI.offsetHeight+'px';};};if(win_ISH>win_IH){if(e_HTML){e_HTML.style.overflow='auto';};};if(e_PCI){e_PCI.style.backgroundImage='url(\/media\/images\/gui\/_content_bottom_bg.jpg)';};if(e_BODY){e_BODY.style.backgroundImage='url(\/media\/images\/gui\/_page_bottom_bg.jpg)';};if(e_FC){e_FC.style.visibility='visible';};if(e_CCI){if(e_CCI.className.length==0){e_CCI.className+='styled';}else{e_CCI.className+=' styled';};};};var iPLArray=new Array;var iPLImagesArray=new Array;var iPLCount=0;function iPL(){for(loop00=0;loop00<iPLArray.length;loop00++){iPLImagesArray[loop00]=new Image;iPLImagesArray[loop00].src=iPLArray[loop00];};};function aPI(){};onload=function(){dEV();gCOT();pI();aPI();iPL();};