var gvarforlink=0;

var linktext =new Array();
var linkhref=new Array();
//var linkid=new Array();
//var linkonmouseover=new Array();
//var linkonmouseout=new Array();

linktext[0]='Home';
linkhref[0]='index.htm';
//linkid[0]='idhrefhome';
//linkonmouseover[0]='onmouseoverhref(\'idhrefhome\')';
//linkonmouseout[0]="onmouseouthref('idhrefhome')";

linktext[1]="About Us";
linkhref[1]='aboutus.htm';
//linkid[1]="idhrefaboutus";

linktext[2]="Admissions";
linkhref[2]='admin.htm';

linktext[3]="Courses";
linkhref[3]='courses.htm';

linktext[4]="Faculty Details";
linkhref[4]='faculty.htm';

linktext[5]="SGRRITS Advantage";
linkhref[5]='adv.htm';

linktext[6]="Placement";
linkhref[6]='placement.htm';

function tdabc()
{
this.className="make";
	
}

function tdxyz()
{
this.className="onmouseovermake";
}

function abc()
{
this.style.color='yellow';


}
function xyz()
{
this.style.color='white';

}



function abc1()
{
this.style.color='red';
}
function xyz1()
{
this.style.color='blue';
}

function makelinkss(idoftable)
{
   
         row=document.getElementById(idoftable).rows;
		 document.getElementById(idoftable).cellSpacing="5";
		 for(var loop=0;loop<linktext.length;loop++)
		 {
				var  cell1 = document.createElement("TD");
				//cell1.setAttribute("className","onmouseovermake");
				cell1.className="onmouseovermake";
				cell1.onmouseover=tdabc;
                cell1.onmouseout=tdxyz;
                var anchorTag = document.createElement('a');	
				anchorTag.appendChild(document.createTextNode(linktext[loop]));
	     		anchorTag.setAttribute('href',linkhref[loop]);
			    anchorTag.setAttribute("className","make");
				 anchorTag.className="make";
				//anchorTag.setAttribute('id',linkid[loop]);
				//anchorTag.setAttribute('onmouseover','abc()');
				   //gvarforlink=loop;
				  anchorTag.style.color="white";
				  anchorTag.onmouseover=abc;
				  anchorTag.onmouseout=xyz;
				//anchorTag.setAttribute('onmouseout', linkonmouseout[loop]);
				//anchorTag.setAttribute('style', "text-decoration:none;color:#0000CC;");
				cell1.appendChild(anchorTag);
				row[0].appendChild(cell1);
          }
         

}




function makelinkss2(idoftable)
{
   
         row=document.getElementById(idoftable).rows;
		 for(var loop=0;loop<linktext.length;loop++)
		 {
				var  cell1 = document.createElement("TD");
		        var anchorTag = document.createElement('a');	
				anchorTag.appendChild(document.createTextNode(linktext[loop]));
	     		anchorTag.setAttribute('href',linkhref[loop]);
			    anchorTag.setAttribute("className","make2");
				anchorTag.style.color="blue";
				 anchorTag.onmouseover=abc1;
				  anchorTag.onmouseout=xyz1;
				//anchorTag.setAttribute('id',linkid[loop]);
				//anchorTag.setAttribute('onmouseover','abc()');
				   //gvarforlink=loop;
				  //anchorTag.onmouseover="abc()";
				//anchorTag.setAttribute('onmouseout', linkonmouseout[loop]);
				//anchorTag.setAttribute('style', "text-decoration:none;color:#0000CC;");
				cell1.appendChild(anchorTag);
				row[0].appendChild(cell1);
          }
		  
		  var table = document.getElementById(idoftable); 
         rowCount = table.rows.length;
			row=table.insertRow(rowCount);
			celll=row.insertCell(0);
			cell1.valign="down";
					celll.align="center";
					celll.height="2px";
					celll.colSpan=linktext.length;
					celll.innerHTML="<hr  size='1' color='#CCCCCC' width='96%' noshade> <a href='http://www.arsalsoftware.com' title='Website @ Rs 5000 Only' style='text-decoration:none; color:#000000;font:Verdana; font-size:16px;font-style:normal;' target='_blank'> Copyrights © 2011 - 2012 SGRRITS. All rights reserved.  Designed and Developed by Arsal Software Solution </a>";
					  
}

function maketag()
{
var s="<td width=\"15%\"  align=\"left\"><img src=\"logo/logo1.png\" alt=\"SGRRITS\" hspace=\"5\"  vspace=\"6\" width=\"90\"  height=\"95\" >   </td>";
s=s+"<td width=\"75%\"  align=\"left\"><img src=\"logo/logo123.png\" alt=\"SGRRITS\"  vspace=\"4\" hspace=\"25\" width=\"570\" height=\"105\"  > </td>";
     s=s+" <td width=\"10%\"  align=\"center\"><img src=\"logo/admissionopen2.gif\" alt=\"SGRRITS\"  vspace=\"6\"  width=\"113\" height=\"35\" >   </td>";
             	
document.write(s);
}

