content=null;
selectedId=null;
displayArr=new Array();
divValue="";
nodeList="";
topBarNode=null;
storeSelectedNode="";
function getNodeList(){
	try //Internet Explorer
	{
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	  	xmlDoc.async=false;
	  	xmlDoc.load("../site.xml");
		content=xmlDoc.getElementsByTagName("root")[0];
	 }catch(e){
	 	try //Firefox, Mozilla, Opera,Chrome etc.
	    {
	    //xmlDoc=document.implementation.createDocument("","",null);
			var xmlhttp = new window.XMLHttpRequest();
			xmlhttp.open("GET","../site.xml",false);
			xmlhttp.send(null);
			xmlDoc = xmlhttp.responseXML;
			htmlElements=xmlDoc.getElementsByTagName("root");
		    content=xmlDoc.getElementsByTagName("root")[0];
		}
	  	catch(e){
	    	alert(e.message);
	    	return;
	    }
	 }
}
function parseXML(id)
{
	/*urlArr=document.location.href.split("?");
	if(urlArr!=null){
		selectedId=urlArr[1].split("=");
		selectedId=selectedId[1];
	}*/
selectedId=id;
getNodeList()	
selectedNode=searchNode(content);
storeSelectedNode=selectedNode;
childNodes=selectedNode.childNodes;
topNodeSelected=false;
if(selectedNode.parentNode.nodeName=="root"){
	topNodeSelected=true;
}
for(i=0;i<childNodes.length;i++){
	if(childNodes[i].nodeType==1){  //1 Means node type is Element. # Means text.
		anchorTag="<a  href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
		divValue+="<div>"+anchorTag+"</div>";	
		//Commented as each page's overview is removed
		/*if(topNodeSelected){
			topNodeSelected=false;
			anchorTag="<a class=\"selectedAnchor\" href=\""+childNodes[i].getAttribute("url")+"?p="+childNodes[i].getAttribute("id")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
			divValue+="<div>"+anchorTag+"</div>";	
		}else{
			anchorTag="<a  href=\""+childNodes[i].getAttribute("url")+"?p="+childNodes[i].getAttribute("id")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
			divValue+="<div>"+anchorTag+"</div>";	
		}
		*/		
	}
}
if(selectedNode.parentNode.nodeName!="root"){
	getNodesToDisplay(selectedNode);
}else{
	topBarNode=selectedNode;
}
searchTopNode(selectedNode);
displayNodes(selectedNode);
//displayTopBar();
}
function searchTopNode(currentNode){
	while(currentNode.parentNode.nodeName!="root"){
		currentNode=currentNode.parentNode;
	}
	title=currentNode.getAttribute("title").toLowerCase();
	topmenubarText=document.getElementById("topmenubar").innerHTML;
	textIndex=topmenubarText.indexOf(title+"</",0);
	
	firstSubStr=topmenubarText.substring(0,textIndex);
	lastSubStr=topmenubarText.substring(textIndex);
	firstSubStr1=firstSubStr.substring(0,firstSubStr.lastIndexOf("class="));
	firstSubStr2=firstSubStr.substring(firstSubStr.lastIndexOf("href="));
	//alert(firstSubStr1);
	//alert(firstSubStr2);
	document.getElementById("topmenubar").innerHTML=firstSubStr1+"class=\"topselected\""+firstSubStr2+lastSubStr;
	//Note:IE 7 takes href from topmenu.inc in capital case.
	//Note:double quotes applied to class attribute is not taken in IE 7.
}
function searchNode(currentNode){
	//alert(currentNode.getAttribute("title"));
	//alert(currentNode.getAttribute("url")+"  : "+selectedId);
	if(currentNode.getAttribute("id")==selectedId){
		//alert("A");
		return currentNode;
	}
	if(currentNode.hasChildNodes()){
		//alert("B");
		var childNodes=currentNode.childNodes;              //Var is very important as it makes childnodes local to existing loop.
		for(var i=0;i<childNodes.length;i++){               //Var is very important as it makes "i" local to existing loop. 
			if(childNodes[i].nodeType==1){  //1 Means node type is Element. # Means text.
				returnObject=searchNode(childNodes[i]);
				if(returnObject!=null){
					//alert("Found");
					return returnObject;
				}
			}
		}
		//alert(currentNode.getAttribute("title")+"  child nodes exhauseted");	
		//alert(i+"  :  "+childNodes.length);
		return null;
	}else{
		//alert("No child node");	
		return null;
	}
	
}
function getNodesToDisplay(selectedNode){
	//alert("getNodesToDisplay");
	if(selectedNode.parentNode!=null){
		tempValue="";
		parentNode=selectedNode.parentNode;
		childNodes=parentNode.childNodes;
		for(i=0;i<childNodes.length;i++){
			if(childNodes[i].nodeType==1){  //1 Means node type is Element. # Means text.
				anchorTag="<a  href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
				//hardcoded for SMBs
				if(childNodes[i].getAttribute("title")=="for Enterprises" || childNodes[i].getAttribute("title")=="for SMBs" || childNodes[i].getAttribute("title")=="for Training Companies"){
					anchorTag="<a class=\"left_menu_anchor\" href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
				}
				if(childNodes[i]==storeSelectedNode){
					anchorTag="<a class=\"selectedAnchor\" href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
					if(childNodes[i].getAttribute("title")=="for Enterprises" || childNodes[i].getAttribute("title")=="for SMBs" || childNodes[i].getAttribute("title")=="for Training Companies"){
						anchorTag="<a class=\"left_menu_selectedAnchor selectedAnchor\" href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
					}
				}
				if(childNodes[i]==selectedNode){
					tempValue+="<div>"+anchorTag+divValue+"</div>";
				}else{
					tempValue+="<div>"+anchorTag+"</div>";
				}
			}
		}
		divValue=tempValue;
		if(selectedNode.parentNode.parentNode.nodeName=="root"){
			topBarNode=selectedNode.parentNode;
			return;
		}
		else{
			return getNodesToDisplay(selectedNode.parentNode);
		}
		
	}else{
		return;	
	}
}
function getBottomLinks(){
	selectedNode=storeSelectedNode;
	while(selectedNode.parentNode.nodeName!="root"){
		selectedNode=selectedNode.parentNode;
	}
	//alert(selectedNode.getAttribute("title"));
	links="";
	childNodes=selectedNode.childNodes;
	len=childNodes.length;
	for(i=0;i<childNodes.length;i++){
			if(childNodes[i].nodeType==1){  //1 Means node type is Element. # Means text.
			
				if(childNodes[i].getAttribute("title")=="for Enterprises" || childNodes[i].getAttribute("title")=="for SMBs" || childNodes[i].getAttribute("title")=="for Training Companies"){
					links=links+"<a class=\"pagebottomlinks no_texttransform\" href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
				}
				else{
					links=links+"<a class=\"pagebottomlinks\" href=\""+childNodes[i].getAttribute("url")+"\" >"+childNodes[i].getAttribute("title")+"</a>";
				}
				if(i<(len-1)){
					links=links+" | ";
				}
			}
	}
	links=links+"<a href=\"#top\"><img src=\"images/top.gif\" alt=\"top\" width=\"9\" height=\"9\" border=\"0\" align=\"right\"></a>";
	document.getElementById("bottomlinks").innerHTML=links;
}
function getTopNodeChildren(currentNode){
	//alert("getTopNodeChildren");
	if(currentNode.hasChildNodes() && currentNode.getAttribute("showchildren")==null){
		if(topBarNode!=null && topBarNode.getAttribute("id")==currentNode.getAttribute("id")){
			nodeList+="<li class=\"dir\"><a href=\""+currentNode.getAttribute("url")+"\" >"+currentNode.getAttribute("title")+"</a><ul>";
		}else{
			nodeList+="<li class=\"dir\"><a href=\""+currentNode.getAttribute("url")+"\" >"+currentNode.getAttribute("title")+"</a><ul>";		
		}
		var childNodes=currentNode.childNodes;              //Var is very important as it makes childnodes local to existing loop.
		for(var i=0;i<childNodes.length;i++){               //Var is very important as it makes "i" local to existing loop. 
			if(childNodes[i].nodeType==1){  //1 Means node type is Element. # Means text.
				getTopNodeChildren(childNodes[i]);
			}
		}
		nodeList+="</ul></li>";
		return ;
	}
	else{
		if(currentNode.getAttribute("visible")==null){
			nodeList+="<li><a href=\""+currentNode.getAttribute("url")+"\" >"+currentNode.getAttribute("title")+"</a></li>";
		}
		return;		
		
	}
}

function displayNodes(){
	//alert(divValue);
	
	//divValue+="<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td align=\"left\" valign=\"top\"><span class=\"padding5\"><img src=\"images/spacer.gif\" alt=\" \" width=\"30\" height=\"30\"></span></td></tr><tr><td align=\"left\" valign=\"top\">&nbsp;</td></tr><tr><td align=\"left\" class=\"quicklinkseperator\"><a href=\"#\" class=\"quicklinkshowcase\">Showcase Access</a></td></tr><tr><td align=\"left\" class=\"quicklinktext\"> Contact us to view our work samples.</td></tr><tr><td align=\"left\" class=\"quicklinkseperator\"><a href=\"#\" class=\"downloadbrochure\">Download Brochure</a></td></tr><tr><td align=\"left\" class=\"quicklinktext\"> Contact us to view our work samples.</td></tr><tr><td align=\"left\" class=\"quicklinkseperator\"><a href=\"#\" class=\"quicklinklivedemo\">Request Live Demo</a></td></tr><tr><td align=\"left\" class=\"quicklinktext\"> Contact us to view our work samples.</td></tr><tr><td align=\"left\" class=\"quicklinkseperator\">&nbsp;</td></tr></table>";
	divValue="<br/>"+divValue;
	document.getElementById("leftmenu").innerHTML=divValue;
	

}

function getTopNodeChildrenforSitemap(currentNode){
	//alert("getTopNodeChildren");
	if(currentNode.hasChildNodes()){
		if(topBarNode!=null && topBarNode.getAttribute("id")==currentNode.getAttribute("id")){
			nodeList+="<li class=\"dir\"><a class=\"sitemap_links\" href=\""+currentNode.getAttribute("url")+"\" >"+currentNode.getAttribute("title")+"</a><ul>";
		}else{
			nodeList+="<li class=\"dir\"><a class=\"sitemap_links\" href=\""+currentNode.getAttribute("url")+"\" >"+currentNode.getAttribute("title")+"</a><ul>";		
		}
		var childNodes=currentNode.childNodes;              //Var is very important as it makes childnodes local to existing loop.
		for(var i=0;i<childNodes.length;i++){               //Var is very important as it makes "i" local to existing loop. 
			if(childNodes[i].nodeType==1){  //1 Means node type is Element. # Means text.
				getTopNodeChildrenforSitemap(childNodes[i]);
			}
		}
		nodeList+="</ul></li>";
		return ;
	}
	else{
		nodeList+="<li><a class=\"sitemap_links\" href=\""+currentNode.getAttribute("url")+"\" >"+currentNode.getAttribute("title")+"</a></li>";
		return;		
	}
}
function getSiteMap(){
	getNodeList();
	nodeList="";selectedId="0";
	getTopNodeChildrenforSitemap(searchNode(content));
	sitemap="<div><ul id=\"t\">";
	sitemap+=nodeList;
	sitemap+="</ul></div>";
	document.write(sitemap);
	new Tree("t");
}
function displayTopBar(){
	
	tdValue="<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"140\" height=\"90\" align=\"right\"><a href=\"index.htm\"><img src=\"images/UpsideLearning.jpg\" alt=\"Upside Learning Solutions Pvt. Ltd.\" width=\"110\" height=\"51\" border=\"0\"></a></td><td align=\"right\" valign=\"bottom\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td height=\"50\" align=\"right\" valign=\"top\" class=\"padding2\"><table  border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td width=\"40\" align=\"left\"><a href=\"index.htm\" class=\"home\">Home</a></td><td width=\"65\" align=\"left\"><a href=\"contact_us.htm\" class=\"home\">Contact Us</a></td><td width=\"65\" align=\"left\"><a href=\"lighthouse.htm\" target=\"_blank\" class=\"home\">Client Login</a></td><td width=\"15\" align=\"left\">&nbsp;</td></tr></table></td></tr><tr><td align=\"right\" valign=\"top\">&nbsp;</td></tr><tr><td align=\"left\" valign=\"top\" class=\"padding5\">";
	tdValue+="<div class=\"topMenu\"><ul id=\"nav\" class=\"dropdown dropdown-horizontal\">";
	getNodeList();
	
	nodeList="";selectedId="1";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>"; 
	
	nodeList="";selectedId="11";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>"; 
	
	nodeList="";selectedId="32";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>"; 

	nodeList="";selectedId="57";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>"; 
	
	nodeList="";selectedId="79";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>"; 
	
	/*nodeList="";selectedId="88";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>";

	nodeList="";selectedId="89";
	getTopNodeChildren(searchNode(content));
	tdValue+=nodeList+"<li class=\"spacer\">&nbsp;</li>";*/

	tdValue+="<li><a href=\"http://www.upsidelearning.com/blog/\" target=\"_blank\">blog</a></li>";
	
	tdValue+="</ul></div>";
	tdValue+="</td></tr></table></td></tr></table>";
	document.getElementById("topbar").innerHTML=tdValue;
	return tdValue;
}
function twitThis(url,title){
		window.open("http://twitthis.com/twit?url="+url+"&title="+((title) ?title.replace(/^\s*|\s*$/g,'') : ""), "TwitThisPop", "width=600, height=500, location, status, scrollbars, resizable");
}
//Display Bottom Bar
function displayBottomBar(){

	bottomDivValue="<table width=\"980\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">";
    bottomDivValue+="<tr>";
    bottomDivValue+="<td align=\"center\" bgcolor=\"#EFEFEF\" class=\"bottomseperator\">&nbsp;</td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="<tr>";
    bottomDivValue+="<td align=\"center\" bgcolor=\"#EFEFEF\" class=\"padding5\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
    bottomDivValue+="<tr>";
    bottomDivValue+="      <td align=\"left\" valign=\"top\"><table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">";
    bottomDivValue+="        <tr>";
    bottomDivValue+="          <td align=\"left\" valign=\"middle\" class=\"padding5\"><a href=\"http://www.trainingindustry.com/training-outsourcing/top-companies-listings/2009/2009-emerging-leaders.aspx\" target=\"_blank\" style=\"margin-bottom:10px\"><img src=\"images/emergingleaders.gif\" alt=\"Emerging Leaders\" width=\"60\" height=\"40\" border=\"0\" /></a><a href=\"http://www.deloitte.com/dtt/section_node/0,1042,sid=112711,00.html\" target=\"_blank\"><img src=\"images/deloitte_indialogo2007.gif\" alt=\"Deloitte Technology Fast50 India 2008 Winner\" width=\"80\" height=\"40\" border=\"0\"></a>&nbsp;&nbsp;&nbsp;<a href=\"http://www.deloitte.com/dtt/section_node/0,1042,sid=112711,00.html\" target=\"_blank\"><img src=\"images/deloitte_AsiaPacificlogo2008.gif\" alt=\"Deloitte Technology Fast500 Asia Pacific 2008 Winner\" width=\"70\" height=\"40\" border=\"0\"></a>&nbsp;<a href=\"http://herringresearch.com/eventspace/blgtrx_event_home/asia08/submitatop100.html\" target=\"_blank\"></a><a href=\"http://www.apexawards.com\" target=\"_blank\"><img src=\"images/apexawards.gif\" alt=\"APEX Awards for Publication Excellence 2007\" width=\"50\" height=\"40\" border=\"0\"></a><a href=\"http://herringresearch.com/eventspace/blgtrx_event_home/asia08/submitatop100.html\" target=\"_blank\"></a><a href=\"http://www.apexawards.com\" target=\"_blank\" rel=\"nofollow\"></a></td>";
    bottomDivValue+="        </tr>";
    bottomDivValue+="        <tr>";
    bottomDivValue+="          <td align=\"left\" valign=\"top\" class=\"padding5\"><a href=\"http://www.apexawards.com\" target=\"_blank\" rel=\"nofollow\"></a><a href=\"http://herringresearch.com/eventspace/blgtrx_event_home/asia08/submitatop100.html\" target=\"_blank\"><img src=\"images/redherringwinner.gif\" alt=\"Red Herring 100 Winner ASIA 2008\" width=\"60\" height=\"40\" border=\"0\"></a><a href=\"http://www.brandon-hall.com\" target=\"_blank\" rel=\"nofollow\"><img src=\"images/BrandonHall.gif\" alt=\"Brandon Hall Research LMS KnowledgeBase\" width=\"170\" height=\"40\" border=\"0\"></a><a href=\"http://www.adlnet.gov/\" target=\"_blank\" rel=\"nofollow\"><img src=\"images/adl.gif\" alt=\"ADL Initiative\" width=\"50\" height=\"40\" border=\"0\"></a><a href=\"http://www.apexawards.com\" target=\"_blank\" rel=\"nofollow\"></a></td>";
    bottomDivValue+="        </tr>";
    bottomDivValue+="      </table></td>";
    bottomDivValue+="      <td width=\"675\" align=\"left\" valign=\"top\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">";
    bottomDivValue+="          <tr>";
    bottomDivValue+="            <td align=\"right\" valign=\"top\" class=\"hp_bottomlinkstable\">";
		var l =encodeURIComponent(document.location.href);
		//var l =encodeURIComponent("http://www.upsidelearning.com/");
		var t =encodeURIComponent("");
		var i ="images/socialMedia/";
		bottomDivValue+="<a title='Digg' class=\"readmore\" target=\"_blank\" href='http://digg.com/submit?url="+l+"&title="+t+"'><img alt='Digg' src='"+i+"digg.gif' border=0></a>&nbsp;&nbsp;";
		bottomDivValue+="<a title='Delicious' target=\"_blank\" href='http://del.icio.us/post?url="+l+"&title="+t+"'><img alt='Delicious' src='"+i+"delicious.png' border=0></a>&nbsp;&nbsp;";
		bottomDivValue+="<a title='Reddit' target=\"_blank\" href='http://reddit.com/submit?url="+l+"&title="+t+"'><img alt='Reddit' src='"+i+"reddit.gif' border=0></a>&nbsp;&nbsp;";
		bottomDivValue+="<a title='StumbleUpon' target=\"_blank\" href='http://www.stumbleupon.com/submit?url="+l+"&title="+t+"'><img alt='StumbleUpon' src='"+i+"stumbleit.gif' border=0></a>&nbsp;&nbsp;";
		bottomDivValue+="<a title='Facebook' target=\"_blank\" href='http://www.facebook.com/sharer.php?u="+l+"&t="+t+"'><img alt='Facebook' src='"+i+"FaceBook.png' border=0></a>&nbsp;&nbsp;";
		bottomDivValue+="<a title='Technorati' target=\"_blank\" rel=\"tag\" href=\"http://technorati.com/faves?add="+l+"\"><img alt='Technorati' src='"+i+"Technorati.png' border=0></a>&nbsp;&nbsp;";
		bottomDivValue+='<a title="TwitThis" href="javascript:;" onclick=\'twitThis("'+l+'","'+t+'")\'><img src="'+i+'twitthis_grey_72x22.gif" alt="TwitThis" style="border:none;" /></a>&nbsp;&nbsp;';
	//Email and share buttons commented.
	/*bottomDivValue+="<!-- AddThis Button BEGIN --><script type=\"text/javascript\">";
	bottomDivValue+="					addthis_pub = 'carolineschnapp';";
    bottomDivValue+="				  </script>";
    bottomDivValue+="                <a href=\"http://www.addthis.com/bookmark.php\" class=\"hp_bottomlinkstable\" onmouseOver=\"return addthis_open(this, 'email', '[URL]', '[TITLE]')\" onmouseOut=\"addthis_close()\" onClick=\"return addthis_sendto()\"> <img src=\"http://s7.addthis.com/button1-email.gif\" width=\"54\" height=\"16\" border=\"0\" alt=\"Tell a friend\"/></a>";
    
	document.write("<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/152/addthis_widget.js\"></script>");
    bottomDivValue+="                <script type=\"text/javascript\">"
	bottomDivValue+="						var addthis_pub = \"upsidelearning\";";
	bottomDivValue+="						addthis_logo= 'http://www.upsidelearning.com/images/UL_logo_transparent.png';";
	bottomDivValue+="						addthis_logo_background = 'EFEFFF';";
	bottomDivValue+="						addthis_logo_color      = '666699';";
	bottomDivValue+="						addthis_brand           = 'Upside Learning';";
    bottomDivValue+="				</script>";
    bottomDivValue+="                <a href=\"http://www.addthis.com/bookmark.php\" onMouseOver=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onMouseOut=\"addthis_close()\" onClick=\"return addthis_sendto()\"><img src=\"http://s7.addthis.com/static/btn/lg-share-en.gif\" width=\"125\" height=\"16\" border=\"0\" alt=\"\" /></a>";
    bottomDivValue+="              <script type=\"text/javascript\" src=\"http://s7.addthis.com/js/152/addthis_widget.js\"></script>";
    bottomDivValue+="                <!-- AddThis Button END -->&nbsp;&nbsp;";
	*/
    bottomDivValue+="         	</td></tr>";
    bottomDivValue+="          <tr>";
    bottomDivValue+="            <td align=\"left\" valign=\"top\" class=\"padding5\"><br>";
    bottomDivValue+="                Copyright &copy; 2004 - "+new Date().getFullYear()+" Upside Learning Solutions Pvt. Ltd. All rights reserved.";
	bottomDivValue+="				The Upside Learning logo is a registered trademark of Upside Learning Solutions Pvt. Ltd. All clients, awards, affliations logos and trademarks are respectfully acknowledged. The APEX Awards for Publication Excellence logo is a registered trademark owned by Communications Concepts, Inc. The SCORM logo is a registered trademark of the Advanced Distributed Learning Initiative. ";
    bottomDivValue+="              Upside Learning references the Sharable Content Object Reference Model (SCORM).</td>";
    bottomDivValue+="          </tr>";
    bottomDivValue+="      </table></td>";
    bottomDivValue+="    </tr>";
    bottomDivValue+="</table></td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="<tr>";
    bottomDivValue+="<td align=\"right\" bgcolor=\"#EFEFEF\" class=\"padding5\"></td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="<tr>";
    bottomDivValue+="<td align=\"right\" bgcolor=\"#EFEFEF\" class=\"padding5\"></td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="<tr>";
    bottomDivValue+="<td align=\"center\" bgcolor=\"#EFEFEF\" class=\"bottomseperator\">&nbsp;</td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="<tr bgcolor=\"#E0E0E4\">";
    bottomDivValue+="<td align=\"center\" valign=\"top\" bgcolor=\"#EFEFEF\" class=\"hp_bottomlinkstable\"><a href=\"index.htm\" class=\"hp_bottomlinks\">Home</a> | <a href=\"about_us.htm\" class=\"hp_bottomlinks\">Company</a> | <a href=\"customcontent.htm\" class=\"hp_bottomlinks\">Custom Content</a> | <a href=\"learningtechnology.htm\" class=\"hp_bottomlinks\">Learning Technology</a> | <a href=\"catalogcourses.htm\" class=\"hp_bottomlinks\">Catalog Courses</a> | <a href=\"resources.htm\" class=\"hp_bottomlinks\">Resources</a> | <a href=\"sitemap.htm\" class=\"hp_bottomlinks\">Sitemap</a> | <a href=\"javascript:window.open('privacy_policy.htm','','toolbars=no,height=400,width=700')\" class=\"hp_bottomlinks\">Privacy Policy</a> | <a href=\"http://www.upsidelearning.com/blog\" target=\"_blank\" class=\"hp_bottomblog\">&nbsp;Blog&nbsp;</a></td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="<tr bgcolor=\"#E0E0E4\">";
    bottomDivValue+="<td align=\"center\" valign=\"top\" class=\"hp_bottomlinkstable\">&nbsp;</td>";
	bottomDivValue+="</tr>";
    bottomDivValue+="<tr>";
    bottomDivValue+="<td bgcolor=\"#E0E0E4\" align=\"center\" class=\"copyrights\">Copyright &copy; 2004 - "+new Date().getFullYear()+" Upside Learning Solutions Pvt. Ltd. All rights reserved.</td>";
	bottomDivValue+="</tr>";
	bottomDivValue+="</table>";
	
	//alert(bottomDivValue);
	document.getElementById("bottombar").innerHTML=bottomDivValue;
}
//Display Bottom Bar

//StatCounter Code
var sc_project=4235791; 
var sc_invisible=1; 
var sc_partition=49; 
var sc_click_stat=1; 
var sc_security="6b077c27"; 
//StatCounter Code
//Google analytics code
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//Google analytics code

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];}}
}
tr1=0;tr2=0;tr3=0;tr4=0;tr5=0;tr6=0;tr7=0;tr8=0;tr9=0;
function showHideDiv(id){
	if(eval(id)==0){
		document.getElementById(id).style.display="block";
		document.getElementById("a"+id).className="featuresclose";
		eval(id+"=1;");
	}
	else{
		document.getElementById(id).style.display="none";
		document.getElementById("a"+id).className="features";
		eval(id+"=0;");
	}
}
function homepagemovie(id){
	if(id==1){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/MainMovie.swf", "UL_MainMovie_div", "980", "255", "8.0.0", false, flashvars, params, attributes);
	}else if(id==2){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/Client_listw.swf", "UL_Clients_div", "200", "80", "8.0.0", false, flashvars, params, attributes);
	}
}
function upsidelms(id){
	if(id==1){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/UpsideLMS-splash_new.swf", "UL_lms_div", "720", "180", "8.0.0", false, flashvars, params, attributes);
	}else if(id==2){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/Client_listw.swf", "UL_Clients_div", "200", "80", "8.0.0", false, flashvars, params, attributes);
	}
}

function recognition(id){
	if(id==1){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/RecognitionMovie.swf", "recognition_div", "255", "225", "9.0.0", false, flashvars, params, attributes);
	}else if(id==2){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/Client_listw.swf", "UL_Clients_div", "200", "80", "8.0.0", false, flashvars, params, attributes);
	}
}

function clients(id){
	if(id==1){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/client-list-hp.swf", "clients_div", "890", "80", "8.0.0", false, flashvars, params, attributes);
	}else if(id==2){
		var flashvars = {};
		var params = {};
		params.wmode = "transparent";
		params.menu = "false";
		params.bgcolor  = "0xffffff";
		var attributes = {};
		swfobject.embedSWF("swfs/Client_listw.swf", "UL_Clients_div", "200", "80", "8.0.0", false, flashvars, params, attributes);
	}
}