// JavaScript Document for JK Cement Website
function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
	window.open(theURL,winName,features);
}
function getFlashMovieObject(movieName)
{
  if (window.document[movieName])
  {return window.document[movieName];}
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName];
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {return document.getElementById(movieName);}
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

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 image(ch)
{
	document.getElementById('divText').innerHTML ="";
	if(ch=='Andhra')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/andhra_pradesh.gif" alt="Andhra Pradesh" width="160" height="160" border="0" usemap="#AndhraMap" id="AndhraMap" />';
	}
	else if(ch=='Arunachal')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/arunachal_pradesh.gif" alt="Andhra Pradesh" width="160" height="160" border="0" usemap="#ArunachalMap" id="ArunachalMap" />';
	}
	else if(ch=='Assam')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/assam.gif" width="160" height="160" alt="" border="0" usemap="#AssamMap" id="AssamMap" />';
	}
	else if(ch=='Bihar')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/bihar.gif" width="160" height="160" alt="" border="0" usemap="#BiharMap" id="BiharMap" />';
	}
	else if(ch=='Chattisgarh')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/chattisgarh.gif" width="160" height="160" alt="" border="0" usemap="#ChattisgarhMap" id="ChattisgarhMap" />';
	}
	else if(ch=='Delhi')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/delhi.gif" width="160" height="160" alt="" border="0" usemap="#DelhiMap" id="DelhiMap" />';
	}
	else if(ch=='Goa')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/goa.gif" width="160" height="160" alt="" border="0" usemap="#GoaMap" id="GoaMap" />';
	}
	else if(ch=='Gujrat')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/gujrat.gif" width="160" height="160" alt="" border="0" usemap="#GujratMap" id="GujratMap" />';
	}
	else if(ch=='Haryana')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/haryana.gif" width="160" height="160" alt="" border="0" usemap="#HaryanaMap" id="HaryanaMap" />';
	}
	else if(ch=='HP')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/hp.gif" width="160" height="160" alt="" border="0" usemap="#HimachalMap" id="HimachalMap" />';
	}
	else if(ch=='JK')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/jnk.gif" width="160" height="160" alt="" border="0" usemap="#JNKMap" id="JNKMap" />';
	}
	else if(ch=='Jharkhand')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/jharkhand.gif" width="160" height="160" alt="" border="0" usemap="#JharkhandMap" id="JharkhandMap" />';
	}
	else if(ch=='Karnataka')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/karnataka.gif" width="160" height="160" alt="" border="0" usemap="#KarnatakaMap" id="KarnatakaMap" />';
	}
	else if(ch=='Kerela')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/kerela.gif" width="160" height="160" alt="" border="0" usemap="#KerelaMap" id="KerelaMap" />';
	}
	else if(ch=='MP')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/madhyap.gif" width="160" height="160" alt="" border="0" usemap="#MadhyaPMap" id="MadhyaPMap" />';
	}
	else if(ch=='Maharashtra')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/maharashtra.gif" width="160" height="160" alt="" border="0" usemap="#MaharashtraMap" id="MaharashtraMap" />';
	}
	else if(ch=='Manipur')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/manipur.gif" width="160" height="160" alt="" border="0" usemap="#ManipurMap" id="ManipurMap" />';
	}
	else if(ch=='Meghalaya')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/meghalya.gif" width="160" height="160" alt="" border="0" usemap="#MeghalayaMap" id="MeghalayaMap" />';
	}
	else if(ch=='Mizoram')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/mizoram.gif" width="160" height="160" alt="" border="0" usemap="#MizoramMap" id="MizoramMap" />';
	}
	else if(ch=='Nagaland')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/nagaland.gif" width="160" height="160" alt="" border="0" usemap="#NagalandMap" id="NagalandMap" />';
	}
	else if(ch=='Nepal')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/nepal.gif" width="160" height="160" alt="" border="0" usemap="#NepalMap" id="NepalMap" />';
	}
	else if(ch=='Orissa')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/orissa.gif" width="160" height="160" alt="" border="0" usemap="#OrissaMap" id="OrissaMap" />';
	}
	else if(ch=='Punjab')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/punjab.gif" width="160" height="160" alt="" border="0" usemap="#PunjabMap" id="PunjabMap" />';
	}
	else if(ch=='Rajasthan')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/rajasthan.gif" width="160" height="160" alt="" border="0" usemap="#RajasthanMap" id="RajasthanMap" />';
	}
	else if(ch=='Sikkim')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/sikkim.gif" width="160" height="160" alt="" border="0" usemap="#SikkimMap" id="SikkimMap" />';
	}
	else if(ch=='Tamil')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/tamilnadu.gif" width="160" height="160" alt="" border="0" usemap="#TamilMap" id="TamilMap" />';
	}
	else if(ch=='Tripura')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/tripura.gif" width="160" height="160" alt="" border="0" usemap="#TripuraMap" id="TripuraMap" />';
	}
	else if(ch=='UP')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/uttarp.gif" width="160" height="160" alt="" border="0" usemap="#UttarPMap" id="UttarPMap" />';
	}
	else if(ch=='Uttaranchal')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/uttaranchal.gif" width="160" height="160" alt="" border="0" usemap="#UttaranchalMap" id="UttaranchalMap" />';
	}
	else if(ch=='WestB')
	{
		document.getElementById('divStateImage').innerHTML ='<img src="images/contact/westb.gif" width="160" height="160" alt="" border="0" usemap="#WestBMap" id="WestBMap" />';
	}
	
}
function statetext(data)
{
	document.getElementById('divText').innerHTML =data;
	//if(ch=='AN')
	{
		//document.getElementById('imgState').src ="images/states/patna.gif";// imgState	
	}
}