
// the opened sub menu
openedSubMenu = null;
// the marked company at the portfolio pages
markedComp = null;
// the marked team member at the team pages
markedTeam = null;
// the opened news at the news page
openedNews = null;

// preloading of the images
if(document.images){
	sp1 = new Image;
	sp1.src = "pix/submitPlan1.gif";
	sp2 = new Image;
	sp2.src = "pix/submitPlan2.gif";
	
	mi1 = new Image;
	mi1.src = "pix/mi1.gif";
	mi1_2 = new Image;
	mi1_2.src = "pix/mi1_2.gif";

	mi2 = new Image;
	mi2.src = "pix/mi2.gif";
	mi2_2 = new Image;
	mi2_2.src = "pix/mi2_2.gif";

	mi3 = new Image;
	mi3.src = "pix/mi3.gif";
	mi3_2 = new Image;
	mi3_2.src = "pix/mi3_2.gif";

	mi4 = new Image;
	mi4.src = "pix/mi4.gif";
	mi4_2 = new Image;
	mi4_2.src = "pix/mi4_2.gif";

	mi5 = new Image;
	mi5.src = "pix/mi5.gif";
	mi5_2 = new Image;
	mi5_2.src = "pix/mi5_2.gif";

	mi6 = new Image;
	mi6.src = "	pix/mi6.gif";
	mi6_2 = new Image;
	mi6_2.src = "	pix/mi6_2.gif";

	home1 = new Image;
	home1.src = "pix/homepage1.gif";
	home2 = new Image;
	home2.src = "pix/homepage2.gif";

	submit1 = new Image;
	submit1.src = "pix/submitAPlan1.gif";
	submit2 = new Image;
	submit2.src = "pix/submitAPlan2.gif";

	contact1 = new Image;
	contact1.src = "pix/contact1.gif";
	contact2 = new Image;
	contact2.src = "pix/contact2.gif";

	ok1 = new Image;
	ok1.src = "pix/ok1.gif";
	ok2 = new Image;
	ok2.src = "pix/ok2.gif";

	cancel1 = new Image;
	cancel1.src = "pix/cancel1.gif";
	cancel2 = new Image;
	cancel2.src = "pix/cancel2.gif";

	cb1 = new Image;
	cb1.src = "pix/cb.gif";
	cb2 = new Image;
	cb2.src = "pix/cb_checked.gif";

	studio1 = new Image;
	studio1.src = "pix/byStudio97.gif";
	studio2 = new Image;
	studio2.src = "pix/byStudio972.gif";
	
	comm1 = new Image;
	comm1.src = "pix/communications.gif";
	comm2 = new Image;
	comm2.src = "pix/communicationsOn.gif";
	info1 = new Image;
	info1.src = "pix/infoTech.gif";
	info2 = new Image;
	info2.src = "pix/infoTechOn.gif";
	lifeS1 = new Image;
	lifeS1.src = "pix/lifeSciences.gif";
	lifeS2 = new Image;
	lifeS2.src = "pix/lifeSciencesOn.gif";
	semi1 = new Image;
	semi1.src = "pix/Semiconductors.gif";
	semi2 = new Image;
	semi2.src = "pix/SemiconductorsOn.gif";
	Inter1 = new Image;
	Inter1.src = "pix/internetmedia.gif";
	Inter2 = new Image;
	Inter2.src = "pix/internetmediaOn.gif";	

	mang1 = new Image;
	mang1.src = "pix/management.gif";
	mang2 = new Image;
	mang2.src = "pix/managementOn.gif";

	vent1 = new Image;
	vent1.src = "pix/venture.gif";
	vent2 = new Image;
	vent2.src = "pix/ventureOn.gif";

	profes1 = new Image;
	profes1.src = "pix/professionals.gif";
	profes2 = new Image;
	profes2.src = "pix/professionalsOn.gif";	
}

/**
  * Changes the img_name to new_src 
  */
function changeImages(img_name, new_src)
{
	if(document.images)
		document.images[img_name].src=eval(new_src+".src");
}

/**
  * open and closes sub menu in the portfolio menu
  * @param subTag - the id of the inner submenu to be opened
  */
function openSub(subTag){
	
	if(document.getElementById){
		if(document.getElementById("inner"+subTag).style.display == "none"){
			document.getElementById("inner"+subTag).style.display = "inline";
			if(openedSubMenu!=null){
				document.getElementById("inner"+openedSubMenu).style.display = "none";
				changeImages(openedSubMenu+"-pic",openedSubMenu+"1");
			}
			changeImages(subTag+"-pic",subTag+"2");
			if(subTag!=Pagelocation)
				location = "portfolio-"+subTag+".asp";
			openedSubMenu = subTag;
		}
		else{
			document.getElementById("inner"+subTag).style.display = "none";		
			changeImages(subTag+"-pic",subTag+"1");
			openedSubMenu = null;
		}

	}
}

/**
  * an item object in the portfolio menu
  * @param name - the name of the menu item.
  * @param picSrc - the source of the picture of the menu item
  * @param width - the width of the picture of the menu item
  * @param height - the height of the picture of the menu item
  * @param innerArray - the Array of inner items for the menu item
  * @param innerLinksArray - the Array of the inner items links for the menu item
  */
function menuItem(name,picSrc,width,height,innerArray,innerLinksArray){
	this.name = name;
	this.picSrc = picSrc;
	this.width = width;
	this.height = height;
	this.innerArray = innerArray;
	this.innerLinksArray = innerLinksArray;
}

/**
  * an item object in the team menu
  * @param name - the name of the menu item.
  * @param picSrc - the source of the picture of the menu item
  * @param width - the width of the picture of the menu item
  * @param height - the height of the picture of the menu item
  * @param innerNamesArray - the Array of team names for the menu item
  * @param innerLinksArray - the Array of team roles for the menu item
  * @param innerLinksArray - the Array of the inner items links for the menu item
  */

function menuTeamItem(name,picSrc,width,height,innerNamesArray,innerRolesArray,innerLinksArray){
	this.name = name;
	this.picSrc = picSrc;
	this.width = width;
	this.height = height;
	this.innerNamesArray = innerNamesArray;
	this.innerRolesArray = innerRolesArray;
	this.innerLinksArray = innerLinksArray;
}


/**
  * this function creates inner menu for the portfolio pages.
  * is called from the menuBirth() function
  * @param innerItemsArray - the Array of companies for the inner menu
  * @param tag - the name of the inner menu
  * @param innerItemsIdsArray - the links array for the inner menu links
  */ 
function menuInnerBirth(innerItemsArray,tag,innerItemsIdsArray){
	
	document.write("<table width='143' border='0' cellspacing='0' cellpadding='0' style='display:none;' id='inner"+tag+"'>");
	document.write("<tr style='line-height:6px;'><td align='right'>&nbsp;</td></tr>");
	for(j=0;j<innerItemsArray.length;j++){
		document.write("<tr><td align='right'><a href=javascript:goToComp('"+innerItemsIdsArray[j]+"','"+tag+"'); class='treeLink'>"+innerItemsArray[j]+"</a></td></tr>");
	}
	document.write("<tr style='line-height:5px;'><td align='right'>&nbsp;</td></tr></table>");
}


/** 
  * Creates a menu and submenus for the portfolio pages.
  * need to declare a GLOBAL itemsArray array that declares
  * all the menu items and the inner menu items.
  */
function menuBirth(){
	
	document.write("<table width='143' border='0' cellspacing='0' cellpadding='0'>");
        for(i=0;i<itemsArray.length;i++){
        	document.write("<tr align='right'><td><a href=javascript:openSub('"+itemsArray[i].name+"');><img src='"+itemsArray[i].picSrc+"' width='"+itemsArray[i].width+"' height='"+itemsArray[i].height+"' border='0' name='"+itemsArray[i].name+"-pic');></a></td>");
            	document.write("</tr><tr><td align='right'>");
            	menuInnerBirth(itemsArray[i].innerArray,itemsArray[i].name,itemsArray[i].innerLinksArray);
            	document.write("</td></tr><tr style='line-height:4px'><td>&nbsp;</td></tr>");
        }
        document.write("</table>");
        

}

/**
  * jump and mark a company in the portfolio pages
  * @param tag - the id of the company
  * @param subTag - the id of the page of the comapny
  */
function goToComp(tag,subTag){
	if(markedComp!=null){
		document.getElementById(markedComp).className = "innerComp";	
	}
	document.getElementById(tag).className = "innerCompMarked";
	markedComp = tag;
	location="portfolio-"+subTag+".asp#jump"+tag
}

/**
  * Checks that a site name is not too big for the space.
  * if it is, cuts the last charecters, and add "..." after it. 
  */
function checkWWW(siteName){
	var maxChars = 21;
	if(siteName.length>maxChars){
		document.write(siteName.substr(0,maxChars-2)+"...");
	}
	else{
		document.write(siteName);
	}
}

/**
  * this function creates inner menu for the team pages.
  * is called from the menuTeamBirth() function
  * @param innerItemsNameArray - the Array of team members name for the inner menu
  * @param innerItemsRoleArray - the Array of team members roles for the inner menu
  * @param tag - the name of the inner menu
  * @param innerItemsIdsArray - the links array for the inner menu links
  */ 

function menuTeamInnerBirth(innerItemsNameArray,innerItemsRoleArray,tag,innerItemsIdsArray){
	
	document.write("<table width='143' border='0' cellspacing='0' cellpadding='0' style='display:none;' id='inner"+tag+"'>");
	document.write("<tr style='line-height:8px;'><td align='right'>&nbsp;</td></tr>");
	for(j=0;j<innerItemsNameArray.length;j++){
		document.write("<tr><td align='right'><a href=javascript:goToTeam('"+innerItemsIdsArray[j]+"','"+tag+"'); class='teamName'>"+innerItemsNameArray[j]+"</a></td><td><img src='pix/pix.gif' width='2' height='1'></td></tr>");
		document.write("<tr><td align='right'><a href=javascript:goToTeam('"+innerItemsIdsArray[j]+"','"+tag+"'); class='team'>"+innerItemsRoleArray[j]+"</a></td><td><img src='pix/pix.gif' width='1' height='1'></td></tr>");
		if(j==innerItemsNameArray.length-1){
			document.write("<tr style='line-height:6px;'><td align='right'>&nbsp;</td><td><img src='pix/pix.gif' width='1' height='1'></td></tr>");		
		}
		else{
			document.write("<tr style='line-height:10px;'><td align='right'>&nbsp;</td><td><img src='pix/pix.gif' width='1' height='1'></td></tr>");		
		}
	}
	document.write("</table>");
	

	
	

}

/** 
  * Creates a menu and submenus for the team pages.
  * need to declare a GLOBAL teamItemArray array that declares
  * all the menu items and the inner menu items.
  */
function menuTeamBirth(){
	
	document.write("<table width='143' border='0' cellspacing='0' cellpadding='0'>");
        for(i=0;i<teamItemArray.length;i++){
        	document.write("<tr align='right'><td><a href=javascript:openSubTeam('"+teamItemArray[i].name+"');><img src='"+teamItemArray[i].picSrc+"' width='"+teamItemArray[i].width+"' height='"+teamItemArray[i].height+"' border='0' name='"+teamItemArray[i].name+"-pic');></a></td>");
            	document.write("</tr><tr><td align='right'>");
            	menuTeamInnerBirth(teamItemArray[i].innerNamesArray,teamItemArray[i].innerRolesArray,teamItemArray[i].name,teamItemArray[i].innerLinksArray);
            	document.write("</td></tr><tr style='line-height:4px'><td>&nbsp;</td></tr>");
  		
  	}
        document.write("</table>");



}

/**
  * open and closes sub menu in the team menu
  * @param subTag - the id of the inner submenu to be opened
  */
function openSubTeam(subTag){



	if(document.getElementById){
		if(document.getElementById("inner"+subTag).style.display == "none"){
			document.getElementById("inner"+subTag).style.display = "inline";
			if(openedSubMenu!=null){
				document.getElementById("inner"+openedSubMenu).style.display = "none";
				changeImages(openedSubMenu+"-pic",openedSubMenu+"1");
			}
			changeImages(subTag+"-pic",subTag+"2");
			if(subTag!=Pagelocation)
				location = ""+subTag+".asp";
			openedSubMenu = subTag;
		}
		else{
			document.getElementById("inner"+subTag).style.display = "none";		
			changeImages(subTag+"-pic",subTag+"1");
			openedSubMenu = null;
		}

	}

}

/**
  * jumps and marks a team member in the team pages
  * @param tag - the id of the team member
  * @param subTag - the id of the page of the team member
  */
function goToTeam(tag,subTag){
	
	if(markedTeam!=null){
		changeImages("name-"+markedTeam,"t_"+markedTeam+"_1");
	}
	
	
	location=""+subTag+".asp#jump"+tag
	changeImages("name-"+tag,"t_"+tag+"_2");
	markedTeam = tag;
	
}


/**
  * Creates a team member description table (for the mangagers page)
  * @param teamPName - the name of the picture source of the team member name
  * @param teamPRole - the name of the picrure source of the team member role
  * @param pic - the name of the picture source of the team member picture
  * @param descrp - the description of the team member text
  * @param email - the email of the team member
  * @param linkName - the HTML anchor name of the team member (to jump to it)
  */
function teamMember(teamPName,teamPRole,pic,descrp,email,linkName){
	document.write("<a name='jump"+linkName+"'></a><table width='576'  border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr style='line-height:18px'><td width='10'><img src='pix/pix.gif' width='10' height='1'></td><td width='114'>&nbsp;</td>");
	document.write("<td width='18'><img src='pix/pix.gif' width='18' height='1'></td><td width='100%'>&nbsp;</td></tr>");
        document.write("<tr><td><img src='pix/pix.gif' width='10' height='1'></td><td colspan='3'><img width='170' height='14' src='"+teamPName+"' name='name-"+linkName+"'></td></tr>");
        document.write("<tr><td><img src='pix/pix.gif' width='10' height='1'></td><td colspan='3'><img width='250' height='11' src='"+teamPRole+"'></td></tr>");
        document.write("<tr><td>&nbsp;</td><td height='14'>&nbsp;</td><td>&nbsp;</td><td rowspan='2' valign='top' style='padding-top:14px;'><p class='team'>");
	document.write(descrp);
	document.write("</p></td></tr>");
        document.write("<tr><td>&nbsp;</td><td valign='top' style='padding-top:14px;'><img src='"+pic+"' width='114' height='113' class='picCorrection' style='position:relative;left:-1px'></td><td>&nbsp;</td></tr>");
	document.write("<tr style='line-height:10px '><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td valign='bottom'>&nbsp;</td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td>");
	document.write("<td valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width=1><img src='pix/pix.gif' width='1' height='1'></td><td width='18' valign='bottom'><img src='pix/at@.gif' width='13' height='9' class='picCorrection'></td><td valign='bottom'>");
			document.write("<a href='mailto:"+email+"' class='www2'>"+email+"</a></td></tr>");
            	document.write("</table></td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td height='25' valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width='147' valign='bottom'>&nbsp;</td><td valign='bottom'><img src='pix/suffix.gif' width='13' height='9'></td></tr>");
                document.write("</table>");
        document.write("</td></tr></table>");
        
}

/**
  * Creates a team member description table (for the professionals page)
  * @param teamPName - the name of the picture source of the team member name
  * @param teamPRole - the name of the picrure source of the team member role
  * @param pic - the name of the picture source of the team member picture
  * @param descrp - the description of the team member text
  * @param email - the email of the team member
  * @param linkName - the HTML anchor name of the team member (to jump to it)
  */
function teamMember2(teamPName,teamPRole,pic,descrp,email,linkName){
	document.write("<a name='jump"+linkName+"'></a><table width='565'  border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr style='line-height:18px'><td width='10'><img src='pix/pix.gif' width='10' height='1'></td><td width='114'>&nbsp;</td>");
	document.write("<td width='19'><img src='pix/pix.gif' width='18' height='1'></td><td width='100%'>&nbsp;</td></tr>");
        document.write("<tr><td>&nbsp;</td><td colspan='3'><img width='170' height='14' src='"+teamPName+"' name='name-"+linkName+"'></td></tr>");
        document.write("<tr><td>&nbsp;</td><td colspan='3'><img width='250' height='30' src='"+teamPRole+"'></td></tr>");
        document.write("<tr><td><img src='pix/pix.gif' width='1' height='1'></td><td height='13'><img src='pix/pix.gif' width='1' height='1'></td><td><img src='pix/pix.gif' width='1' height='1'></td><td rowspan='2' valign='top'><p class='team'>");
	document.write(descrp);
	document.write("</p></td></tr>");
        document.write("<tr><td>&nbsp;</td><td valign='top'><img src='"+pic+"' width='114' height='113' class='picCorrection' style='position:relative;left:-1px'></td><td>&nbsp;</td></tr>");
	document.write("<tr style='line-height:10px '><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td valign='bottom'>&nbsp;</td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td>");
	document.write("<td valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width=1><img src='pix/pix.gif' width='1' height='1'></td><td width='18' valign='bottom'><img src='pix/at@.gif' width='13' height='9' class='picCorrection'></td><td valign='bottom'>");
			document.write("<a href='mailto:"+email+"' class='www2'>"+email+"</a></td></tr>");
            	document.write("</table></td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td height='25' valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width='147' valign='bottom'>&nbsp;</td><td valign='bottom'><img src='pix/suffix.gif' width='13' height='9'></td></tr>");
                document.write("</table>");
        document.write("</td></tr></table>");
        
}

/**
  * Creates a team member description table (for the venture page)
  * @param teamPName - the name of the picture source of the team member name
  * @param teamPRole - the name of the picrure source of the team member role
  * @param descrp - the description of the team member text
  * @param email - the email of the team member
  * @param linkName - the HTML anchor name of the team member (to jump to it)
  */
function teamMember3(teamPName,teamPRole,descrp,email,linkName){
	document.write("<a name='jump"+linkName+"'></a><table width='515'  border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr style='line-height:18px'><td width='10'><img src='pix/pix.gif' width='10' height='1'></td><td width='114'>&nbsp;</td>");
	document.write("<td width='19'><img src='pix/pix.gif' width='10' height='1'></td><td width='100%'>&nbsp;</td></tr>");
        document.write("<tr><td>&nbsp;</td><td colspan='3'><img width='170' height='14' src='"+teamPName+"' name='name-"+linkName+"'></td></tr>");
        document.write("<tr valign=top height=36><td>&nbsp;</td><td colspan='3'><img width='250' height='30' src='"+teamPRole+"'></td></tr>");
        document.write("<tr><td>&nbsp;</td><td valign='bottom' colspan='3'><p class='team'>");
	document.write(descrp);
	document.write("</p></td></tr>");
	document.write("<tr style='line-height:10px '><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td valign='bottom'>&nbsp;</td></tr>");
	document.write("<tr><td>&nbsp;</td>");
	document.write("<td valign='bottom' colspan='3'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width='18' valign='bottom'><img src='pix/at@.gif' width='13' height='9' class='picCorrection'></td><td valign='bottom'>");
			document.write("<a href='mailto:"+email+"' class='www2'>"+email+"</a></td></tr>");
            	document.write("</table></td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td height='25' valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width='265' valign='bottom'>&nbsp;</td><td valign='bottom'><img src='pix/suffix.gif' width='13' height='9'></td></tr>");
                document.write("</table>");
        document.write("</td></tr></table>");
        
}

function teamMember4(teamPName,teamPRole,pic,descrp,email,linkName){
	document.write("<a name='jump"+linkName+"'></a><table width='515'  border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr style='line-height:18px'><td width='10'><img src='pix/pix.gif' width='10' height='1'></td><td width='114'>&nbsp;</td>");
	document.write("<td width='19'><img src='pix/pix.gif' width='18' height='1'></td><td width='100%'>&nbsp;</td></tr>");
        document.write("<tr><td>&nbsp;</td><td colspan='3'><img width='170' height='14' src='"+teamPName+"' name='name-"+linkName+"'></td></tr>");
        document.write("<tr><td>&nbsp;</td><td colspan='3'><img width='250' height='30' src='"+teamPRole+"'></td></tr>");
        document.write("<tr><td><img src='pix/pix.gif' width='1' height='1'></td><td height='6'><img src='pix/pix.gif' width='1' height='1'></td><td><img src='pix/pix.gif' width='1' height='1'></td><td rowspan='2' valign='bottom'><p class='team'>");
	document.write(descrp);
	document.write("</p></td></tr>");
        document.write("<tr><td>&nbsp;</td><td valign='top'><img src='"+pic+"' width='114' height='113' style='position:relative;left:-1px;'></td><td>&nbsp;</td></tr>");
	document.write("<tr style='line-height:10px '><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td valign='bottom'>&nbsp;</td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td>");
	document.write("<td valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width=1><img src='pix/pix.gif' width='1' height='1'></td><td width='18' valign='bottom'><img src='pix/at@.gif' width='13' height='9' class='picCorrection'></td><td valign='bottom'>");
			document.write("<a href='mailto:"+email+"' class='www2'>"+email+"</a></td></tr>");
            	document.write("</table></td></tr>");
	document.write("<tr><td>&nbsp;</td><td valign='bottom'>&nbsp;</td><td>&nbsp;</td><td height='25' valign='bottom'><table width='100%'  border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr><td width='147' valign='bottom'>&nbsp;</td><td valign='bottom'><img src='pix/suffix.gif' width='13' height='9'></td></tr>");
                document.write("</table>");
        document.write("</td></tr></table>");

}

function openNews(tag){
try
{
	if(openedNews!=null){
		closeNews(openedNews);
	}
	document.getElementById("news-"+tag+"-short").className = "hidden";
	document.getElementById("news-"+tag+"-long").className = "shown";
	openedNews = tag;
}
catch(err)
{
}

}

function closeNews(tag){
	document.getElementById("news-"+tag+"-short").className = "shown";
	document.getElementById("news-"+tag+"-long").className = "hidden";
	//history.go()
}

/**
  * check 'styled' check box.
  * NOT IN USE IN LAST VERSION OF THE SITE
  */
function check(tag,checkbox_name){

	if(document.images[tag].src == cb2.src){
		changeImages(tag,'cb1');
		a = eval("document.formi."+checkbox_name)
		a.value = "false";
	}
	else{
		changeImages(tag,'cb2');
		a = eval("document.formi."+checkbox_name)
		a.value = "true";
	}
}

function openw(linki,Wwidth,Wheight)
{
	Wwidth=540;
	Wheight=600;
	var	Pwidth=screen.width/2-Wwidth/2;
	var	Pheight=screen.height/2-Wheight/2;
	x=window.open(linki,"window","width="+Wwidth+",height="+Wheight+",scrollbars,top="+Pheight+",left="+Pwidth);
}


/**
  * jump and opens a news article in the news pages
  * @param tag - the id of the company
  */
function goToNews(tag){
	if(!is_ie5up || !is_win){
		location="news2.htm#jump-to-news-"+tag
	}
	else{
		tag = ""+tag;
		location="news.htm#jump-to-news-"+tag
	}
	//openNews("n"+tag);
	

}

function printArticle() {

	if (window.print) {
		setTimeout('window.print();',200);
	}
	else if (agt.indexOf("mac") != -1) {
		alert("Press 'Cmd+p' on your keyboard to print article.");
	}
	else {
		alert("Press 'Ctrl+p' on your keyboard to print article.")
	}

}