var id;


// -------------------- SHOW_MENU --------------------------------
 function show_menu(id)
 {
var index;
var cars;
var photoshop;
var pics;
var tv;
var links;

if(id == 'cars'){	cars = 'current';}
if(id == 'index'){	index = 'current';}
if(id == 'photoshop'){	photoshop = 'current';}
if(id == 'pics'){	pics = 'current';}
if(id == 'tv'){		tv = 'current';}
if(id == 'links'){	links = 'current';}

var menu = 
'      <ul>' +
'        <li id="' + index + '"><a href="http://www.finddoug.com/index.html"><span>About Me</span></a></li>' +
'        <li id="' + cars + '"><a href="http://www.finddoug.com/cars/index.html"><span>Cars</span></a></li>' +
'        <li id="' + photoshop + '"><a href="http://www.finddoug.com/photoshop/index.html"><span>Photoshop</span></a></li>' +
'        <li id="' + pics + '"><a href="http://www.finddoug.com/mypics/index.html"><span>Pics</span></a></li>' +
'        <li id="' + tv + '"><a href="http://www.finddoug.com/tv/index.html"><span>TV Stuff</span></a></li>' +
// '        <li id="' + links + '"><a href="http://www.finddoug.com/links/index.html"><span>Links</span></a></li>' +
'      </ul>';

 document.write(menu);
 }



// -------------------- SHOW_SIDEMENU --------------------------------

 function show_sidemenu(id)
 {

//INDEX SIDEMENU
if (id == 'index'){
var menu = '            <h3>About Me</h3>' +
'	 <ul class="sidemenu">' +
'        <li><a href="#background">Background</a></li>' +
'        <li><a href="#cars">Cars</a></li>' +
'        <li><a href="#photoshop">Photoshop</a></li>' +
// '        <li><a href="#pics">Pics</a></li>' +
'        <li><a href="#tv">Favorite Shows</a></li>' +
'      </ul>';
}

// CARS SIDEMENU
if (id == 'cars'){
var menu = '      <a href="http://www.finddoug.com/cars/index.html"><h3>Cars</h3></a>' +
'      <ul class="sidemenu">' +
'        <li><a href="http://www.finddoug.com/cars/05amg/index.html">05 CL65 AMG</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/054runner/index.html">05 4Runner</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/01lexus/index.html">01 Lexus LS430</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/05legacy/index.html">05 Legacy 2.5GT</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/07lexus/index.html">07 Lexus LS460</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/94supra/index.html">94 Supra Turbo</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/94stealth/index.html">94 Stealth TT</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/06azera/index.html">06 Azera Limited</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/index.html#05ls430">05 Lexus LS430</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/89supra/index.html">89 Supra</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/964runner/index.html">96 4Runner SC</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/index.html#grandmarquis">02 Mercury LSE</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/index.html#grandprix">95 Grand Prix GTP</a></li>' +
'      </ul>' +
'	<a href="#others"><h3>Others I like</h3></a>' +
'      <ul class="sidemenu">' +
'        <li><a href="http://www.finddoug.com/cars/genisis/index.html">Genesis</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/astinmartin/index.html">Aston Martin</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/wald/LS460/index.html">Wald LS460</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/wald/LS430/index.html">Wald LS430</a></li>' +
'        <li>...there will be more</li>' +
'      </ul>' +
'	<a href="#concepts"><h3>Concepts</h3></a>' +
'      <ul class="sidemenu">' +
'        <li><a href="http://www.finddoug.com/cars/c-genesiscoupe/index.html">Genesis Coupe</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/c-lexuslfa/index.html">Lexus LFA</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/c-volta/index.html">Volta</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/c-camaro/index.html">Camaro</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/c-challenger/index.html">Challenger</a></li>' +
'        <li><a href="http://www.finddoug.com/cars/c-tundra/index.html">Tundra</a></li>' +
'        <li>...there will be more</li>' +
'      </ul>';
}

if (id == 'photoshop'){
var menu = '      <a href="#background"><h3>Photoshop</h3><img src="./photoshop.jpg" class="img2"></a>' +
'		  <a href="#picsforfriends"><h3>For Friends</h3><img src="./forfriends.jpg" class="img2"></a>' +
'		  <a href="#restoration"><h3>Restoration</h3><img src="./restoration.jpg" class="img2"></a>';
}

if (id == 'pics'){
var menu = '';
}

if (id == 'tv'){
var menu = '            <a href="#shows"><h3>Favorites</h3></a>' +
'	 <ul class="sidemenu">' +
'        <li><a href="#familyguy">Family Guy</a></li>' +
'        <li><a href="#futurama">Futurama</a></li>' +
'        <li><a href="#friends">Friends</a></li>' +
'        <li><a href="#greys">Grey\'s Anatomy</a></li>' +
'        <li><a href="#heroes">Heroes</a></li>' +
'        <li><a href="#earl">My Name is Earl</a></li>' +
'        <li><a href="#frasier">Frasier</a></li>' +
'        <li><a href="#bigbang">Big Bang Theory</a></li>' +
'        <li><a href="#2halfmen">Two and a Half Men</a></li>' +
'        <li><a href="#house">House</a></li>' +
'      </ul>' +
'            <a href="#others"><h3>Others</h3></a>' +
'	 <ul class="sidemenu">' +
'        <li><a href="#southpark">South Park</a></li>' +
'        <li><a href="#scrubs">Scrubs</a></li>' +
'        <li><a href="#kingofthehill">King of the Hill</a></li>' +
'        <li><a href="#critic">The Critic</a></li>' +
'        <li><a href="#coupling">Coupling</a></li>' +
'        <li><a href="#titus">Titus</a></li>' +
'        <li><a href="#sonbeach">Son of the Beach</a></li>' +
'        <li><a href="#oddparents">Fairly Odd Parents</a></li>' +
'      </ul>';
}


 document.write(menu);
 }


// -------------------- RANDOM SIDE PIC----------------------------
function show_sidepic (id) 
{
if (
id == ('index') || 
id == ('cars') || 
id == ('photoshop') || 
id == ('tv') || 
id == ('pics')

){
	images = new Array('/images/brokenpic.gif',
	'/images/mona-ani.gif',
	'/images/cartman_retard.gif',
	'/images/brain1.gif',
	'/images/fight.gif',
	'/images/headbanging.gif',
	'/images/horsegas1.gif',
	'/images/moon_eclipse.gif',
	'/images/napoleon_dynamite.gif',
	'/images/peterhurthisknee.gif',
	'/images/peter-shirtrip.gif',
	'/images/peters-playhouse.gif',
	'/images/quagmire-alright.gif',
	'/images/diamond.gif',
	'/images/soundwave.gif',
	'/images/stewie-tongue.gif',
	'/images/stewie-dance2.gif',
	'/images/stewie-dance.gif',
	'/images/stewie-duh.gif',
	'/images/stewie-robot.gif',
	'/images/stewie-sexy-party.gif',
	'/images/strong_bad.gif',
	'/images/ledgeek.gif'

	)


	index = Math.floor(Math.random() * images.length);
}

// write it out
document.write('random...<a onclick="refresh(\'refreshpic\')">click</a> for another<br><center><img src="'+images[index]+'" name="refreshpic" onclick="refresh(\'refreshpic\')"></center>');
}

function refresh (id) 
{
if (
id == ('refreshpic')

){
	images = new Array('/images/brokenpic.gif',
	'/images/mona-ani.gif',
	'/images/cartman_retard.gif',
	'/images/brain1.gif',
	'/images/fight.gif',
	'/images/headbanging.gif',
	'/images/horsegas1.gif',
	'/images/moon_eclipse.gif',
	'/images/napoleon_dynamite.gif',
	'/images/peterhurthisknee.gif',
	'/images/peter-shirtrip.gif',
	'/images/peters-playhouse.gif',
	'/images/quagmire-alright.gif',
	'/images/diamond.gif',
	'/images/soundwave.gif',
	'/images/stewie-tongue.gif',
	'/images/stewie-dance2.gif',
	'/images/stewie-dance.gif',
	'/images/stewie-duh.gif',
	'/images/stewie-robot.gif',
	'/images/stewie-sexy-party.gif',
	'/images/strong_bad.gif',
	'/images/ledgeek.gif'

	)


	index = Math.floor(Math.random() * images.length);

	document.images["refreshpic"].src = images[index];
}

if (
id == ('wisewords')

){

	images = new Array('/images/retards.jpg',
	'/images/ambition.jpg',
	'/images/cluelessness.jpg',
	'/images/mistakes.jpg',
	'/images/incompetence.jpg',
	'/images/idiocy.jpg',
	'/images/meetings.jpg',
	'/images/motivation.jpg',
	'/images/potential.jpg'	)

	index = Math.floor(Math.random() * images.length);

	document.images["wisewords"].src = images[index];
}



}

// -------------------- SHOW_LINKS --------------------------------

function show_links(id)
 {
if (
id == ('index') || 
id == ('cars') || 
id == ('photoshop') || 
id == ('tv') || 
id == ('pics')

){
var menu = '      <h3>Links</h3>' + 
'      <ul class="sidemenu">' + 
'        <li><a href="http://www.moojohn.com/">IT Systems <br />' + 
'          <span>Computers - Networking - Servers - Consulting</span></a></li>' + 
'        <li><a href="http://www.myspace.com/bluegsx">MySpace<br />' + 
'          <span>My MySpace page</span></a></li>' + 
'        <li><a href="http://www.facebook.com/profile.php?id=39802867">Facebook <br />' + 
'          <span>My Facebook page</span></a></li>' + 
'        <li><a href="http://www.gcsu.edu/">GC&SU<br />' + 
'          <span>Georgia College & State University</span></a></li>' + 
// '        <li><a href="http://www.finddoug.com/links.html">...more <br />' + 
// '          <span>More links and resources</span></a></li>' + 
'      </ul>';
}

 document.write(menu);

 }


// -------------------- SHOW_WISE_WORDS --------------------------------

function show_wise_words(id)
 {
if (
id == ('index') || 
id == ('cars') || 
id == ('photoshop') || 
id == ('tv') || 
id == ('pics')

){
	images = new Array('/images/retards.jpg',
	'/images/ambition.jpg',
	'/images/cluelessness.jpg',
	'/images/mistakes.jpg',
	'/images/incompetence.jpg',
	'/images/idiocy.jpg',
	'/images/meetings.jpg',
	'/images/motivation.jpg',
	'/images/potential.jpg'	)


	index = Math.floor(Math.random() * images.length);
}

// write it out
var menu = '<br>      <h3>Inspiration</h3><a onclick="refresh(\'wisewords\')">click</a> for another<br>';
document.write(menu + '<img src="'+images[index]+'" name="wisewords" onclick="refresh(\'wisewords\')"></p>');

 }



// -------------------- SHOW_FOOTER --------------------------------

function show_email(id)
 {
var menu = '<a href="mailto:doug@finddoug.com">Doug</a>';

 document.write(menu);
 }



// -------------------- SHOW_FOOTER --------------------------------

function show_footer(id)
 {
var menu = '2008 &nbsp; Design by: doug &nbsp; Valid: <a href="http://validator.w3.org/check/referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>';

 document.write(menu);
 }

// -------------------- SHOW_FOOTER_RIGHT --------------------------------

function show_footer_right(id)
 {
var menu = '<a href="http://www.finddoug.com/">Home</a> | <a href="#">Back to top</a> ';

 document.write(menu);
 }

