<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Swami Vivekananda Quotes"
title_url="http://kkgadgets.googlepages.com"
directory_title="Inspirational Swami Vivekananda Quotes"
description="Swami
Vivekananda (January 12, 1863 - July 4, 1902),whose pre-monastic name
was Narendranath Dutta, was one of the most famous and influential
spiritual leaders of the philosophies of Vedanta and Yoga and a major
figure in the history of Hinduism and India. He was the chief disciple
of Ramakrishna Paramahamsa and the founder of Ramakrishna Math and
Ramakrishna Mission.
While he is widely credited with having uplifted his own nation, simultaneously he introduced Yoga and Vedanta to America and England with
his popular lectures and private discourses on Vedanta philosophy.
Vivekananda was the first known Hindu Swami to come to the West, where
he introduced Eastern thought at the World's Parliament of Religions,
in connection with the World's Fair in Chicago, in 1893. It was
there that he was catapulted to fame by his by wide audiences in
Chicago and then later elsewhere in America."
render_inline="optional"
author="KK"
author_link="http://kkgadgets.googlepages.com"
author_email="kkjkkj@gmail.com"
screenshot="http://vivekanandaquotes.googlepages.com/Swami_Vivekananda1.jpg"
thumbnail="http://vivekanandaquotes.googlepages.com/Vivekananda_bw_half.jpg"
category="lifestyle"
height="350"
width="300"
>
<Require feature="analytics" />
</ModulePrefs>

<UserPref name="Delay" display_name="Enter Delay (in seconds)" default_value="60"/>
<UserPref name="Order" display_name="Display Order" datatype="enum" default_value="s">
<EnumValue value="s" display_value="Sequential" />
<EnumValue value="r" display_value="Random" />
</UserPref>
<Content type="html">
<![CDATA[
<script>
// Track this gadget using Google Analytics.
_IG_Analytics("UA-2718908-1", "/vivekananda_quote");
</script>
  
<!-- check for active mirror -->
<script>
var mirrorList = ["http://livegoog.com/Gadgets","http://kkjkkj.hostingtribe.com/Gadgets"];
//"http://livegoog.x10hosting.com/Gadgets",
var lastActiveMirror="";
var activeMirror="";
var pingWait = 1000;
var retryDelay = 1000;
var monitorDelay = (__UP_Delay__-1) * 1000; // monitoring
if(monitorDelay < 2000)
    monitorDelay = 2000; // upper limit
var ImgArr = new Array(mirrorList.length);
initMirrorCheck();
//setTimeout(initMirrorCheck,1);
function initMirrorCheck()
{
	// reset
	activeMirror="";
	for(var i=0;i<mirrorList.length;i++)
	{
		ImgArr[i] = new Image();
                // requests within 5 seconds will be cached, others will not be (used for slower connections)
		ImgArr[i].src= mirrorList[i] + "/Ping/pingcheck.bmp?nocache=" + parseInt((new Date).getTime()/5000);
	}
	setTimeout(verifyMirror,pingWait);
}

function verifyMirror()
{
	for(var i=0;i<mirrorList.length;i++)
	{
                // check whether last active mirror is active -> then do nothing
                if(ImgArr[i].height>0 && mirrorList[i]== lastActiveMirror)
                {
                    // schedule next monitor check
                    setTimeout(initMirrorCheck,monitorDelay);
                    return;
                }
                
                // choose the first active mirror
		if(activeMirror == "" && ImgArr[i].height > 0)
		{
			activeMirror = mirrorList[i];                        			
		}
	}

	// determine next mirror check
	if(activeMirror == "")
        {
                // no disp code here
                nodisp();
                lastActiveMirror = "";                
		setTimeout(initMirrorCheck,retryDelay);
        }
	else
	{
		// call the function which does the work (iframe display)
                disp();
                lastActiveMirror = activeMirror;
                // disable constant mirror checking
		//setTimeout(initMirrorCheck,monitorDelay-pingWait);
        }
}
  
function disp()
{
var prefs = new _IG_Prefs();
var addr = activeMirror + '/Vivekananda/Vivekananda_quotes.php?delay=';

addr += __UP_Delay__;

// mode
if(prefs.getString("Order")=="r")
{
addr += '&random=true';
}
    
document.getElementById("svquote").src = addr;  
// adjust iframe width to 32% of screen width 
// document.getElementById("svquote").style.width = parseInt(screen.width*32/100) - 35;  
}

function nodisp()
{
  document.getElementById("svquote").src = "http://vivekanandaquotes.googlepages.com/error.html";
}
</script>
  
<meta name="keywords" content="inspirational quotes,spiritualism,india,hinduism,meditation,yoga,philosophy,motivation,religion,God,philanthropy,inspiration,buddhism,christianity,mystic,bhakthi,swami,vivekananda,vedas,upanishads,advaita,vedanta,ramakrishna,meditation,love,reincarnation,divine,spirituality,vedic,sanskrit,lovingkindness,bliss,happiness,healing,kundalini,enlightenment,awareness,karma,jnana,service" />
<table align="center">
<tr>
<td align="center">
 <iframe id="svquote" frameborder="0" scrolling="verticle" height="348" width="98%">
</td>
</tr>
</table>
]]></Content>
</Module>
