
function showtheme(settype){
	if (settype == 1) {
		//var returnValue = true, links = ["http://www.wibta.com/", "http://www.infosys.com/InStepWeb/default.htm", "http://www.infosys.com/infosys_foundation/index.htm"], imgs = ["Image/wibta_ad.gif", "Image/Instep_logo.gif", "Image/infy_found_ad.gif"], txt = ["Wharton Infosys Business Transformation Award", "Infosys' Global Internship Program", "Infosys Foundation"],len = (links.length + imgs.length ) / 2;
		var returnValue = true, links = [""], imgs = [""], txt = [""],len = (links.length + imgs.length ) / 2;
		if((len*2)%2 == 1){returnValue=false;}

		if(returnValue==false)
		{document.write('<img src="images/blank.gif" alt="">');return false;}
		var rand = Math.floor(len*Math.random())
		document.write("<a href=\""+links[rand]+"\" title=\"" + txt[rand]+ "\" target=\"_blank\"><img src=\""+imgs[rand]+"\" alt=\""+txt[rand]+"\" border=\"0\" align=\"middle\"><\/a>");
	}
	if (settype == 2) {

		MultiArray = new Array(2)
       	
		MultiArray [0] = "<img  src=\"images/newban1.jpg\">"
		MultiArray [1] = "<img src=\"images/newban2.jpg\" >"
		MultiArray [2] = "<img src=\"images/newban3.jpg\" >"
		MultiArray [3] = "<img src=\"images/newban4.jpg\" >"
		//MultiArray [0] = "<tr><td colspan=\"2\" height=\"20\" bgcolor=\"#ffffff\" valign=\"top\">"
		//MultiArray [0] = MultiArray [0] + "<table cellpadding=\"0\" cellspacing=\"0\"  align=\"center\"><tr>"
		//MultiArray [0] = MultiArray [0] + "<td align=\"center\"><img  src=\"Images/banner2.jpg\"><\/td>"
		//MultiArray [0] = MultiArray [0] + "<\/tr><\/table>"
		//MultiArray [1] = "<tr><td colspan=\"2\" height=\"20\" bgcolor=\"#ffffff\">"
		//MultiArray [1] = MultiArray [1] + "<table cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr>"
		//MultiArray [1] = MultiArray [1] + "<\/tr><\/table>"
		//MultiArray [1] = MultiArray [1] + "<\/td><\/tr><tr><td colspan=\"4\" style=\"background-color:#FFFFFF; padding-top:2px;\"><table cellpadding=\"2\" cellspacing=\"0\"><tr><td width=\"225\"><img src=\"images/bann.jpg\"><\/td><td><a href=\"media\/zapthink_zapnote.asp\" class=\"mainTextLinkStyle\" title=\"Infosys: &#8220;Global Consulting Powerhouse&#8221; - ZapThink \">Infosys: \"Global Consulting Powerhouse\" - ZapThink<\/a><\/td><\/tr><tr><td width=\"2%\"><img src=\"Image/bulletOrange.jpg\"><\/td><td><a href=\"home/white_hot_downloads.asp#1\" class=\"mainTextLinkStyle\" title=\"Read the Infosys viewpoint on Modular Global Sourcing\">Read the Infosys viewpoint on Modular Global Sourcing<\/a><\/td><\/tr><tr><td valign=\"top\"><img src=\"Image/bulletOrange_topwhite.gif\" width=\"4\" height=\"8\"><\/td><td><a href=\"industries/banking/cases/bpo_centric_outsourcing.asp\" class=\"mainTextLinkStyle\" title=\"Read how Infosys worked with a leading American mortgage broker, harnessing the combined power of IT and BPO to improve performance of their loan operations by 100%\">Read how Infosys worked with a leading American mortgage broker, harnessing the combined power of IT and BPO to improve performance of their loan operations by 100%<\/a><\/td><\/tr><tr><td><img src=\"Image/bulletOrange.jpg\"><\/td><td><a href=\"home/white_hot_downloads.asp#5\" class=\"mainTextLinkStyle\" title=\"Read about the Infosys approach towards measuring the value of IT in transforming your business\">Read about the Infosys approach towards measuring the value of IT in transforming your business<\/a><\/td><\/tr><\/table><\/td><\/tr>"
		
		var len = MultiArray.length
		if((len*2)%2 == 1){returnValue=false;}
		if(returnValue==false)
		{document.write('<img src="Image/blank.gif" alt="">');return false;}
		var rand
		   	if(GetCookie('pref') != null)
		   	{
			  var intval = parseInt(GetCookie('pref'))

			  if (intval >= len - 1)
			  {
			  	rand = 0
			  }
			  else
			  {
			  	rand = intval + 1
			  }

				var expdate = new Date ();
			    expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000));
			    SetCookie('pref', rand, expdate);
		    }
   			else
			{
      			rand = Math.floor(len*Math.random())
		    	var expdate = new Date ();
			    expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000));
			    SetCookie('pref', rand, expdate);
			}

		document.write (MultiArray [rand]);
	}

	if (settype == 3) {
		

		var BLlen = BLArray.length

		if((BLlen*2)%2 == 1){returnValue=false;}

		if(returnValue==false)
		{document.write('<img src="Image/blank.gif" alt="">');return false;}

		var rand = Math.floor(BLlen*Math.random())

	}

}

function getCookieVal (offset)
   {
   var endstr = document.cookie.indexOf (";", offset);
   if (endstr == -1)
      endstr = document.cookie.length;
   return unescape(document.cookie.substring(offset, endstr));
   }

function GetCookie (name)
   {
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen)
      {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg)
         return getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break;
      }
   return null;
   }

function SetCookie (name, value)
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (argc > 2) ? argv[2] : null;
   var path = (argc > 3) ? argv[3] : null;
   var domain = (argc > 4) ? argv[4] : null;
   var secure = (argc > 5) ? argv[5] : false;
   document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");
   }
