// JavaScript Document
var strBaseUrl = "http://" + window.location.hostname//"http://scidotdeva";
var strAppsUrl = "http://" + window.location.hostname//"http://scidotdeva";

if (strBaseUrl =="http://sterlingcommerce.resultspage.com")
	{
	strBaseUrl = "http://www.SterlingCommerce.com";
	}
if (strAppsUrl =="http://sterlingcommerce.resultspage.com")
	{
	strAppsUrl = "http://www.SterlingCommerce.com";
	}


if (strBaseUrl == "http://scidotdeva")
	{
	strBaseUrl = "http://scidotdeva";
	}


//This part is the new part

//------------------------------ Search Form Function ------------------------------//
function checkValid() {
	if(document.formsearch.CiRestriction.value == ''){
		alert("Please type your keywords.");
		return false;
	}
	var reg2 = /[,|~|{|[|}|!|#|$|%|^|*|(|)|=|<|>|?|'|;|||]/;	
	 
	if ( reg2.test(document.formsearch.CiRestriction.value)){
		alert("Non alphanumeric characters are not allowed.");
		return false;	
	 }
    var str = document.formsearch.CiRestriction.value;
 
	 if  (str.indexOf(']')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}	
	if  (str.indexOf('\\')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}		
	if  (str.indexOf('\/')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}
	if  (str.indexOf(' ')== 0){
		alert("A space is not allowed as the first character.");
		return false;
	}	
	if  (str.indexOf(' ')== 1 &&  str.indexOf(' ',2)== 3){
		alert("A search string can not contain that many single chacters in a row.");
		return false;
	}				
	if (str.length == 3 && str.indexOf(' ')== 1){
		alert("Not enough valid alphanumeric characters to search on.");
		return false;
	}			
	if  (str.indexOf('__')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}	
	if (str.length==3 && str.indexOf('_')== 0 && str.lastIndexOf('_')== 2  ){
		alert("You search string must contain at least three alphanumeric characters.");
		return false;
	}		
	if (str.length<3){
		alert("You search string must contain at least three alphanumeric characters.");
		return false;
		}else{
		openNewWindow('/query_dev.idq?CiRestriction=' + document.getElementById("CiRestriction").value + '','Search','500','500');
		return true;
	}
}
//------------------------------ Education Include -----------------------------------//
function educationInclude()
{
	var strCode = "";
	strCode +="<table width=\"140\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"bug\"><tr>";
	strCode +="<td width=\"9\"><img src=\"" + strBaseUrl + "/images/bug/sBug_top_l.gif\" width=\"9\" height=\"9\" border=\"0\"></td>";
    strCode +="<td width=\"122\" background=\"" + strBaseUrl + "/images/bug/sBug_top_tile.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_top_tile.gif\" width=\"4\" height=\"9\" border=\"0\"></td>";
    strCode +="<td width=\"9\"><img src=\"" + strBaseUrl + "/images/bug/sBug_top_r.gif\" width=\"9\" height=\"9\" border=\"0\"></td>";
	strCode +="</tr><tr>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_ltitle.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_ltitle.gif\" width=\"9\" height=\"28\" border=\"0\">";
    strCode +="<td height=\"28\" bgcolor=\"#EEEEEE\" class=\"bugTitle\"><p>Quick Links</p></td>";
    strCode +="<td width=\"9\" background=\"" + strBaseUrl + "/images/bug/sBug_rtitle.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_rtitle.gif\" width=\"9\" height=\"28\"></td>";
	strCode +="</tr><tr>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_l.gif\"></td>";
    strCode +="<td class=\"bug\">";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"whats_new.html\"> What&rsquo;s New</a><br>";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/Services/Education/training_tracks.html\"> Training Tracks</a><br>";
	strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"http://education.sterlingcommerce.com/Courses/CalendarShell.asp\"> Course Calendar</a><br>";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/PDF/Services/education/Educ_Catalog.pdf\" target=_blank> Course Catalog</a><br>";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/Services/Education/trng_centers.html\"> Training Centers</a><br>";	
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/Services/Education/contact.html\"> Contact Us </a><br>";
    strCode +="</td>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_r.gif\">&nbsp;</td>";
	strCode +="</tr><tr>";
    strCode +="<td><img src=\"" + strBaseUrl + "/images/bug/sBug_bottom_l.gif\" width=\"9\" height=\"12\" border=\"0\"></td>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_bottom_tile.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_bottom_tile.gif\" width=\"4\" height=\"12\" border=\"0\"></td>";
    strCode +="<td><img src=\"" + strBaseUrl + "/images/bug/sBug_bottom_r.gif\" width=\"9\" height=\"12\" border=\"0\"></td>";
	strCode +="</tr></table>";
	document.write(strCode);
	strCode="";

}
//------------------------------- HEADER N FOOTER ------------------------------------//	
function buildHeader(){
	var header = "";
	header += "<form  name=\"searchform\" method=\"get\" action=\"http://sterlingcommerce.resultspage.com/search\">";
	header += "	  <table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">";
	header += "        <tr>";
	header += "          <td><A HREF=\"/\" class=\"footer\"><img src=\"/images/layout/logo.gif\" width=\"151\" height=\"42\" BORDER=\"0\"></A></td>";
	header += "          <td width=\"574\"><table width=\"574\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	header += "              <tr>";
	header += "                <td width=\"5\"><img src=\"/images/layout/superheader_left.gif\" width=\"5\" height=\"40\"></td>";
	header += "                <td height=\"40\" align=\"right\" valign=\"middle\" background=\"/images/layout/superheader_bg.gif\"><div class=\"footer\"><a href=\"" + strBaseUrl + "/Customer/\" class=\"footer\">Customer Support</a> | <a href=\"" + strBaseUrl + "/about/companyinfo/officelocations.html\" class=\"footer\">Global Sites</a> | <a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/index.asp','Contact',500,500);\" class=\"footer\">Contact</a> | <a href=\"javascript:openNewWindow('" + strBaseUrl + "/help/helpsmall.html','Help',500,500);\" class=\"footer\">Help</a> | <a href=\"" + strBaseUrl + "/Partners/\" class=\"footer\">Partners</a> | <a href=\"" + strBaseUrl + "/redirects/softwareshop.html\" class=\"footer\">Software Shop</a> |";
	header += "<input type=\"hidden\" name=\"p\" value=\"Q\">"
	header += "<input type=\"hidden\" name=\"ts\" value=\"custom\">"
	header += "                        <input class=\"searchBox\" type=\"text\"  size=\"20\" value=\"Search\" name=\"w\" id=\"search\" >";
	header += "                </div></td>";
	header += "                <td align=\"right\" valign=\"middle\" background=\"/images/layout/superheader_bg.gif\"><INPUT name=\"Search\" type=\"image\" src=\"" + strBaseUrl + "/images/layout/searchGo.gif\" WIDTH=\"21\" HEIGHT=\"21\" BORDER=\"0\"></td>";
	header += "                <td width=\"5\"><img src=\"/images/layout/superheader_right.gif\" width=\"5\" height=\"40\"></td>";
	header += "              </tr>";
	header += "          </table></td>";
	header += "        </tr>";
	header += "      </table>";
	header += "	  </form>";
	document.write (header);
}

function buildFormHeader(){
	var header = "";

	header += "<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">";
	header += "<tr>";
	header += "<td><A HREF=\"/\" ><img src=\"/images/layout/logo.gif\" width=\"151\" height=\"42\" BORDER=\"0\"></A></td>";
	header += "<td width=\"574\"><table width=\"574\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	header += "<tr>";
	header += "<td width=\"5\"><img src=\"/images/layout/superheader_left.gif\" width=\"5\" height=\"40\"></td>";
	header += "<td height=\"40\" align=\"right\" valign=\"middle\" background=\"/images/layout/superheader_bg.gif\"><div class=\"footer\">&nbsp;";
	header += "</div></td>";
	header += "<td width=\"5\"><img src=\"/images/layout/superheader_right.gif\" width=\"5\" height=\"40\"></td>";
	header += "</tr>";
	header += "</table></td>";
	header += "</tr></table>";
	document.write (header);

}

function pageTop()
	{
	var strText = "";
strText += "<tr valign=\"top\">";
strText += "  <td height=\"54\" colspan=\"3\">";
  document.write(strText);

 buildHeader();
strText = "";
strText += "</td></tr>";
strText += "<tr><td height=\"32\" colspan=\"3\">";
  document.write(strText);
    buildNav();
strText = "";
strText += "</td></tr>";
document.write(strText);
}





function buildHeaderSmall(){
	var header = "";
	header += "<table width=\"480\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	header += "<tr>";
	header += "<td width=\"5\"><img src=\"/images/layout/superheader_left.gif\" width=\"5\" height=\"40\"></td>";
	header += "<td height=\"40\" align=\"right\" valign=\"middle\" background=\"/images/layout/superheader_bg.gif\" class=\"footer\">&nbsp;";
	header += "</td>";
	header += "<td width=\"5\"><img src=\"/images/layout/superheader_right.gif\" width=\"5\" height=\"40\"></td>";
	header += "</tr>";
	header += "</table>";
	document.write (header);
}



function buildHeaderPopup(){
	var header = "";
	header += "<table width=\"480\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	header += "<tr>";
	header += "<td width=\"5\"><img src=\"/images/layout/superheader_left.gif\" width=\"5\" height=\"40\"></td>";
	header += "<td height=\"40\" align=\"right\" valign=\"middle\" background=\"/images/layout/superheader_bg.gif\" class=\"footer\"><a href=\"#\" onclick=\"javascript: window.opener.document.location.href='/'\">Home</a> | <a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/index.asp','Contact',500,500);\">Contact</a> | <a href=\"javascript:openNewWindow('" + strBaseUrl + "/help/helpsmall.html','Help',500,500);\">Help</a> |";
	header += "</td>";
	header += "<td width=\"5\"><img src=\"/images/layout/superheader_right.gif\" width=\"5\" height=\"40\"></td>";
	header += "</tr>";
	header += "</table>";
	document.write (header);
}


function buildFooter(){
	var text = "";
	text += "<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	text += "          <tr>";
	text += "            <td width=\"8\"><img src=\"/images/layout/footerLeftCol_white.gif\" width=\"8\" height=\"30\"></td>";
	text += "            <td width=\"472\" align=\"left\" background=\"/images/layout/footerBg.gif\"><div class=\"footer\"><a href=\"javascript:openNewWindow('" + strBaseUrl + "/Contact/index.asp','Contact',500,500)\" class=\"footer\">Contact Us</a> | <a href=\"" + strBaseUrl + "/sitemap.html\" class=\"footer\">Sitemap</a> | <a href=\"" + strBaseUrl + "/About/Careers/\" class=\"footer\">Careers</a> | <a href=\"" + strBaseUrl + "/contact/Privacy_Usage.html\" class=\"footer\">Privacy Policy</a> | <a href=\"" + strBaseUrl + "/contact/termsofuse.html\" class=\"footer\">Terms of Use</a></div></td>";
	text += "            <td width=\"272\" background=\"/images/layout/footerBg.gif\"><div class=\"footer\">";
	text += "              <div align=\"right\">&copy;&nbsp; 2007 Sterling Commerce. All Rights Reserved</div>";
	text += "            </div></td>";
	text += "            <td width=\"8\"><img src=\"/images/layout/footerRightCol_white.gif\" width=\"8\" height=\"30\"></td>";
	text += "          </tr>";
	text += "      </table>";
	document.write (text);
}



function buildFooterSmall()
	{
	var text = "";
	text += "<span align=\"right\" class=\"smallText\">&copy; 2007 Sterling Commerce. All Rights Reserved</span>";
	document.write (text);
	}


//------------------------------- MENU SYSTEM ------------------------------------//	
menuTimer=0;

function setTimer() {
	menuTimer=setTimeout("hideAll()",500);
}

function clrTimer() {
	clearTimeout(menuTimer);
}
function hideAll() { 
	hideLayer('dd1','dd2','dd3','dd4','dd5'); 
	clrTimer();
}	
function showLayer() {
	hideAll();
	var n=showLayer.arguments.length; 
	for (var i=0; i<n; i++) { 
		var lyr = document.getElementById(showLayer.arguments[i]).style;
		if(lyr) { 
			lyr.visibility="visible";
		} 
	} 
} 
function hideLayer() { 
	var n=hideLayer.arguments.length; 
	for (var i=0; i<n; i++) { 
		var lyr = document.getElementById(hideLayer.arguments[i]).style; 
		if(lyr) { 
			lyr.visibility = "hidden";
		} 
	} 
}

function buildSubmenus(){
	var myText = "";
	myText += "<div id=\"dropdowns\">";
//Submenu 1
	myText += "<div id=\"dd1\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Industries/Banking/\">Banking</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Industries/Healthcare/\">Healthcare</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Industries/IndustrialManufacturing/\">Industrial Manufacturing</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Industries/Logistics/\">Logistics</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Industries/Retail/\">Retail</a></li>";
	myText += "</ul></div>";
//Submenu 2
	myText += "<div id=\"dd2\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/BusinessApplications/\">Business Applications</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/BusinessIntegration/\">Business Integration</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/BusinessIntelligence/\">Business Intelligence</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/BusinessProcessManagement/\">Business Process Management</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/SolutionDelivery/\">Solution Delivery</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/SupplyChain/\">Supply Chain Management</a></li>";
	myText += "</ul></div>";
//Submneu3
	myText += "<div id=\"dd3\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/EAI/\">Application Integration (EAI)</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/B2BCommunications/\">B2B Communications</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/CommunityManagement/\">Community Management</a></li>"; 
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/EDI/\">Electronic Data Interchange (EDI)</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/B2BCommunications/dssolutions.html\">Global Data Synchronization</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/SecureFileTransfer/\">Secure File Transfer</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/SystemsMonitoring/\">Systems Monitoring</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Solutions/SupplyChain/\">Supply Chain Management</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Products/AllProducts/\">All Products</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Customer/\">Customer Support</a></li>";
	myText += "</ul></div>";
//Submenu4
	myText += "<div id=\"dd4\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/StrategicConsulting/\">Strategic Consulting</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/HostedNetworkSolutions/\">Hosted Network Solutions</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/ImplementationServices/\">Implementation Services</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/PostImplementationServices/\">Post-Implementation Services</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/Outsourcing/\">Outsourcing</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/CustomServices/\">Custom Services</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Services/Education/\">Education</a></li>";
	myText += "</ul></div>";
//Submenu5
	myText += "<div id=\"dd5\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/About/OurVision/vision.htm\">Our Vision</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/Apps/SuccessStories/index.asp\">References</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/About/CompanyInfo/\">Company Info</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/apps/pressreleases/\">News</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/apps/events/\">Events</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"/About/Careers/\">Careers</a></li>";
	myText += "</ul></div>";
	myText += "</div>";
	document.write(myText);
}

function buildNav(){
	var nav = "";
nav += "<table width=\"760\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"menuText\"><tr>";
nav += "      <td width=\"5\"><img src=\"/images/layout/mainMenuLeftCol.gif\" width=\"5\" height=\"25\"></td>";
nav += "      <td width=\"148\" align=\"center\" valign=\"middle\" background=\"/images/layout/mainMenuBg.gif\"><a href=\"" + strBaseUrl + "/Industries/index.html\" onmouseover=\"clrTimer();showLayer('dd1')\" onmouseout=\"setTimer()\"> Industries</a></td>";
nav += "      <td width=\"2\"><img src=\"/images/layout/mainMenuDivider.gif\" width=\"2\" height=\"25\"></td>";
nav += "      <td width=\"148\" align=\"center\" valign=\"middle\" background=\"/images/layout/mainMenuBg.gif\"><a href=\"" + strBaseUrl + "/Solutions/index.html\" onmouseover=\"clrTimer();showLayer('dd2')\" onmouseout=\"setTimer()\">Solutions</a></td>";
nav += "      <td width=\"2\"><img src=\"/images/layout/mainMenuDivider.gif\" width=\"2\" height=\"25\"></td>";
nav += "      <td width=\"148\" align=\"center\" valign=\"middle\" background=\"/images/layout/mainMenuBg.gif\"><a href=\"" + strBaseUrl + "/Products/index.html\" onmouseover=\"clrTimer();showLayer('dd3')\" onmouseout=\"setTimer()\">Products</a></td>";
nav += "      <td width=\"2\"><img src=\"/images/layout/mainMenuDivider.gif\" width=\"2\" height=\"25\"></td>";
nav += "      <td width=\"148\" align=\"center\" valign=\"middle\" background=\"/images/layout/mainMenuBg.gif\"><a href=\"" + strBaseUrl + "/Services/index.html\" onmouseover=\"clrTimer();showLayer('dd4')\" onmouseout=\"setTimer()\">Services</a></td>";
nav += "      <td width=\"2\"><img src=\"/images/layout/mainMenuDivider.gif\" width=\"2\" height=\"25\"></td>";
nav += "      <td width=\"147\" align=\"center\" valign=\"middle\" background=\"/images/layout/mainMenuBg.gif\"><a href=\"" + strBaseUrl + "/About/index.asp\" onmouseover=\"clrTimer();showLayer('dd5')\" onmouseout=\"setTimer()\">About Us </a></td>";
nav += "      <td width=\"4\"><img src=\"/images/layout/mainMenuRightCol.gif\" width=\"4\" height=\"25\"></td>";
nav += "    </tr></table>";
document.write (nav)
}
//------------------------------- BANNER ------------------------------------//	


function ShowThePicture()
	{
		var banners = new Array()
		banners[0]="<img src=\"/images/home/home_banner.jpg\" width=\"760\" height=\"208\" border=\"0\" usemap=\"#BannerMap\"><map name=\"BannerMap\"><area shape=\"rect\" coords=\"14,144,106,162\" href=\"/About/MagicQuadrant.html\"></map>"
		banners[1]="<embed src=\"/media/misc/gis4/gis4.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"760\" height=\"208\" name=\"animation\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">"
		banners[2]="<img src=\"/images/home/home_banner.jpg\" width=\"760\" height=\"208\" border=\"0\" usemap=\"#BannerMap\"><map name=\"BannerMap\"><area shape=\"rect\" coords=\"14,144,106,162\" href=\"/About/MagicQuadrant.html\"></map>"
		banners[3]="<embed src=\"/media/misc/gis4/gis4.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"760\" height=\"208\" name=\"animation\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">"

		var Image;
		var nr;
	
		while(Image == null){
			nr = Math.round(4 * Math.random());
			Image = banners[nr]
		}
	
		document.write("" + Image + "")
	}



function buildHomeBanner()
	{
	ShowThePicture();
	}


//function buildHomeBanner()
//	{
//	var banner="";
//	//--------------------for STATIC banners--------------------//
//	//banner += "<img src=\"/images/home/home_banner.jpg\" width=\"760\" height=\"208\" border=\"0\" usemap=\"#BannerMap\">";
//	//banner += "<map name=\"BannerMap\">";
//	//banner += "<area shape=\"rect\" coords=\"14,144,106,162\" href=\"/About/MagicQuadrant.html\"></map>";
//	//--------------------for FLASH banners--------------------//
//	banner += "<embed src=\"/media/misc/gis4/gis4.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"760\" height=\"208\" name=\"animation\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">";
//	document.write (banner);
//	}






//------------------------------- Generic Functions ------------------------------------//	
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openNewWindow(myURL, myTitle, myWidth, myHeight)
	{
	window.open(myURL,myTitle,'toolbar=no,width=' + myWidth + ',height=' + myHeight + ',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,location=no,copyhistory=no,alwaysraised=yes');
	}



function openNewWindowEMEA(myURL, myTitle, myWidth, myHeight)
	{
		if(confirm("You are being redirected to the US site. Is this ok?"))
		{
		window.open(myURL,myTitle,'toolbar=no,width=' + myWidth + ',height=' + myHeight + ',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,location=no,copyhistory=no,alwaysraised=yes');
		}
	}




function openContactWindow() {
        var version = parseInt(navigator.appVersion);
        if (version >= 4)
        var openContactWindow = window.open('" + strBaseUrl + "/contact/index.asp','Contact','width=500,height=500,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubars=no'); 
}

function openEMEA() {
        var version = parseInt(navigator.appVersion);
        if (version >= 4)
        var openContactWindow = window.open('/apps/forms/PrivacyNotice.html','Notice','width=500,height=500,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubars=no'); 
}



function stripSpaces(mystring)
		{
			x = mystring;
			while (x.substring(0,1) == ' ') x = x.substring(1);
			while (x.substring(x.length-1,x.length) == ' ') x = x.substring(0,x.length-1);
			return x;
		}
		
		// embed the flash swf
function writeFlashTag(movieName, width, height, baseVersion, bgColor) {
    document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + baseVersion + ',0,0,0" width="' + width + '" height="' + height + '">\n<param name="movie" value="' + movieName + '">\n<param name="bgcolor" value="' + bgColor + '">\n<param name="quality" value="high"><param name="wmode" value="transparent"><param name="menu" value="false">\n');
    document.write ('<embed src="' + movieName + '" TYPE="application/x-shockwave-flash" wmode="transparent" menu="false" quality="high" bgcolor="' + bgColor + '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width=' + width + ' height=' + height + '> </embed>\n</object>');
    return;
}	
		// embed the flash swf
function writeFlashTagSolid(movieName, width, height, baseVersion, bgColor) {
    document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + baseVersion + ',0,0,0" width="' + width + '" height="' + height + '">\n<param name="movie" value="' + movieName + '">\n<param name="bgcolor" value="' + bgColor + '">\n<param name="quality" value="high"><param name="menu" value="false">\n');
    document.write ('<embed src="' + movieName + '" TYPE="application/x-shockwave-flash" menu="false" quality="high" bgcolor="' + bgColor + '" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" width=' + width + ' height=' + height + '> </embed>\n</object>');
    return;
}	

function SpotLight(){
var axel = Math.random()+"";
var a = axel * 10000000000000;
document.write('<img src="http://ad.doubleclick.net/activity;src=1166245;type=sterl472;cat=sterl721;ord=1;num='+ a + '?" width="1" height="1" border="0" />');
}
