function viewlets(type,lang,url){
	if (type=='2002'){
		window.open('http://www.mindjet.com/viewlets/english/'+url,'viewlet','width=699,height=570,status=0,menubar=0,scrollbars=0,toolbar=0');
	} else if(type=='X5'){
		window.open('http://www.mindjet.com/tutorials/english/flash/'+url,'viewlet','width=788,height=564,status=0,menubar=0,scrollbars=0,toolbar=0');
	} else if(type=='6'){
		window.open('http://www.mindjet.com/tutorials/'+lang+'/flash/'+url,'viewlet','width=792,height=568,status=0,menubar=0,scrollbars=0,toolbar=0');
	}
}

function demo(website,type){
	if (type== 'accelerator'){
		window.open('http://www.mindjet.com/swf/'+website+'../../accelerator/salesforce_phase.html','video','width=801,height=601,status=0,menubar=0,scrollbars=0,toolbar=0');	
	} else if(type=='solutions'){
		window.open('http://www.mindjet.com/swf/'+website+'../../solutions/index.htm','video','width=801,height=601,status=0,menubar=0,scrollbars=0,toolbar=0');
	} else if (type=='x5'){
		window.open('http://www.mindjet.com/x5d/'+website+'../../video_x5e.htm','video','width=801,height=601,status=0,menubar=0,scrollbars=0,toolbar=0');
	}
}

//US
function xName(name){
	window.name = name;
	//alert ("we have named the window: "+self.name);
	}
function xLocation(location){
	window.location.href = location;
	}
function xWin(website,location,name,width,height,left,top,status,menubar,scrollbars,resizable,toolbar){
	if (xOpened && xOpened.open && !xOpened.closed){
	xOpened.focus();
	}
	else {
	var xOpened = window.open(website + location, name,'width='+width+',height='+height+',left='+left+',top='+top+',status='+status+',menubar='+menubar+',scrollbars='+scrollbars+','+resizable+',toolbar='+toolbar+"'");
	xOpened.focus();
	}
}

function viewlets_tutorials_eng(url){
	window.open('http://www.mindjet.com/tutorials/english/flash/'+url,'viewlet','width=801,height=601,status=0,menubar=0,scrollbars=0,toolbar=0');
}
function viewlets_tablet_eng(url){
	window.open('http://www.mindjet.com/tutorials/english/flash/'+url,'viewlet','width=820,height=630,status=0,menubar=0,scrollbars=0,toolbar=0');
}
function partnerwin(url){
	window.open(url,'partnerwin','width=680,height=450,status=0,menubar=0,scrollbars=0,resizable,toolbar=0');
}

//TPC 5.1 release FUE website specific
function fue48(website){
window.name = "fue48";
	if (website == "US") {
		website = "video_eng48.htm";
	} else if (website == "EU") {
		website = "video_eng48.htm";
	} else if (website == "UK") {
		website = "video_eng48.htm";
	} else if (website == "DE") {
	website = "video_eng48.htm";
	}
	var fuepop = window.open('http://www.mindjet.com/'+website,'video','width=810,height=615,status=0,menubar=0,scrollbars=0,toolbar=0');
}

//TPC 4.6FUE website specific
function fue46(website){
window.name = "fue46";
	if (website == "US") {
		website = "video_eng.htm";
	} else if (website == "EU") {
		website = "video_eu.htm";
	} else if (website == "UK") {
		website = "video_uk.htm";
	}
	var fuepop = window.open('http://www.mindjet.com/'+website,'video','width=799,height=599,status=0,menubar=0,scrollbars=0,toolbar=0');
}
function OpenPopup (url) {
	var newWin = null; 
	 if (newWin != null && !newWin.closed)
	   newWin.close(); 
	newWin = window.open(url,'window','width=790,height=700,scrollbars=yes,status=yes,resizable=1');
	newWin.focus();
}
function OpenPopup2 (url) {
	var newWin = null; 
	 if (newWin != null && !newWin.closed)
	   newWin.close(); 
	newWin = window.open(url,'window','width=720,height=700,scrollbars=yes,status=yes,resizable=1');
	newWin.focus();
}
// GERMAN Add-Ins Popup window - added 26/08/05
function addins_de(file_name,title,description,download)
{
  var generator=window.open('','name','height=400,width=830,scrollbars=no,resizable=false');
  generator.focus();
  generator.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
  generator.document.write('<html xmlns="http://www.w3.org/1999/xhtml">');
  generator.document.write('<head><title>Mindjet: Add-In - '+title+'</title>');
  generator.document.write('<link rel="stylesheet" href="../../styles/advanced.css">');
  generator.document.write('</head><body style="font-family:trebuchet MS; font-size:15px;">');
  generator.document.write('<table class="mapgallery"><tr><td valign="top" style="width:300px;"><span style="font-size:20px;">'+title+'</span></td>');
  generator.document.write('<td valign="top" rowspan="2"><a href="javascript:self.close()" /><img src="../../images/ger/button/button_schliessen.gif" alt="Schliessen" title="Schliessen" width="80" height="20" border="0" align="right"/></a></td>');
  generator.document.write('<tr><td colspan="2"><img class="mapimage" src="http://www.mindjet.com/images/ger/addins/5/'+file_name+'_screen_la.jpg" /></td></tr>');
  generator.document.write('<tr><td colspan="3" style="width:600px;">'+description+'</td></tr></table></body></html>');
  generator.document.close();
}
//Popup image
//usage: <a href="graphics/convent.jpg" target="_blank" onclick="goImgWin('graphics/convent.jpg',240,302,100,50); return false;"></a>
function goImgWin(myImage,myWidth,myHeight,origLeft,origTop) {
	myHeight += 50;
	myWidth += 30;
	TheImgWin = window.open(myImage,'image','height='+myHeight+',width='+myWidth+',toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
	TheImgWin.resizeTo(myWidth+2,myHeight+30);
	TheImgWin.moveTo(origLeft,origTop);
	TheImgWin.focus();
}

//Open url in parent page (used from a popup)
function to_old_win(url){
	opener.location.href = url;
	this.window.close();
}