
	
	
	document.topNav = [
		["templateDoNotEdit","leftPosition","width",[
			["Link One","filename.html"],
			["Link Two","http://www.link.com/"],
			["Link Three that <br> takes 2 lines","http://www.link.com/"],
			["Q &amp; A ","/"]
		]],
		
		["about_vg","0","150",[
			["Contact Us","http://www.viralgenetics.com/contactUs.html"],
			["Our Team","http://www.viralgenetics.com/management.html"],
			["Corporate Governance<br>&amp; Board of Directors","http://www.viralgenetics.com/inv_governance.html"],
			["Advisory Board","http://www.viralgenetics.com/ad_board.html"]
		]],
		
		["vg_products","150","161",[
			["Our Vision","http://www.viralgenetics.com/vision.html"],
			["Immune-Based Therapies","http://www.viralgenetics.com/immunebased.html"],
			["TNP","http://www.viralgenetics.com/tnp.html"],
			["University of Colorado<br>License","http://www.viralgenetics.com/colorado.html"]
		]],
		
		["r_and_d","311","172",[
			["VGV-1","http://www.viralgenetics.com/vgv1.html"],
			["History","http://www.viralgenetics.com/history_dev.html"],
			["Product Timeline","http://www.viralgenetics.com/timeline.html"],
			["Clinical Trials","http://www.viralgenetics.com/Ctrials.html"]
		]],
		["newsroom","485","132",[
			["Press Releases","http://www.viralgenetics.com/press.html"],
			["Media Kits","http://www.viralgenetics.com/mediakits.html"],
			["Media Inquiries","http://www.viralgenetics.com/media_inq.html"],
			["News Subscription","http://www.viralgenetics.com/newsSubscription.html"]
		]],
		["investors","571","157",[
			["Contacts","http://www.viralgenetics.com/inv_contacts.html"],
			["eMail Alerts","http://www.viralgenetics.com/newsSubscription.html"],
			//["Fact Sheet","http://www.viralgenetics.com/inv_fsheet.html"],
			["SEC Filings","http://www.viralgenetics.com/inv_sec.html"],
			["Glossary","http://www.viralgenetics.com/inv_glossary.html"],
			["Stock Quote","http://www.viralgenetics.com/inv_stock.html"]
		]]
	];
	









	
	
	
	
function mLover(id,div){ 
	if (document.images){
			if (bw.ns4 && div){	document.layers[div].document[id].src=eval(id+"_z.src");		} 
			else {			document[id].src=eval(id+"_z.src");		}
	}
}

function mLout(id,div){	
	if (document.images){
			if (bw.ns4 && div){	document.layers[div].document[id].src=eval(id+".src");		} 
			else {			document[id].src=eval(id+".src");		}
	}
}
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie = (this.ie4 || this.ie5 || this.ie6)?1:0; 
	this.pc=(navigator.appVersion.indexOf("Mac") == -1)
	this.iepc=(this.pc &&  (this.ie4 || this.ie5 || this.ie6)==1)
	this.ie4mac=((!this.pc) &&  (this.ie)==1)
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns5mac=((!this.pc) && (this.ns5)==1)
	this.iemac=((!this.pc) && (this.ie5)==1)
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

bw=new checkBrowser()	


function oMaker(div,nest){ 
	this.el=new Object();
  this.css=new Object();
  this.el=bw.dom?document.getElementById(div):bw.ie4?document.all[div]:bw.ns4?nest?document[nest].document[div]:document[div]:0;  
	this.css=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	return this;
}

function dshow(div,nest){	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	obj.visibility='visible';
}

function dhide(div,nest){	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	obj.visibility='hidden';
}
function fill(code,div,nest){	  this.el=bw.dom?document.getElementById(div):bw.ie4?document.all[div]:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
  	if (bw.ns4){		this.el.document.open(); this.el.document.write(code); this.el.document.close();	}
	  else{ this.el.innerHTML = code;}
}

document.olastMenu = "";
document.numberoftopimages = 5;
document.numberofsideimages = 6;
var pg = false;
function init(){
 document.junka = new oMaker('top_img');
 num = Math.round(Math.random()*document.numberoftopimages); num=(num==0)?1:num; 
 document.junka.el.src = 'img/top_img/'+num+'.jpg';
 document.junka = new oMaker('side_img');
 num = Math.round(Math.random()*document.numberofsideimages);num=(num==0)?1:num;
 document.junka.el.src = 'img/side_img/'+num+'.jpg';
 pg = new pginfo();
 
 
 
	 for (i=1;i<document.topNav.length;i++){
	 	trgt = new oMaker(document.topNav[i][0]);
		trgt.el.onmouseover = goMenu;
	 }
 
 
 
}

function goMenu(){
 w = this.id 
 placeMenu(w);
}


function fillMenu(w){
	if (w){
	 document.junka = new oMaker('menuArea');
	 activeMenu = null;
	 for (i=1;i<document.topNav.length;i++){
	 	if (document.topNav[i][0]==w){
			activeMenu = document.topNav[i];
		}
	 }
	 if (activeMenu!=null){
	 	wth=activeMenu[2];
	 	scw = wth-18;
		oMenu = activeMenu[3];
		if (oMenu.length>0){
			t="";
		 	for (j=0;j<oMenu.length;j++){
				t+='<a href="'+oMenu[j][1]+'" class="navlink" style=" display:block;width:'+wth+'px;    border-bottom:1px solid #99a3bb; text-decoration:none; cursor: hand; "><span style="line-height:15px; display:block;width:'+scw+'px;padding-left:18px;padding-top:3px;padding-bottom:3px;text-decoration:none;">'+oMenu[j][0]+'</span></a>';
			}
			fill(t,'menuArea');
		}
		
		document.junka.css.width=activeMenu[2]+"px";
		document.junka.css.width
		dshow('menuArea'); dshow('menuMask');
	// 

	 }
	}
}

function noMenu(){
dhide('menuArea');dhide('menuMask'); document.olastMenu="";
}

function placeMenu(w){
	if (w && (w!=document.olastMenu)){
		document.olastMenu=w;
		dhide('menuArea');dhide('menuArea');
	 document.junka = new oMaker('menuArea');
	 document.junkb = new oMaker('menuMask');
	 activeMenu = null;
	 for (i=1;i<document.topNav.length;i++){
	 	if (document.topNav[i][0]==w){
			activeMenu = document.topNav[i];
		}
	 }
	 if (activeMenu!=null){
	 	// set boundarys
		document.junka.css.width=activeMenu[2]+"px";
		 pg = new pginfo();
		n=pg.wid; 
		n= n/2;
		n=Math.floor(n);
		n=n-412; m = n;
		document.junkb.css.left=m+"px";
		n=n+10; n=n+(activeMenu[1]/1);
		document.junka.css.left=n+"px";
		// placement calc;
		fillMenu(w)
	 }
	}
}



function pginfo(){ 
	this.x=0; 	this.y=0;
	this.wid=(bw.ns4 || bw.ns5)?window.innerWidth:document.body.clientWidth;
	this.hei=(bw.ns4 || bw.ns5)?window.innerHeight:document.body.clientHeight;
	return this;
}		
