
if(!titlesArr){
	var titlesArr=new Array();
	titlesArr[0]="Medgenics - healing from within";
	titlesArr[1]="About Us";
	titlesArr[2]="Technology";
	titlesArr[3]="Product Pipeline";
	titlesArr[4]="News & Events";
	titlesArr[5]="Investors";
	titlesArr[6]="Contact Us";
}

document.write(getTitle(firstMenuToRollOver));

var imageFirstLevelMenuToRollOver;
var menusSecondLevel = new Array ();

//no second level
menusSecondLevel[0]=menusSecondLevel[6]='<tr><td colspan="2"><img src="images/about-us_17.gif" width="780" height="20"></td></tr>';
menusSecondLevel[1]='<tr>'+
			'<td colspan="2">'+
			'<table width="200" border="0" cellspacing="0" cellpadding="0">'+
			  '<tr>'+
				'<td><a href="Strategy.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image23\',\'\',\'images/strategy_aboutus-over.gif\',1)"><img src="images/strategy_aboutus.gif" name="Image23" width="78" height="24" border="0"></a></td>'+
				'<td><a href="Management.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image24\',\'\',\'images/manag_about-over.gif\',1)"><img src="images/manag_about.gif" name="Image24" width="91" height="24" border="0"></a></td>'+
				'<td><a href="BoardOfDirectors.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image25\',\'\',\'images/board_about-over.gif\',1)"><img src="images/board_about.gif" name="Image25" width="117" height="24" border="0"></a></td>'+
				'<td><a href="Advisors.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image26\',\'\',\'images/advisors_about-over.gif\',1)"><img src="images/advisors_about.gif" name="Image26" width="67" height="24" border="0"></a></td>'+
				'<td><img src="images/about_subMenuEmpty.gif" name="Image27" width="427" height="24" border="0"></td>'+
			 '</tr>'+
			'</table>'+
			'</td>'+
		'</tr>'+
		'<tr>'+
			'<td colspan="2"><img src="images/Technologies_24.gif" width="780" height="13"></td>'+
		'</tr>';
		
menusSecondLevel[2]='<tr>'+
			'<td colspan="2">'+
			'<table width="200" border="0" cellspacing="0" cellpadding="0">'+
			  '<tr>'+
				'<td><a href="TechnologyKeyAdvantages.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image26\',\'\',\'images/bioadvant_tech-over.gif\',1)"><img src="images/bioadvant_tech.gif" name="Image26" width="123" height="24" border="0"></a></td>'+
				'<td><img src="images/tech_empty.gif" name="Image27" width="657" height="24" border="0"></td>'+
			 '</tr>'+
			'</table>'+
			'</td>'+
		'</tr>'+
		'<tr>'+
			'<td colspan="2"><img src="images/Technologies_24.gif" width="780" height="13"></td>'+
		'</tr>';

menusSecondLevel[3]='<tr>'+
			'<td colspan="2">'+
			'<table width="200" border="0" cellspacing="0" cellpadding="0">'+
			  '<tr>'+
				'<td><a href="EPODUREAnemia.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image23\',\'\',\'images/EPODU_PRO-over.gif\',1)"><img src="images/EPODU_PRO.gif" name="Image23" width="104" height="24" border="0"></a></td>'+
				'<td><a href="INFRADUREHepatitisC.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image24\',\'\',\'images/INFRA_PRO-over.gif\',1)"><img src="images/INFRA_PRO.gif" name="Image24" width="105" height="24" border="0"></a></td>'+
				
				'<td><img src="images/productPipeline_empty.gif" name="Image27" width="571" height="24" border="0"></td>'+
			 '</tr>'+
			'</table>'+
			'</td>'+
		'</tr>'+
		'<tr>'+
			'<td colspan="2"><img src="images/Technologies_24.gif" width="780" height="13"></td>'+
		'</tr>';
		
menusSecondLevel[4]='<tr>'+
			'<td colspan="2">'+
				'<table width="200" border="0" cellspacing="0" cellpadding="0">'+
				  '<tr>'+
					'<td><a href="mediaConfAndEvents.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image23\',\'\',\'images/confere_new-over.gif\',1)"><img src="images/confere_new.gif" name="Image23" width="163" height="24" border="0"></a></td>'+
					'<td><a href="mediaDownloadArea.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image24\',\'\',\'images/download_new-over.gif\',1)"><img src="images/download_new.gif" name="Image24" width="98" height="24" border="0"></a></td>'+					
					'<td><img src="images/newsEvents_empty.gif" name="Image27" width="519" height="24" border="0"></td>'+
				 '</tr>'+
				'</table>'+
			'</td>'+
		'</tr>'+
		'<tr>'+
			'<td colspan="2"><img src="images/Technologies_24.gif" width="780" height="13"></td>'+
		'</tr>';
		
menusSecondLevel[5]='<tr>'+
			'<td colspan="2">' +
			'<table border="0" cellspacing="0" cellpadding="0">' +
				  '<tr>' +
					'<td><a href="InvestorCompany.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image21\',\'\',\'images/investCompany-over.jpg\',1)"><img src="images/investCompany.jpg" name="Image21" width="91" height="24" border="0"></a></td>'+
					'<td><a href="InvestorPublicationsReport.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image22\',\'\',\'images/investPublicationsReport-over.jpg\',1)"><img src="images/investPublicationsReport.jpg" name="Image22" width="128" height="24" border="0"></a></td>'+
					'<td><a href="InvestorAIMSecurities.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image23\',\'\',\'images/investAIMSecurities-over.jpg\',1)"><img src="images/investAIMSecurities.jpg" name="Image23" width="94" height="24" border="0"></a></td>'+
					'<td><a href="InvestorSharePrice.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image24\',\'\',\'images/investSharePrice-over.jpg\',1)"><img src="images/investSharePrice.jpg" name="Image24" width="79" height="24" border="0"></a></td>'+
					'<td><a href="InvestorContacts.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image25\',\'\',\'images/investInvestorContact-over.jpg\',1)"><img src="images/investInvestorContact.jpg" name="Image25" width="105" height="24" border="0"></a></td>'+
					'<td><img src="images/investEmpty.jpg" width="283" height="24" border="0"></td>'+
				 '</tr>'+
				'</table>'+
			'</td>'+
		'</tr>'+
		'<tr>'+
			'<td colspan="2"><img src="images/Technologies_24.gif" width="780" height="13"></td>'+
		'</tr>';
		
function isRollOver(imageLocation){
	if(imageLocation==imageFirstLevelMenuToRollOver) return '-over';
	else return '';
}

function drawHtml(topImage,firstMenuToRollOver){
	imageFirstLevelMenuToRollOver=firstMenuToRollOver;
	var htmlText = '';
	htmlText += '<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" background="images/about-us_19.gif">';
	htmlText +=		'<tr>';
	htmlText +=			'<td colspan="2"><img src="images/about-us_03.gif" width="780" height="10"></td>';
	htmlText +=		'</tr>';
	htmlText +=		'<tr>';
	htmlText +=			'<td colspan="2"><img src="images/about-us_05.gif" width="780" height="49"></td>';
	htmlText +=		'</tr>';
	htmlText +=		'<tr>';
	htmlText +=			'<td width="291"><img src="images/about-us_06.gif" width="715" height="23"></td>';
	htmlText +=			'<td width="65">';
	htmlText +=			'<a href="index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image4\',\'\',\'images/about-us_07-over.gif\',1)"><img src="images/about-us_07.gif" name="Image4" width="65" height="23" border="0"></a>';
	htmlText +=			'</td>';
	htmlText +=		'</tr>';
	//Drawing the top image:
	htmlText +=		'<tr>';
    htmlText +=			'<td colspan="2"><img id="headerImage" src="images/'+topImage+'" width="780" height="204"></td>';
	htmlText +=		'</tr>';
	
	htmlText +=		'<tr>';
    htmlText +=		'	<td colspan="2">';
	//Drawing first level menu items:
	htmlText +=		'	<table width="200" border="0" cellspacing="0" cellpadding="0">';
    htmlText +=		'  		<tr>';
	htmlText +=		'	        <td>';
	htmlText +=		'				<a href="about_us.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image6\',\'\',\'images/aboutus_in-over.gif\',1)">';
	htmlText +=		'				<img src="images/aboutus_in'+isRollOver(1)+'.gif" name="Image6" width="100" height="22" border="0"></a></td>';
	htmlText +=		'			<td>';
	htmlText +=		'				<a href="Technology.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image7\',\'\',\'images/technology_in-over.gif\',1)">';
	htmlText +=		'				<img src="images/technology_in'+isRollOver(2)+'.gif" name="Image7" width="99" height="22" border="0"></a></td>';
	htmlText +=		'			<td>';
	htmlText +=		'				<a href="ProductPipeline.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image8\',\'\',\'images/productpipeline_in-over.gif\',1)">';
	htmlText +=		'				<img src="images/productpipeline_in'+isRollOver(3)+'.gif" name="Image8" width="128" height="22" border="0"></a></td>';
	htmlText +=		'			<td>';
	htmlText +=		'				<a href="NewsAndEvents.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image9\',\'\',\'images/newsevent_in-over.gif\',1)">';
	htmlText +=		'				<img src="images/newsevent_in'+isRollOver(4)+'.gif" name="Image9" width="120" height="22" border="0"></a></td>';
	htmlText +=		'			<td>';
	htmlText +=		'				<a href="Investors.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image10\',\'\',\'images/investors_in-over.gif\',1)">';
	htmlText +=		'				<img src="images/investors_in'+isRollOver(5)+'.gif" name="Image10" width="84" height="22" border="0"></a></td>';
	htmlText +=		'			<td>';
	htmlText +=		'				<a href="Contact_Us.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image11\',\'\',\'images/contactus_in-over.gif\',1)">';
	htmlText +=		'				<img src="images/contactus_in'+isRollOver(6)+'.gif" name="Image11" width="96" height="22" border="0"></a></td>';
	htmlText +=		'			<td>';
	htmlText +=		'				<img src="images/menuLevel1RightEdge.jpg" width="153" height="22" border="0"></a></td>';
	htmlText +=		'		</tr>';
	htmlText +=		'	</table>';
	htmlText +=		'	</td>';
	htmlText +=		'  </tr>';
	htmlText +=			menusSecondLevel[imageFirstLevelMenuToRollOver];
	htmlText +=		'	<tr align="left" valign="top">';
    htmlText +=		'		<td colspan="2"></td>';
	htmlText +=		'	</tr>';
	
	return htmlText;
}

function getTitle(menuID){
	if(titlesArr) return "<title>"+titlesArr[menuID]+"</title>";
}

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_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_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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}