 
function tabshighlight(this1)
{

    var home1src = document.getElementById("home1");
    var citizen1src = document.getElementById("Keycont1");
    var grc1src = document.getElementById("grc1");
    var direct1src = document.getElementById("direct1");
    var grv1src = document.getElementById("grv1");
    var pub1src = document.getElementById("pub1");
    var med1src = document.getElementById("med1");
    var coo1src = document.getElementById("coo1");
	 
/*	 home1src.className = "p1";
	 citizen1src.className = "p1";
	 grc1src.className = "p1";
	 direct1src.className = "p1";
	 grv1src.className = "p1";
	 pub1src.className = "p1";
	 med1src.className = "p1";  */
	 
	
	 //this1.className = "current";
	
	   
	 
	 
	 
}
function mainheader(item)
{
	//function for displaying the main header with the logo, ads and main menu options in the tabs
	
}


function delineate(str)
{


theleft = str.indexOf("=");
return str.substring(theleft+1,str.length);

//alert();
}










document.write
(
"<center>"+
"<table cellpadding='0' cellspacing='0' width='985px' border='0'>" +  
"<tr>"+
"<TD colSpan='2' valign='top'>"+
//"<b>NOTE: The site you are viewing is a Demo Version & for internal use</b>"+
"</TD>"+
"</TR>"+
"<tr>"+
"<td valign='top' height='20' width='220px' >"+
"<a href='http://www.aponline.gov.in'><img border='0' src='/apportal/images/APOnline-Final.jpg' alt='APOnline - Official Government Portal of Andhra Pradesh'></a>"+
"</td>"+
"<td align='right' background='/apportal/images/bgfinal.jpg'>"+

"<TABLE cellSpacing='0' cellPadding='0' border='0' align='right' width='745px'>"+

"<TR>"+

"<TD colspan='3' align='LEFT' style='COLOR: #ffffff'>&nbsp;</TD>"+
"<TD colspan='3' align='left'>"+
"<form name='searchform' method='post' action='/apportal/search/advancedsearch.asp?pageno=10' onsubmit='javascript:formvalidate_submit()'>" +
"&nbsp;<input type='text' name='text' size='25' value='' class='category'>" +
"<a href='javascript:formvalidate_submit()'>     <img src='/apportal/Images/search.gif' width='146' border='0' height='20' align='absmiddle'></a><br>" +

"</TD>"+

"</TD>"+
"<TD colspan='3' align='right' style='COLOR: #ffffff'>"+
"<table border=0 >"+
"<tr>"+
"<td>"+
//"<b><a href='/TeluguPortal/index.asp' style='COLOR: #ffffff'>Telugu Version</a></b>"+
"<b><a href='#' style='COLOR: #ffffff'>Telugu Version</a></b>"+
"</td>"+
"</tr>"+
"</table>"+

"<iframe  id='iframe1' align='top' src='/apportal/headers/DateTime.aspx'  name='iframe1' width='240' height='15' scrolling='no' frameborder='no'></iframe>"+
//"<span id='servertime'><input type='hidden' id='txthidden' runat='server'></input><script>javascript:getdate()</script></span>"+
"</TD>"+


"<TD colspan='3' align='right'><IMG src='/apportal/images/Govt-Logo-Final.jpg' alt='AP Government Logo'></TD>"+
"</TD>"+
"</TR>"+

"</TABLE>"+

"</td>"+
"</tr>" +
"<tr>"+
"<td height='20' colspan='2'>"+

	"<div id='dolphinnav'>"+
	"<ul>"+
	"<li><a href='/apportal/index.asp?i=1' title='Home' id = 'home1' onclick = 'tabshighlight(this)'><span>Home</span></a></li>"+	
	//"<li><a href='/apportal/HomePageLinks/AboutAPOnline.htm?i=2' id = 'citizen1' title='Citizens Charter' onclick = 'tabshighlight(this)'><span>Citizens Charter</span></a></li>"+
	"<li><a href='/apportal/departments/portallistoforgsbydepts.aspx?i=3' id = 'grc1' title='Departments' onclick = 'tabshighlight(this)'><span>Departments</span></a></li>"+
	"<li><a href='/apportal/contact/contacthome.html?=2' id = 'Keycont1' title='Key Contacts' onclick = 'tabshighlight(this)'><span>Key Contacts</span></a></li>"+
	"<li><a href='/apportal/webdirectory/webdirectory.html?=4' id = 'direct1' title='Directories' onclick = 'tabshighlight(this)'><span>Web Directories</span></a></li>"+
	//"<li><a href='/apportal/webdirectory/webdirectory.html?=4' id = 'direct1' title='Directories' onclick = 'tabshighlight(this)'><span>Web Directories</span></a></li>"+
	//"<li><a href='/apportal/HomePageLinks/Secretariat.htm?i=5' id = 'grv1' title='Grievances' onclick = 'tabshighlight(this)'><span>Grievances</span></a></li>"+
	"<li><a href='/apportal/Press%20Releases/census.html?i=6' id = 'pub1' title='Publications'onclick = 'tabshighlight(this)' ><span>Publications</span></a></li>"+
	"<li><a href='/apportal/HomePageLinks/MediaReleases.htm?i=7' id = 'med1' title='Media Releases' onclick = 'tabshighlight(this)'><span>Media Releases</span></a></li>"+
	//"<li><a href='/apportal/HomePageLinks/COO.html?i=8' id = 'coo1' title='Note from COO Desk' onclick = 'tabshighlight(this)'><span>Note from COO Desk</span></a></li>"+
	//"<li><a style='font-family:verdana;font-size:11px;color:#9B999A;text-decoration:none;' href='#'onClick='this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.emulate.aponline.gov.in');'><b>Make Homepage |</b></li>"+
	//"<a style="font-family:verdana;font-size:11px;color:#9B999A;text-decoration:none;" href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://emulate.aponline.gov.in');'><b>Make Homepage |</b>"+

	
"</ul>"+

"</td>"+
"<div>"+


"<MARQUEE style='COLOR: #ffffff'  onmouseover='this.scrollAmount=0' onmouseout='this.scrollAmount=1' scrollAmount='1' scrollDelay='1'>Connect with your Government through APOnline!!!</MARQUEE>"+
"</div>"+

"</table>"+


"</td>"+
"</tr>" +
"<tr>"+

"</TR>"+
"</table>"+
"</td>"+
"</tr>" +
"</table>"+
"</FORM>"


); 

call(delineate(location.href));




/*var currenttime = new Date()
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var serverdate=new Date(currenttime)

function padlength(what){
var output=(what.toString().length==1)? "0"+what : what
return output
}

function displaytime(){
serverdate.setSeconds(serverdate.getSeconds()+1)
var datestring=montharray[serverdate.getMonth()]+" "+padlength(serverdate.getDate())+", "+serverdate.getFullYear()
var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())

document.getElementById("servertime").innerHTML=datestring+" "+timestring+" "+"IST"
}
function getdate()
{
	setInterval("displaytime()", 1000);
}*/

function call(somevalue)
{
if (somevalue.length>2)
{
var a1src = document.getElementById("home1");
a1src.className = 'current';

}
        
        
    if (somevalue == 1)
    {
        var a1src = document.getElementById("home1");
        a1src.className = 'current';
    }
    
    
     if (somevalue == 2)
    {
        var a1src = document.getElementById("Keycont1");
        a1src.className = 'current';
    }
    
    
     if (somevalue == 3)
    {
        var a1src = document.getElementById("grc1");
        a1src.className = 'current';
    }
    
    
     if (somevalue == 4)
    {
        var a1src = document.getElementById("direct1");
        a1src.className = 'current';
    }
    
    
    
     if (somevalue == 5)
    {
        var a1src = document.getElementById("grv1");
        a1src.className = 'current';
    }
     if (somevalue == 6)
    {
        var a1src = document.getElementById("pub1");
        a1src.className = 'current';
    }
     if (somevalue == 7)
    {
        var a1src = document.getElementById("med1");
        a1src.className = 'current';
    }
     if (somevalue == 8)
    {
        var a1src = document.getElementById("coo1");
        a1src.className = 'current';
    }
    
    
    
    
    
}

	function func1(this1)
	{
	
	 var divsrc1 = document.getElementById("src1");
	 
	 var asrc1 = document.getElementById("a1");
	 var asrc2 = document.getElementById("a2");
	 var asrc3 = document.getElementById("a3");
	 //var asrc4 = document.getElementById("a4");
	 
	 asrc1.className = "p1";
	 asrc2.className = "p1";
	 asrc3.className = "p1";
	 //asrc4.className = "p1";
	 
	 
	 
	
	 
	    switch(this1.id)
	 {
	  case 'a1':
		
		divsrc1.innerHTML = "<TABLE id=Table4 height=180 cellSpacing=0 cellPadding=3 width=665 border=0  valign=top> "
			+"<TR>"
			
			+"	<TD class=portfolioimage vAlign=top width=45><IMG class=portfolioimage src=images/rtia01.gif></TD>"
			+"	<TD vAlign=top width=176><STRONG><A href=http://www.apic.gov.in/ target=_blank>Right "
			+"				To Information Act</STRONG></A><BR>"
			+"		Right Stating that every citizen has freedom of speech and expression</TD>"
			+"	<TD vAlign=top width=45><IMG src=images/govtorder01.gif></TD>"
			+"	<TD vAlign=top width=176><STRONG><A href=/apportal/departments/GosbyDepts.asp>Important Govt. "
			+"			Orders</A><BR>"
			+"		</STRONG>Orders by Andhra Pradesh Government </TD>"
			+"	<TD vAlign=top width=45><IMG src=images/tenders01.gif></TD>"
			+"	<TD vAlign=top width=176><STRONG><a href=https://tender.eprocurement.gov.in/ target=_blank>Tenders</a><BR>"
			+"		</STRONG>Know more about current tender notices</TD>"
			+"</TR>"
			+"<TR>"
			//+"	<TD vAlign=top width=45><IMG src=images/policiess.gif></TD>"
			//+"	<TD vAlign=top width=176><STRONG><a href=/apportal/departments/formsbyDepts.asp>Forms & Procedures</a><BR>"
			//+"		</STRONG>Snapshot of various Departments within"
			//+"	</TD>"
			
			+"	<TD vAlign=top width=45><IMG src=images/Assembly1.jpg></TD>"
			+"	<TD vAlign=top width=176><STRONG><a href=/apportal/HomePageLinks/legislative_assembly.html>AP Legislative Assembly</a><BR>"
			+"		</STRONG>Know more about AP Legislative Assembly..."
			+"	</TD>"
			
			//+"	<TD vAlign=top width=45><IMG src=images/schemes.gif></TD>"
			//+"	<TD vAlign=top width=176><a href=/apportal/HomePageLinks/Schemes.htm><STRONG>Schemes</STRONG></a><BR>"
			//+"		Government Schemes "
			//+"	</TD>"
			+"	<TD vAlign=top width=45><IMG src=images/Raj-bhavan.gif></TD>"
			+"	<TD vAlign=top width=176><a href=http://governor.ap.nic.in/ target=_blank><STRONG>Governor's Information</STRONG></a><BR>Know more about AP Governor..."
			
			+"	</TD>"			
			+"	<TD vAlign=top width=45><IMG src=images/Notifications.gif></TD>"
			+"	<TD vAlign=top width=176><a href=/apportal/HomePageLinks/notifications.html><STRONG>Notifications"
			+"		</STRONG></a><BR>Such as those for "
			+"		recruitments, for admission to academic and so on...."
			+"	</TD>"
			+"</TR>"
			+"<TR>"
			+"	<TD vAlign=top width=45><IMG src=images/Policies.gif></TD>"
			+"	<TD vAlign=top width=176><STRONG><a href=/apportal/contact/contacthome.html>Key Contacts</STRONG></a><BR>"
			+"		Find contact information of key people within AP Government</TD>"
			+"	<TD vAlign=top width=45><IMG src=images/Ministers.gif></TD>"
			+"	<TD vAlign=top width=176><STRONG><A href=/apportal/contact/listofcontacts.asp?id=01>Council of Ministers</STRONG></A><BR>"
			+"		Find details about the who's who of the Andhra Pradesh Government right here</TD>"
			+"  <TD vAlign=top width=45><IMG src=images/High-Court.gif></TD>"
			+"  <TD vAlign=top width=176><STRONG><A href=http://hc.ap.nic.in/ target=_blank>High Court</STRONG></A><BR>Know more about High Court..."
			+"</TR>"
		+"</TABLE>"

	 
	 break;
	 
	  case 'a2':
	 
	
		 divsrc1.innerHTML = "<TABLE id=Table2 height=160 cellSpacing=0 cellPadding=0 width=665 border=0  valign=top>"
			+"<TBODY>"
			+"	<TR>"
			+"		<TD vAlign=top width=8 ><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/culture_history.html>Culture, History, Fairs & Festivals</a></b></TD>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/Travel&Tourism.html>Travel & Tourism</b></a></TD>"
			+"		<TD vAlign=top width=8 colSpan=2 rowSpan=6><IMG src=images/browsebyTopic.gif></TD>"
			+"	</TR>"
			+"	<TR>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/legislative_assembly.html>Legislative Assembly</b></a></TD>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/investment_business.html>Investment, Business & Industry</a></b></TD>"
			
			+"	</TR>"
			+"	<TR>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/information_technology.html>Information Technology & Communications</b></a></TD>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/Educatiion_training.html>Education, Training & Scholarships</b></a></TD>"
			
			+"	</TR>"
			+"	<TR>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/Agriculture_irrigation.html>Agriculture & Irrigation</a></b></TD>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/rural_development.html>Rural Development</a></b></TD>"			
			
			+"	</TR>"
						+"	<TR>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/apportal/HomePageLinks/health_safety.html>Health & Safety</a></b></TD>"
			+"		<TD vAlign=top width=8><IMG height=22 src=images/blue.gif width=3></TD>"
			+"		<TD vAlign=top width=216><b><a href=/quick%20links/judiciary/judiciary.html>Judiciary</a></b></TD>"
			+"	</TR>"
			+"</TBODY>"
			+"</TABLE>"
	
			
		+"</TABLE>"
	 
	 break;
	 
	  case 'a3':
	  divsrc1.innerHTML = "<TABLE id=Table2 height=180 cellSpacing=0 cellPadding=0 width=665 border=0  valign=top>"
				+"<TR>"
				+"	<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=/Apportal/HomePageLinks/utilities.htm><b>Utilities</b> | </A>"
				+"		<A href=/Apportal/HomePageLinks/taxes.htm><b>Taxes</b></A><br>Need information about the payment various taxes to AP Government? </TD>"
				+"		<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=/Apportal/HomePageLinks/marketPrices.htm><b>Market Prices</b></A><br>Market Prices of essential commodities </TD>"
				+"	<TD vAlign=top colspan=2 rowspan=4 align=center><a href=https://secure.aponline.gov.in><IMG src=images/Online-Services.gif alt='Click here to avail APOnline services'></a></TD>"
				
				+"					</TR>"
				+"<TR>"
				+"	<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=/quick%20links/BusinessLifeCycle/index.html><b>Biz Life Cycle</b></A><br>Find information about Business Life Cycle</TD>"
				+"<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=/Apportal/HomePageLinks/Certificates.htm><b>Certificates | </A>"
				+"		<A href=/Apportal/HomePageLinks/liscPerm.htm>Licenses / Permits</A></b><br>Contains information on the various licenses and permits issued by the Andhra Pradesh Government</TD>"
				
				
				+"</TR>"
				+"<TR>"
				+"	<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=/Apportal/HomePageLinks/registrations.htm><b>Registrations</b></A><BR>Useful information for business firms, chit fund companies, and entrepreneurs wanting to register</TD>"
				+"</TD>"
				+"	<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=/Apportal/HomePageLinks/Secretariat.htm><b>Grievances to Departments</b></A><br>The various Grievances that are facilitated by APOnline for Secretariat Departments</TD>"
						
				+"</TR>"
				
				+"<TR>"
				+"	<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=http://www.aponline.gov.in/OnlineSearch/OnlineSearchDetails.aspx target=_blank><b>APOnline Trans Search</b></A><BR>Online verification of customer's transaction</TD>"
				+"</TD>"
				+"	<TD vAlign=top width=8><IMG src=images/redarrow.gif width=2 height=24></TD>"
				+"	<TD vAlign=top width=216><A href=http://www.aponline.gov.in/FRPTool/StatusRegistrationIndex.aspx target=_blank><b>Apply For APOnline Franchisee</b></A><br>Apply online for  APOnline Franchisee</TD>"
				+"</TR>"
			+"</TABLE>"
		+"</P>"
	



	 break;
	 
	
	 }
	 
	 this1.className = "selected";
	 
	}

        currentIndx=0;
        MyImages =new Array();

MyImages[0]="images/happy-new-year.gif";		
MyImages[1]="images/welcome.gif";
MyImages[2]="images/abroad3.gif";
MyImages[3]="images/Buddha.jpg";
MyImages[4]="images/Warangal.jpg";
MyImages[5]="images/RJYBridge.jpg";
MyImages[6]="images/Tiger.jpg";
MyImages[7]="images/Charminar.jpg";
MyImages[8]="images/Dance.jpg";



        MyImageDesc =new Array();
        MyImageDesc[0]='';
MyImageDesc[1]='';
MyImageDesc[2]='';
MyImageDesc[3]='';
MyImageDesc[4]='';




        imagesPreloaded = new Array(MyImages.length);
        for (var i = 0; i < MyImages.length ; i++) 
        {
            imagesPreloaded[i] = new Image(120,120);           
            imagesPreloaded[i]=MyImages[i];     
        }        
        function Linkvalid()
        {          
            document.avail.submit();
            document.avail1.submit();
        }

	function Nexter()
	{
	
		if (currentIndx<imagesPreloaded.length-1)
		{
		currentIndx=currentIndx+1;     
	
		document.SlideShow.src=imagesPreloaded[currentIndx]
		document.all['text1'].innerText =MyImageDesc[currentIndx]
		document.all['text1'].innerHTML =MyImageDesc[currentIndx]
			
		
		}
		else 
		{
		currentIndx=0
		document.SlideShow.src=imagesPreloaded[currentIndx]
		document.all['text1'].innerText =MyImageDesc[currentIndx]
		document.all['text1'].innerHTML =MyImageDesc[currentIndx]

		}
	
	}
	function Backer()
	{
	
		if(currentIndx==0)
		{		
			currentIndx=imagesPreloaded.length-1;
			document.SlideShow.src=imagesPreloaded[currentIndx]
			document.all['text1'].innerText =MyImageDesc[currentIndx]
			document.all['text1'].innerHTML =MyImageDesc[currentIndx]
		}
		else if (currentIndx>0)
		{	
			currentIndx=currentIndx-1;
			document.SlideShow.src=imagesPreloaded[currentIndx]
			document.all['text1'].innerText =MyImageDesc[currentIndx]
			document.all['text1'].innerHTML =MyImageDesc[currentIndx]
		}
		else 
		{
			currentIndx=0
			document.SlideShow.src=imagesPreloaded[currentIndx]
			document.all['text1'].innerText =MyImageDesc[currentIndx]
			document.all['text1'].innerHTML =MyImageDesc[currentIndx]
		}
			
	}


			
		
			var slideShowSpeed = 9500
			var crossFadeDuration = 3
			var Pic = new Array() 

Pic[0] = 'images/happy-new-year.gif'
Pic[1] = 'images/welcome.gif'
Pic[2] = 'images/abroad3.gif'
Pic[3] = 'images/Buddha.jpg'
Pic[4] = 'images/Warangal.jpg'
Pic[5] = 'images/RJYBridge.jpg'
Pic[6] = 'images/Tiger.jpg'
Pic[7] = 'images/Charminar.jpg'
Pic[8] = 'images/Dance.jpg'



var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]  
}
function openwin()
{
	
	var chkvalue=document.getElementById("chkValue");
	
	if(chkvalue.value == 0)
	{
		alert("Select your option.");
		return false;
	}
	else
	{
		
		
	
	
	var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
	var myoptions = 'scrollbars=yes,width=600,height=300,resizeable=no';
	var myfeatures=mybars+','+myoptions;
	var qid = "45";
	var option = chkvalue.value;
	var url = 'polls/result1.asp?qid=' + qid + '&option=' + option;

	window.open(url,'OpinionPoll',myfeatures);
	return true;
	}
	
}
function fnSetOption(aintValue) 
{
    var chk=document.getElementById("chkValue");
    chk.value=aintValue       
    
	//document.indexForm.chkValue.value=aintValue;
}

function openwin1(url)
{
	var mybars = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no';
	var myoptions = 'scrollbars=yes,width=600,height=300,resizeable=no';
	var myfeatures=mybars+','+myoptions;
	
	window.open(url,'OpinionPoll',myfeatures);
}
function runSlideShow()
{
	
   if (document.all)
   {
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()    
      
     
   }
   document.images.SlideShow.src = preLoad[j].src;
  
    
   if (document.all)
   {
      document.images.SlideShow.filters.blendTrans.Play();
      
   }
   j = j + 1;
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed);
}
		