// JavaScript Document
		
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.p = navigator.platform
	this.ie = (this.b=="ie" && this.v>=4 && this.p=="Win32")
	this.ns = (this.b=="ns" && this.v>=4)
	this.three = (this.v < 4)
}

function getAttr(height,width){
	if (ns) {
		 // Center on the main window.
		 dialogleft = window.screenX + ((window.outerWidth - width) / 2);
		 dialogtop = window.screenY + ((window.outerHeight - height) / 2);
		 var attr = "screenX=" + dialogleft + ",screenY=" + dialogtop + ",width=" + width + ",height=" + height;
	  } else if (ie){
		 // The best we can do is center in screen.
		 dialogleft = (screen.width - width) / 2;
		 dialogtop = (screen.height - height) / 2;
		 var attr = "left=" + dialogleft + ",top=" + dialogtop + ",width=" + width + ",height=" + height;
	  } else {
		 var attr = "width=" + width + ",height=" + height;
	  }
	  return (attr);
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function changeImages2() {
	if(hasFlash == 'plugin'){
		if (document.images && (preloadFlag == true)) {
			for (var i=0; i<changeImages2.arguments.length; i+=2) {
				document[changeImages2.arguments[i]].src = changeImages2.arguments[i+1];
			}
		}
	}
}

function preloadImages() {
	if (document.images) {
		demoButton_over = newImage("demoButton-over.gif");
		demoButton_swap = newImage("getFlash.gif");

		preloadFlag = true;
		
		if(hasFlash == 'no'){
				changeImages('demoButton', 'getFlash.gif'); return true;
				lemmeIn_over = newImage("lemmeIn-over.gif");
				changeImages('lemmeIn', 'lemmeIn.gif'); return true;
		}
		

	}
}

function OpenWindow(height,width){
	if ((hasFlash == 'plugin')||(bypass == 'true')){
	
	attr = getAttr(height,width);
	dialog = window.open('/products/wcm/collage/framework/collageFramework.html','COLLAGE_DEMO','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,' + attr);
	dialog.opener = this;
	
	} else {
	
	attr = getAttr(height,width);
	dialog = window.open('http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English','MM','toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,' + attr);
	dialog.opener = this;
	}
}

function OpenWindowDim(height,width){
	if ((hasFlash == 'plugin')||(bypass == 'true')){
	
	attr = getAttr(height,width);
	dialog = window.open('/products/ecm/dimensions/framework/dimensionsFramework.html','COLLAGE_DEMO','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,' + attr);
	dialog.opener = this;
	
	} else {
	
	attr = getAttr(height,width);
	dialog = window.open('http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English','MM','toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,' + attr);
	dialog.opener = this;
	}
}


function OpenWindow2(height,width,type){
	switch(type){
		case 1: //products
			path = "http://conversation.i-op.com/topic/start/merant1wcm?SID=main_product_page";
			break;
		case 2: //services
			path = "http://conversation.i-op.com/topic/start/merant1wcm?SID=services";
			break;
		case 3: //google
			path = "http://conversation.i-op.com/topic/start/merant2qlead/frames?SID=google";
			break;
		case 4: //overture
			path = "http://conversation.i-op.com/topic/start/merant2qlead/frames?SID=overture";
			break;
		case 5: //product offerings
			path = "http://conversation.i-op.com/topic/start/merant1wcm?SID=product_offerings";
			break;
		default:	
			path = "http://conversation.i-op.com/topic/start/merant1wcm";
	}
	attr = getAttr(height,width);
	dialog = window.open(path,'Collage','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,' + attr);
	dialog.opener = this;
}

<!--
function gotocountry() {
	var i = document.countryform.selcountry.selectedIndex;
	document.location.href = document.countryform.selcountry.options[i].value;
}
// -->

// Function for zooming into screenshots
<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// End -->

//Function for opening investors tab
<!-- Begin
function NewWindowInvestor(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,toolbar=1'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// -->
		