/* SAVE */

function fnBuildTopBanner()
{
	var cTemp = "";
	cTemp = cTemp + "<table width='780' border='0' cellpadding='0' cellspacing='0'>";
	cTemp = cTemp + "<tr><td><img src='images/save_01.jpg' width='195' height='48' alt='Save' /></td><td><img src='images/save_02.jpg' width='195' height='48' alt='Save' /></td><td><img src='images/save_03.jpg' width='195' height='48' alt='Save' /></td><td><img src='images/save_04.jpg' width='195' height='48' alt='Save' /></td></tr>";
	cTemp = cTemp + "<tr><td><img src='images/save_05.jpg' width='195' height='132' alt='Save' /></td><td><img src='images/save_06.jpg' width='195' height='132' alt='Save' /></td><td><img src='images/save_07.jpg' width='195' height='132' alt='Save' /></td><td><img src='images/save_08.jpg' width='195' height='132' alt='Save' /></td></tr>";
	cTemp = cTemp + "<tr><td><img src='images/save_09.jpg' width='195' height='132' alt='Save' /></td><td><img src='images/save_10.jpg' width='195' height='132' alt='Save' /></td><td><img src='images/save_11.jpg' width='195' height='132' alt='Save' /></td><td><img src='images/save_12.jpg' width='195' height='132' alt='Save' /></td></tr>";
	cTemp = cTemp + "</table>";

	document.write(cTemp);
}

function fnBuildLeftColumn()
{
	var cTemp = "";
	cTemp = cTemp + "<table width='243' border='0' cellpadding='0' cellspacing='0'>";
	cTemp = cTemp + "<tr><td width='48' height='34'><img src='images/services-icon.gif' width='48' height='34' border='0' alt='' /></td><td width='195' class='heading' height='34' align='left'>SAVE SERVICES</td></tr>";
	cTemp = cTemp + "<tr><td colspan='2'>&nbsp;</td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='vision.html' class='leftLink'>Vision &amp; Mission</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='strategy.html' class='leftLink'>Our Strategies</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='child.html' class='leftLink'>Child Rights Cell</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='women.html' class='leftLink'>Women Development Cell</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='lrc.html' class='leftLink'>Labour Resource Center</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='aids.html' class='leftLink'>AIDS Intervention</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='tsunami.html' class='leftLink'>Tsunami Relief</a></td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='gallery.html' class='leftLink'>Photo Gallery</a></td></tr>";
	cTemp = cTemp + "<tr><td colspan='2'>&nbsp;</td></tr>";
	cTemp = cTemp + "<tr><td width='48' height='34'><img src='images/services-icon.gif' width='48' height='34' border='0' alt='' /></td><td width='195' class='heading' height='34' align='left'>Locations</td></tr>";
	cTemp = cTemp + "<tr><td colspan='2'>&nbsp;</td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='contactus.html' class='leftLink'>Main Office</a></td></tr>";
	cTemp = cTemp + "<tr><td colspan='2' align='left' class='locations'> SAVE<br />Tirupur<br />(91) 421 242 8100<br />(91) 421 242 8200</td></tr>";
	cTemp = cTemp + "<tr><td colspan='2'>&nbsp;</td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='contactus.html' class='leftLink'>Registered Office</a></td></tr>";
	cTemp = cTemp + "<tr><td colspan='2' align='left' class='locations'> SAVE<br />Nilakkottai<br />(91) 4543 233 892</td></tr>";
	cTemp = cTemp + "<tr><td colspan='2'>&nbsp;</td></tr>";
	cTemp = cTemp + "<tr><td width='48' align='center'><img src='images/bullet.jpg' width='12' height='15' border='0' alt='' /></td><td width='195' align='left'><a href='contactus.html' class='leftLink'>Tsunami Response Office</a></td></tr>";
	cTemp = cTemp + "<tr><td colspan='2' align='left' class='locations'> SAVE<br />Thenpathi<br />Nagaipattinam<br /><br /><br /></td></tr>";
	cTemp = cTemp + "</table>";

	document.write(cTemp);
}

function fnBuildBotColumn()
{
	var cTemp = "";
	cTemp = cTemp + "<table width='780' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>";
	cTemp = cTemp + "<tr>";
	cTemp = cTemp + "<td height='30' align='center' class='footer'>";
	cTemp = cTemp + "<a href='index.html' class='botLink'>Home</a> &nbsp;|&nbsp; ";
	cTemp = cTemp + "<a href='functions.html' class='botLink'>Genesis of SAVE</a> &nbsp;|&nbsp; ";
	cTemp = cTemp + "<a href='vision.html' class='botLink'>SAVE Services</a> &nbsp;|&nbsp; ";
	cTemp = cTemp + "<a href='doc.html' class='botLink'>Document &amp; Research</a> &nbsp;|&nbsp; ";
	cTemp = cTemp + "<a href='partners.html' class='botLink'>Funding Partners</a> &nbsp;|&nbsp; ";
	cTemp = cTemp + "<a href='sitemap.html' class='botLink'>Site Map</a> &nbsp;|&nbsp; ";
	cTemp = cTemp + "<a href='contactus.html' class='botLink'>Contact Us</a>";
	cTemp = cTemp + "<br />&copy; Copyright 2006 SAVE. | Web Solutions : <a href='#' class='botLink' target='_blank' title='Intent Technologies'><u>Intent</u></a>";
	cTemp = cTemp + "</td>";
	cTemp = cTemp + "</tr>";
	cTemp = cTemp + "</table>";

	document.write(cTemp);
}

/* New Window */

var maxWidth,maxHeight,Xpos,Ypos,topXpos,topYpos,Xadj,Yadj,zoomBox,zoomStep=0,zoomLink,zoomNew;

function zoomWindow(myLink,zlink,maxw,maxh,tox,toy) {
if (arguments.length > 2) zoomNew=1;
scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxWidth=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxHeight=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
topXpos=tox?tox:0;
topYpos=(toy?toy:0)+scrollH;
Xpos=myLink.pageX?myLink.pageX:myLink.clientX;
Ypos=(myLink.pageY?myLink.pageY:myLink.clientY)+(document.all?scrollH:0);
Xadj=topXpos+myLink.screenX-Xpos;
Yadj=topYpos+myLink.screenY-Ypos;
if (document.createElement && document.body.appendChild && !zoomBox) {
	zoomBox=document.createElement("div");
	zoomBox.style.position="absolute";
	document.body.appendChild(zoomBox);
} else if (document.all && !zoomBox) {
	document.all[document.all.length-1].outerHTML+='<div id="zoomBoxDiv" style="position:absolute"></div>';
	zoomBox=document.all.zoomBoxDiv;
} else if (document.layers && !zoomBox) {
	zoomBox=new Layer(maxWidth);
	zoomBox.style=zoomBox;
	}
zoomLink=zlink;
WindowZoom();
}

function WindowZoom() {
zoomStep+=1;
zPct=(10-zoomStep)/25
if (document.layers) {
	zoomBox.moveTo(topXpos+zPct*(Xpos-topXpos),topYpos+zPct*(Ypos-topYpos));
	zoomBox.document.open();
	zoomBox.document.write("<table width='"+maxWidth*(1-zPct)+"' height="+maxHeight*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
	zoomBox.document.close();
	} else {
	zoomBox.style.border="2px solid #999999";
	zoomBox.style.left=topXpos+zPct*(Xpos-topXpos);
	zoomBox.style.top=topYpos+zPct*(Ypos-topYpos);
	zoomBox.style.width=maxWidth*(1-zPct);
	zoomBox.style.height=maxHeight*(1-zPct);
	}
zoomBox.style.visibility="visible";
if (zoomStep < 10) setTimeout("WindowZoom("+Xpos+","+Ypos+","+topXpos+","+topYpos+")",35);
else {
	zoomBox.style.visibility='hidden';
	zoomStep=0;
if (zoomLink && zoomNew) {
		var w=window.open(zoomLink,'','width='+maxWidth+',height='+maxHeight+',left='+Xadj+',top='+Yadj+',scrollbars=no,resizable=no,toolbar=no');
		zoomNew=null;
		}
	}
}