﻿// JScript File

// var m=0;
//  var speed=100;
//function scrollPics() {
//     document.getElementById('div1').style.left=m+'px';
//     document.getElementById('div2').style.left=n+'px';     
//   m--;
//   n--;
//if(m==-2686) {
//   m=2686;
// }
//if(n==-2686) {
//   n=2686;
// }
//setTimeout('scrollPics()',speed);
// } 
//window.onload=function() 
//{
//   scrollPics();
//   document.getElementById("divstory01").style.display  = "none";  
//   document.getElementById("divstory02").style.display  = "none"; 
//   document.getElementById("divstory03").style.display  = "none";
// }

// 
//	           function temp() 
//	           {
//	               var MyMar=setInterval(scrollPics,speed)
//	               clearInterval(MyMar)
//	           }
//	            function temp2() 
//	            {
//	                var MyMar=setInterval(scrollPics,speed)
//	                MyMar=setInterval(scrollPics,speed)
//	            }

	           
//  document.getElementById('demo1').style.left=m+'px';
//     document.getElementById('demo2').style.left=n+'px';     
//   m--;
//   n--;
//if(m==-2686) {
//   m=2686;
// }
//if(n==-2686) {
//   n=2686;
// }
//setTimeout('Marquee()',speed);
// } 

	            


//	            var length;
//        function move() {
//            inner = document.getElementById("demo1");
//            margin = parseInt(inner.style.marginRight.substr(0, inner.style.marginRight.length - 2));
//            if (inner.offsetLeft < 0 - length) margin = 0 - length;
//            inner.style.marginRight = (margin + 2) + "px";
//        }
//        window.onload = function() {
//            setInterval("move()", 18);
//            window_width = (window.innerWidth) ? window.innerWidth : document.body.clientWidth;
//            length = window_width - document.getElementById("demo1").offsetLeft;
//        } 
//	    
  function showdiv(divname)
    {
    
       hidediv();
       //document.getElementById("tdindex").style.backgroundColor="Gray";              
       //document.body.bgColor="Gray";          
       document.getElementById(divname).style.display  = "block";   
       show(divname,0,0); 
    }
     function hidediv()
    {
       
   document.getElementById("divstory01").style.display  = "none";  
   document.getElementById("divstory02").style.display  = "none"; 
   document.getElementById("divstory03").style.display  = "none";
        
    }
    function pausediv1()
 {  
     //document.getElementById('div1').style.left = 0
      //document.getElementById('div1').style.left= m +'px';
     //document.getElementById('div2').style.left= n +'px';     
     //alert(m);
//   m=1;
//   n=1;
  
//if(m==-2686) {
//   m=2686;
// }
//if(n==-2686) {
//   n=2686;
// }
//setTimeout('pausediv1()',speed);
     
 }
 
 function MM_swapImgRestore() { //v3.0
 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function clear_mailtextbox()
{
if (document.myform.emailid.value == "Enter Email Id for e-Newsletter")
document.myform.emailid.value = ""; 
}

function clear_Searchtextbox()
{
if (document.myform.Search.value == "Enter word to Search")
document.myform.Search.value = "";
}
function Assign_mailtextbox()
{
if (document.myform.emailid.value == "") 
document.myform.emailid.value = "Enter Email Id for e-Newsletter";
}
function Assign_Searchtextbox()
{
if (document.myform.Search.value =="")
document.myform.Search.value = "Enter word to Search";
}
