/*
	This is the global js file contains all the information about banner,menu and the   contents are copyrighted by alliance infocom www.allianceinfocom.net
*/

/*-------Following class declared menu items--------------*/

function Menu(name,title,url){
	this.name=name;
	this.title=title;
	this.url=url;
}

/*-----------Creating Left Menu array----------------------*/
var gLeftMenu=new Array();
gLeftMenu[gLeftMenu.length]=new Menu("lm1","ABOUT US","about.htm");
gLeftMenu[gLeftMenu.length]=new Menu("lm2","PROJECTS","project.htm");
gLeftMenu[gLeftMenu.length]=new Menu("lm3","SERVICES","services.htm");
gLeftMenu[gLeftMenu.length]=new Menu("lm4","CONTACT US","contact.htm");
gLeftMenu[gLeftMenu.length]=new Menu("lm5","HOME","index.htm");

/*-------------Function to Add Left Menu---------------------*/
function addMenu(){
	var str='<table border="0" cellpadding="0" cellspacing="0" width="100%">';
	var url=location.href;
	for(var i=0;i<gLeftMenu.length;i++){
		str+='<tr><td class="leftmenu">';
		var regex=new RegExp(gLeftMenu[i].url,"i");
		if(regex.test(url)){
			str+='<br><font color="#663399"><div align="right">'+gLeftMenu[i].title+'</div></font>';
		}else{
			str+='<br><div align="right"><a href="'+gLeftMenu[i].url+'">'+gLeftMenu[i].title+'</div></a>';
		}

		str+='</td></tr>';
	}
	str+='</table>';
	document.getElementById("idLeftMenu").bgColor='#A6DCE2'
	document.getElementById("idLeftMenu").width='15%'
	document.getElementById("idLeftMenu").innerHTML=str;
}
/*----------------- Function to Add Footer --------------------------*/
function addFotter1(){
	idFoot1=document.getElementById("idFotter1")
	idFoot1.bgColor='#A6DCE2';
		var str='<div align="right">'
		str+='<font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">' 
        str+='&copy; Belmar Properties and Investments., All rights reserved <br>'
        str+='Designed by</font><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif"> '
        str+='<a href="http://www.allianceinfocom.net/" target="_blank">alliance infocom</a>' 
        str+='</font></div>'
		idFoot1.innerHTML=str
}		


        




