
function cabecera(){
	var d = document;
	d.writeln('<h1>Gonzalo Vazquez Vilar</h1><h2>MSc PhD in Electrical Engineering</h2>'); 
    d.writeln('<a class="a_sub" href="http://www.gonzalo-vazquez-vilar.eu" target=_top>www.gonzalo-vazquez-vilar.eu</a>'); 
} 

function menu(pos){
	var ele  = new Array;
	var titl = new Array;
	var link = new Array;
	var i = 0;
	var d = document; // para abreviar
	var total = 5;
	ele[ele.length]='home'; 		// 0
	ele[ele.length]='biography'; 	// 1
	ele[ele.length]='research';	    // 2
	ele[ele.length]='publications';	// 3
	ele[ele.length]='blog';	        // 4

	titl[titl.length]='www.gonzalo-vazquez-vilar.eu';   // 0
	titl[titl.length]='My biography';                   // 1
	titl[titl.length]='My research on Cognitive Radio'; // 2
	titl[titl.length]='List of my publications';        // 3
	titl[titl.length]='Cognitive Radio Blog';           // 4
	
	link[link.length]='index.htm';           // 0
	link[link.length]='biography.htm';       // 1
	link[link.length]='cognitive-radio.htm'; // 2
	link[link.length]='publications.htm';    // 3
	link[link.length]='http://spectralholes.blogspot.com';	// 4

d.writeln('	<ul>');
for(i = 0;i<=(pos-1);i++){
	d.writeln('<li><a href="'+link[i]+'" title="'+titl[i]+'">'+ele[i]+'</a></li>');
} // for
d.writeln('<li class="c1"><a href="'+link[pos]+'" title="'+titl[pos]+'" id="actual">'+ele[pos]+'</a></li>');
for(i = pos+1;i<total;i++){
	d.writeln('<li><a href="'+link[i]+'" title="'+titl[i]+'">'+ele[i]+'</a></li>');		
} // for
d.writeln('</ul>');
} // Generador de Menu

function lastmodified(){
	var d = document;
	d.writeln('Updated:<br/>  Feb 1<sup>st</sup>, 2012')
} // lastmodified

function pie(){
	var d = document;
	d.writeln('&copy; 2010-2012 Gonzalo Vazquez-Vilar')
} // pie

function cita(){
var quote=new Array()
quote[1]= '"The wireless channel is a complicated animal" <br/> A.Paulraj.'
quote[2]= '"Theory is the first term in the Taylor series expansion of practice", T.Cover.'
quote[3]= '"I do not think that the wireless waves I have discovered will have any practical application", H.R.Hertz.'
quote[4]= '"Research is to see what everybody else has seen, and to think what nobody else has thought", A.Szent-Gyorgyi.'
quote[5]= '"Somewhere, something incredible is waiting to be known", C.Sagan.'
quote[6]= '"Nothing is more practical than a good theory", K.Lewin.'
quote[7]= '"Mathematics possesses not only truth, but supreme beauty - a beauty cold and austere", B.Russell.'
quote[8]= '"Research is creating new knowledge", N.Armstrong.'
quote[9]= '"In theory there is no difference between theory and practice. In practice there is", Y.Berra.'
quote[10]='"To a man with a hammer everything looks like a nail",  A.Maslow.'
quote[11]='"Research is what I’m doing when I don’t know what I’m doing", W.von Braun.'
quote[12]='"A few months in the laboratory can save you a few hours in the library", Westheimer’s Law.'
quote[13]='"Differentiation Is a Technique, Approximation Is an Art", W.A.Sethares.' 
quote[14]='"Man&quot;s going forward from cocksure ignorance to thoughtful uncertainty", K.G.Johnson.' 
//quote[13]='"It is a capital mistake to theorise before one has data. Insensibly one begins to twist facts to suit theories instead of theories to suit facts.", S.Holmes.'
Nquotes = 14;

var d = document;
var today=new Date()
day = today.getDay();
d.write(quote[1+day%Nquotes])
}

