// JavaScript Document

var currentPage = 1;

var totalPage = 4;

var intervalID; 



function Previous()

{

	//alert('prev');

	currentPage= currentPage - 1;

	if (currentPage < 1)

	currentPage = 4;

	

	document.getElementById('book').style.backgroundImage = "url('images/" + currentPage +".jpg')";

	

}



function Next()

{

	//alert('next');

	currentPage = currentPage + 1;

	if (currentPage > totalPage)

	currentPage = 1;



	document.getElementById('book').style.backgroundImage = "url('images/" + currentPage +".jpg')";

	

}



 function resetForm()

{

	

document.contact.name.value="";

document.contact.email.value = "";	

document.contact.subject.value = "";

document.contact.message.value = "";	

}



function submitForm()

{

	

		if ((document.contact.name.value=="")||(document.contact.email.value=="") ||(document.contact.subject.value=="")||(document.contact.message.value==""))

		

		{

			

			alert("Please fill all fields.");

		}	

		else

		{

		var emailID=document.contact.email.value;

	

		if (echeck(emailID)==false)

		{

			

			document.contact.email.focus();

			

		}

		else

		{

			document.contact.submit();	

			

		}

		}

}



function echeck(str) {



		var at="@"

		var dot="."

		var lat=str.indexOf(at)

		var lstr=str.length

		var ldot=str.indexOf(dot)

		

		if (str.indexOf(at)==-1){

		   alert("Invalid E-mail ID")

		   return false

		}



		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){

		   alert("Invalid E-mail ID")

		   return false

		}



		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){

		    alert("Invalid E-mail ID")

		    return false

		}



		 if (str.indexOf(at,(lat+1))!=-1){

		    alert("Invalid E-mail ID")

		    return false

		 }



		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){

		    alert("Invalid E-mail ID")

		    return false

		 }



		 if (str.indexOf(dot,(lat+2))==-1){

		    alert("Invalid E-mail ID")

		    return false

		 }

		

		 if (str.indexOf(" ")!=-1){

		    alert("Invalid E-mail ID")

		    return false

		 }



 		 return true					

	}	

	

	function setImg(obj)

	{

	document.getElementById(obj).style.cursor = "Pointer";

	document.getElementById(obj).style.backgroundImage = "url('images/" + obj + "_over.jpg')";

	}

	

function resetImg(obj)

{

	

	document.getElementById(obj).style.backgroundImage = "url('images/" + obj + "_back.jpg')";	

}

	

	

	

	function resetForm1()

{

	

document.makerequest.name.value="";

document.makerequest.email.value = "";	

document.makerequest.subject.value = "";

document.makerequest.message.value = "";	

}



function submitForm1()

{

	

		if ((document.makerequest.name.value=="")||(document.makerequest.email.value=="") ||(document.makerequest.subject.value=="")||(document.makerequest.message.value==""))

		

		{

			

			alert("Please fill all fields.");

		}	

		else

		{

		var emailID=document.makerequest.email.value;

	

		if (echeck(emailID)==false)

		{

			

			document.makerequest.email.focus();

			

		}

		else

		{

			document.makerequest.submit();	

			

		}

		}

}



function echeck(str) {



		var at="@"

		var dot="."

		var lat=str.indexOf(at)

		var lstr=str.length

		var ldot=str.indexOf(dot)

		

		if (str.indexOf(at)==-1){

		   alert("Invalid E-mail ID")

		   return false

		}



		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){

		   alert("Invalid E-mail ID")

		   return false

		}



		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){

		    alert("Invalid E-mail ID")

		    return false

		}



		 if (str.indexOf(at,(lat+1))!=-1){

		    alert("Invalid E-mail ID")

		    return false

		 }



		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){

		    alert("Invalid E-mail ID")

		    return false

		 }



		 if (str.indexOf(dot,(lat+2))==-1){

		    alert("Invalid E-mail ID")

		    return false

		 }

		

		 if (str.indexOf(" ")!=-1){

		    alert("Invalid E-mail ID")

		    return false

		 }



 		 return true					

	}	

	

	

	

	/*var scrollPos =0;



//var scrollt1="ksduiuefgeudfidfghidf";



//var scrollt1 = "<div style=\"width:133px; height:100px; background-image:url('images/001-copy.jpg');\"></div>      <div style=\"width:133px; height:100px; background-image:url('images/002-copy.jpg');\"></div>      <div style=\"width:133px; height:100px; background-image:url('images/003-copy.jpg');\"></div> ";



var scrollt1 = "<div style=\"width:135px; height:72px;color:red; \">gfhfghgfhgfhf</div>      <div style=\"width:135px; height:72px;color:red;\">dfgdfgbvfdgfdgdfgdf</div>      <div style=\"width:135px; height:72px;color:red;\">dfgdfgdsfgdfgbdfghdfh</div> ";



function moveText()

{

scrollPos = scrollPos + 2.0;





//if ((scrollPos % 20)==0)

//document.getElementById("scrollt").scrollTop = scrollPos;

//document.getElementById("scrollt").innerHTML =  scrollt1;



if((scrollPos % 90)  ==10)

{

	

	//alert(scrollPos);

	document.getElementById("scrollt").innerHTML = document.getElementById("scrollt").innerHTML + scrollt1;

	//scrollPos ++;

	//document.getElementById("scrollt1").scrollTop= scrollPos;

}



document.getElementById("scrollt1").scrollTop= scrollPos;







}



//}



//scrollPos++;

 //document.getElementById("scrollt").innerHTML +





function clearIntervalID()

{

window.clearInterval(intervalID);

}



function setIntervalID()

{

	

intervalID = window.setInterval("moveText()",25);

}

*/

 

 

 var scrollPos = 0;







//var scrollt = "<div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\" onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\"onclick=\"openHtml('veg');\">Vegetables</div><div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\" onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\" onclick=\"openHtml('fruit');\">Fruits</div><div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\"  onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\">Processed Foods ( Rice, Grains ) </div>    	<div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\"  onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\">Spices and Spice Powders</div><div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\"  onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\">Organic Vegetables and Fruits</div><div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\"  onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\">Organic Processed Foods</div><div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\"  onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\">Ready to serve Foods</div><div onmouseover=\"this.style.color='#128908';this.style.textDecoration='underline';\"  onmouseout=\"this.style.color='#000000'; this.style.textDecoration='none';\">Other Products</div>   <div style=\"width:258px; height:5px;\"></div>";



var scrollt = "<div style = \"width:15430px; height:100px;\"><img src=\"images/001-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/002-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div>       <img src=\"images/003-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>        <img src=\"images/004-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>        <img src=\"images/005-copy.jpg\" style=\"float:left;\"  />      <div style=\"width:30px;float:left; height:100px;\"></div>    <img src=\"images/006-copy.jpg\" style=\"float:left;\"  />    <div style=\"width:30px;float:left; height:100px;\"></div>      <img src=\"images/007-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>        <img src=\"images/008-copy.jpg\" style=\"float:left;\"  />   <div style=\"width:30px;float:left; height:100px;\"></div>       <img src=\"images/009-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>                <img src=\"images/011-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>        <img src=\"images/012-copy.jpg\" style=\"float:left;\"  />   <div style=\"width:30px;float:left; height:100px;\"></div>       <img src=\"images/013-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>        <img src=\"images/014-copy.jpg\" style=\"float:left;\" /> <div style=\"width:30px;float:left; height:100px;\"></div>         <img src=\"images/015-copy.jpg\" style=\"float:left;\"  />  <div style=\"width:30px;float:left; height:100px;\"></div>         <img src=\"images/017-copy.jpg\" style=\"float:left;\"  /> <div style=\"width:30px;float:left; height:100px;\"></div> <img src=\"images/018-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/020-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/021-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/022-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/023-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/024-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/025-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/026-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/027-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/028-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/029-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/030-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/031-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/032-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/033-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/034-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/035-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/036-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/037-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/038-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/039-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/040-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/041-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/042-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/043-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/044-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/045-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/046-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/047-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/048-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/049-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/050-copy.jpg\"  style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/051-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/052-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/053-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/054-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/055-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/056-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/057-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/058-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div></div> ";

<!--</div><img src=\"images/058-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/059-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/060-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/061-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/062-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/063-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/064-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/065-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/066-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/067-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/068-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/069-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/070-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/071-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/072-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/073-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/074-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/075-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/076-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/077-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/078-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/079-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/080-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/081-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/082-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/083-copy.jpg\" style=\"float:left;\" /><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/084-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/085-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/086-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/087-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/088-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/089-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/090-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/091-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/092-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/093-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/094-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/095-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/096-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/097-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/098-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/099-copy.jpg\" style=\"float:left;\"/><div style=\"width:30px;float:left; height:100px;\"></div><img src=\"images/100-copy.jpg\" style=\"float:left;\"/>



function moveText()

{

	//alert('comming');

scrollPos = scrollPos + 1;

//if ((scrollPos %600) == 0)

if (scrollPos == 1)

{

	

	document.getElementById("scrollt").innerHTML = document.getElementById("scrollt").innerHTML + scrollt;

}



//if (scrollPos == 14615)

//alert(scrollPos);

if (scrollPos == 4867)

{

document.getElementById("scrollt").scrollRight = 15430;

scrollPos = 1;

}





document.getElementById("scrollt").scrollLeft =  scrollPos ;

//scrollPos++;

//document.getElementById("scrollt1").style.display = block;

}



function clearIntervalID()

{

window.clearInterval(intervalID);

}



function setIntervalID()

{

	

intervalID = window.setInterval("moveText()",3);

}



function openLink(obj)

{

 window.open (obj + ".html", "_self");

 }







function openHtml(pagecontent)

{

//		openPage('product');		



	document.getElementById("innercontainer").innerHTML = eval(pagecontent + "_content");

	//if(pagecontent != product)

	//{

		//pagecontent = product;

		//document.getElementById('header').style.backgroundImage = "url('images/" + pagecontent + "_header.jpg')";	

	//}

}





var currentPage1 = 1;

var totalPage1 = 59;





function Previous1()

{

	//alert('prev');

	currentPage1= currentPage1 - 1;

	if (currentPage1 < 1)

	currentPage1 = 59;

	

	document.getElementById('gallery').style.backgroundImage = "url('images/gallery/" + currentPage1 +".jpg')";

	

}



function Next1()

{

	//alert('next');

	currentPage1 = currentPage1 + 1;

	if (currentPage1 > totalPage1)

	currentPage1 = 1;



	document.getElementById('gallery').style.backgroundImage = "url('images/gallery/" + currentPage1 +".jpg')";

	

}





/*var timerID = null;

    var timerRunning = false;

    var id,pause=0,position=0;

    function ticker() {

      var i,k,msg=" THIS IS WHERE YOUR MESSAGE GOES  ";

      k=(75/msg.length)+1;

      for(i=0;i<=k;i++) msg+=" "+msg;

      document.form2.ticker.value=

                    msg.substring(position,position+75);

      if(position++==38) position=0;

      id=setTimeout("ticker()",1000/10); 

    }

    function action() {

      if(!pause) {

        clearTimeout(id);

        pause=1; 

      }

      else {

        ticker();

        pause=0; 

      }

    }*/

	

	

	function openPop(obj)

{

	window.open(obj + ".html", "_blank",'width=550,height=250,status=1');

}// JavaScript Document
