<!-- ----------------------------------------------------------- -->
<!--	Copyright 1999-2001 JilJil Interactive Media			 -->
<!--	This code is protected by applicable international laws. -->
<!--	Unauthorised use is completely prohibited.				 -->
<!-- ----------------------------------------------------------- -->

var browser;
var intTime = 11100;
var j = 0;
var k = j + 1;
var intSlidesArrayLength = 29;
var swPlay = true;
var swPause = false;

var browser=((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4));

if (browser)
{	
// create arrays for slides, messages and transitions

	slides=new Array(30);
	messages = new Array(30);
	transitions = new Array(30);

// set the values for transitions

	transitions[0] = 19;
	transitions[1] = 12;
	transitions[2] = 3;
	transitions[3] = 23;
	transitions[4] = 23;
	transitions[5] = 23;
	transitions[6] = 23;
	transitions[7] = 14;
	transitions[8] = 12;
	transitions[9] = 23;
	transitions[10] = 23;
	transitions[11] = 23;
	transitions[12] = 23;
	transitions[13] = 23; 
	transitions[14] = 12;  
	transitions[15] = 12;  
	transitions[17] = 12;  
	transitions[18] = 12;  
	transitions[19] = 12;  
	transitions[20] = 12;  
	transitions[21] = 12;  
	transitions[22] = 12;  
	transitions[23] = 12;  
	transitions[24] = 12;  
	transitions[25] = 12;  
	transitions[26] = 12;  
	transitions[27] = 12;  
	transitions[28] = 12;  
	transitions[29] = 12;  

// set the values for mrssages

	messages[0] = "This is a story of two hearts..."
	messages[1] = "Manoj lived in the prosperous city of Toronto in Canada.."
	messages[2] = "Life is fun in Toronto..."
	messages[3] = "But, it was a lonely one..."
	messages[4] = "Babitha, a dancer and a science student, lived in 'God's own country', Kerala, India"
	messages[5] = "They met and the marriage was arranged..Here Babitha is getting decorated by Manoj's sister.."
	messages[6] = "A beauty treatment by Manoj's sister.."
	messages[7] = "Now Babitha is ready, and she looks so beautiful.."
	messages[8] = "Where is Manoj...?"
	messages[9] = "'Kanya daanam' - a new life together starts.."
	messages[10] = "Manoj weds Babitha..."
	messages[11] = "Together, we make the life better.."
	messages[12] = "Today is the first day of the rest of our life..."
	messages[13] = "Our life shared together as husband and wife..."
	messages[14] = "Let your love may blossom and grow deep each year.. "
	messages[15] = "Let God bless our life..."
	messages[16] = "The couple with NTTF Principal and staff..."
	messages[17] = "..these are Manoj's local friends,..remember the old and golden days.."
	messages[18] = "Here comes Manoj's Malaysian friends..they worked together in Malaysia.."
	messages[19] = "Couple with Manoj's friends from NTTF where Manoj studied.."
	messages[20] = "..with niece and nephew..."
	messages[21] = "...with Manoj's sisters and their children..."
	messages[22] = "...with Babitha's uncle and aunty..."
	messages[23] = "...with Babitha's sister and family.."
	messages[24] = "...with friend's family..."
	messages[25] = "...with Babitha's parents..."
	messages[26] = "...with Manoj's parents..."
	messages[27] = "OK..time to have some sweets...."
	messages[28] = "Babitha coming to Manoj's house..."
    messages[29] = "Thank you..we appreciate your time..."
    
// initially load first 2 slides to make the transition smooth
    
	slides[j] = new Image();
	slides[j].src = "image" + j + ".jpg";
	slides[j+1] = new Image();
	slides[j+1].src = "image" + j + ".jpg";
}

// function : showMouseOver
// description : Change the color when mouse is over the action boxes

function showMouseOver(intDiv, clrFont, clrBorder)
{
	intDiv.style.borderColor = clrBorder;
	intDiv.style.color = clrFont;
}

// function : showMouseOut
// description : Change the color when mouse is out of the action boxes

function showMouseOut(intDiv, clrFont, clrBorder)
{
    var swOut = true;
    
    // If Playing, don't change color
    
    if ((intDiv.id == 'div3') && swPlay)
    {
        swOut = false;
    }

    // if paused, don't change color
    
    if ((intDiv.id == 'div3') && swPause)
    {
        swOut = false;
    }

    if ((intDiv.id == 'div4') && swPause)
    {
        swOut = false;
    }
    
    // change the color
        
    if (swOut)
    {
    intDiv.style.borderColor = clrBorder;
	intDiv.style.color = clrFont;    
	}
}

// function : showMouseClick
// description : Change the color when mouse is over the action boxes

function showMouseClick(intDiv,clrFont, clrBorder, clrFontFinish, clrBorderFinish)
{
    if (intDiv.id == 'div3') 
    {
        if (!swPlay)
        {
            playSlide(clrFont, clrBorder);
        }
    }        
}

function playSlide(clrFont, clrBorder, clrFontFinish, clrBorderFinish)
{
	if (swPlay)
	{
      	if (j <= intSlidesArrayLength)
    	    {
            init(clrFont,clrBorder);
          }
         else    
      		done(2,clrFontFinish, clrBorderFinish);
	}
	else
	{  
	    swPlay = true;
	    init(clrFont, clrBorder);
	}
	
}

function pauseSlide(clrFont,clrBorder)
{
	if (swPause)
	{
    	div4.style.borderColor = clrBorder;
    	div4.style.color = clrFont;
		swPause = false;
		swPlay = true;
	}
	else
	{
	    swPause = true;
		swPlay = false;
    	div3.style.borderColor = clrBorder;
    	div3.style.color = clrFont;
		done(2,clrFont,clrBorder);
	}
}

function fastForward()
{
	intTime = intTime - 500;
	if (intTime < 500)
	{
		intTime = 500;
	}
}
function init(clrFont, clrBorder) 
{
    div3.style.borderColor = clrBorder;
   	div3.style.color = clrFont;

	i = 2;
	setTimeout("start(" + i + ")", intTime);
	slides[j+1] = new Image();
	k = j + 1;

	if (k <= intSlidesArrayLength)
	{	
		slides[j+1].src = "image" + k + ".jpg";
	}

	k = j + 1;
	if (k <= intSlidesArrayLength)
	{	
		slides[j+1].src = "image" + k + ".jpg";
	}	
		
}

function start(i)
{
	if (swPlay)
	{
	obj = eval("div" + i );
	obj.filters.item(0).Transition = 8
	div1.filters.item(0).Transition = transitions[j]
	obj.filters.item(0).Apply()
	div1.filters.item(0).Apply()
	obj.innerText = messages[j]
	div1.innerHTML = "<IMG SRC='" + slides[j].src + "'>"
	j++
	obj.filters.item(0).Play()
	div1.filters.item(0).Play()
	}
}

function done(i, clrFont, clrBorder)
{
    j=0;
    div3.style.borderColor = clrBorder;
 	div3.style.color = clrFont;
 	swPlay = false;
}

function popup(strURL,strItem)
{
    var blnScrollBar, intHeight
    if (strItem == "invite")
    {
        intHeight = 530;
        blnScrollBar = "No"
    }
    if (strItem == "help")
    {
        intHeight = 530;
        blnScrollBar = "Yes"
    }       
    var newWin = open(strURL,'newwin',"toolbar=no,location=no,directories=no,status=no,scrollbars=" + blnScrollBar + ",resizable=yes,copyhistory=no,width=350,height=" + intHeight + "'");
 //   newWin.moveTo(0,0);
}