﻿	
		

	function tagLine()
	{
		var tagText = 'You cannot save an haemorrhaging patient by phlebotomy'

		return tagText
	}	
	function swapButton(btnName,swapCode)
	{
		// swapCode 1 = normal, 2= hover, 3, down, 4 up,5 click
		
		var fileName= 'http://jacobklamer.com/images/buttons/button'
		var fileNo = ""
		var fileType = '.gif'
		var optNo = "0"
		
		
				
		switch(btnName)
		{
			case 'btn_home':
				switch(swapCode)
				{
					case '1':
						fileNo='61'
						break;
					case '2':
						fileNo='62'
						break;
					case '3':
						fileNo='63'
						break;
					default:
						fileNo='61'	
				}
				fileName = fileName + fileNo + fileType
				document.btn_home.src = fileName
				// document.btn_home.title="CAN YOU SEE THIS?" can be used to override thr code on the button
				break;

			case 'btn_blog':
				
				optNo = document.forms.Nav.BlogList.value
							
				switch(swapCode)
				{
					
					case '1':
						fileNo='67'
						break;
					case '2':
						fileNo='68'
						break;
					case '3':
						fileNo='69'
						break;
					case '4':
						fileNo='67'
						break;
					default:
						fileNo='67'
				}
				fileName = fileName + fileNo + fileType
				document.btn_blog.src = fileName
				document.btn_blog.title = 'Blog section: Click to open blog home or select a category below'
				break;
			
			case 'btn_books':
				switch(swapCode)
				{
					case '1':
						fileNo='6E'
						break;
					case '2':
						fileNo='6F'
						break;
					case '3':
						fileNo='70'
						break;
					default:
						fileNo='6E'
				}
				fileName = fileName + fileNo + fileType
				document.btn_books.src = fileName
				document.btn_books.title = 'Recommended Reading: Click to open alphabetical index or select a category below'
				break;
				
			case 'btn_ops':
				switch(swapCode)
				{
					case '1':
						fileNo='86'
						break;
					case '2':
						fileNo='87'
						break;
					case '3':
						fileNo='88'
						break;
					default:
						fileNo='86'
				}
				fileName = fileName + fileNo + fileType
				document.btn_ops.src = fileName
				document.btn_ops.title = 'Opinions from around the world (under construction)'
				break;
				
			case 'btn_pics':
				switch(swapCode)
				{
					case '1':
						fileNo='7A'
						break;
					case '2':
						fileNo='7B'
						break;
					case '3':
						fileNo='7C'
						break;
					default:
						fileNo='7A'
				}
				fileName = fileName + fileNo + fileType
				document.btn_pics.src = fileName
				break;
				
			case 'btn_vids':
				switch(swapCode)
				{
					case '1':
						fileNo='7D'
						break;
					case '2':
						fileNo='7E'
						break;
					case '3':
						fileNo='7F'
						break;
					default:
						fileNo='7D'
				}
				fileName = fileName + fileNo + fileType
				document.btn_vids.src = fileName
				document.btn_vids.title = 'Click to open alphabetical index or select category below'
				break;
				
			case 'btn_about':
				switch(swapCode)
				{
					case '1':
						fileNo='83'
						break;
					case '2':
						fileNo='84'
						break;
					case '3':
						fileNo='85'
						break;
					default:
						fileNo='83'
				}
				fileName = fileName + fileNo + fileType
				document.btn_about.src = fileName
				break;
				
			case 'btn_abort':
				switch(swapCode)
				{
					case '1':
						fileNo='17'
						break;
					case '2':
						fileNo='18'
						break;
					case '3':
						fileNo='19'
						break;
					default:
						fileNo='17'
				}
				fileName = fileName + fileNo + fileType
				document.btn_abort.src = fileName
				break;				

			case 'btn_proceed':
				switch(swapCode)
				{
					case '1':
						fileNo='14'
						break;
					case '2':
						fileNo='15'
						break;
					case '3':
						fileNo='16'
						break;
					default:
						fileNo='14'
				}
				fileName = fileName + fileNo + fileType
				document.btn_proceed.src = fileName
				break;		
			
			case 'btn_prev':
				switch(swapCode)
				{
					case '1':
						fileNo='5'
						break;
					case '2':
						fileNo='6'
						break;
					case '3':
						fileNo='7'
						break;
					default:
						fileNo='5'
				}
				fileName = fileName + fileNo + fileType
				document.btn_prev.src = fileName
				break;		
			
			case 'btn_next':
				switch(swapCode)
				{
					case '1':
						fileNo='B'
						break;
					case '2':
						fileNo='C'
						break;
					case '3':
						fileNo='D'
						break;
					default:
						fileNo='B'
				}
				fileName = fileName + fileNo + fileType
				document.btn_next.src = fileName
				break;		

			case 'btn_first':
				switch(swapCode)
				{
					case '1':
						fileNo='2'
						break;
					case '2':
						fileNo='3'
						break;
					case '3':
						fileNo='4'
						break;
					default:
						fileNo='2'
				}
				fileName = fileName + fileNo + fileType
				document.btn_first.src = fileName
				break;		

			case 'btn_last':
				switch(swapCode)
				{
					case '1':
						fileNo='8'
						break;
					case '2':
						fileNo='9'
						break;
					case '3':
						fileNo='A'
						break;
					default:
						fileNo='8'
				}
				fileName = fileName + fileNo + fileType
				document.btn_last.src = fileName
				break;		



		}
	}
	
	function menu_goto(menuform,dropDown)
	{

	  	
	    var baseurl = "http://jacobklamer.com/" ;
	    
	    switch(dropDown)
	    {
	    	case "BlogList":
	    	
			    selecteditem = menuform.BlogList.selectedIndex ;
			    BlogList = menuform.BlogList.options[ selecteditem ].value ;
			    if (BlogList.length != 0) 
			    {
			      	location.href = baseurl + BlogList ;
			    }
			    break;
	    	
	    	case "BookList":
	    	
			    selecteditem = menuform.BookList.selectedIndex ;
			    BookList = menuform.BookList.options[ selecteditem ].value ;
			    if (BookList.length != 0) 
			    {
			      	location.href = baseurl + BookList ;
			    }
			    break;
	    	
	    	case "OpsList":
	    	
			    selecteditem = menuform.OpsList.selectedIndex ;
			    OpsList = menuform.OpsList.options[ selecteditem ].value ;
			    if (OpsList.length != 0) 
			    {
			      	location.href = baseurl + OpsList ;
			    }
			    break;
	    	
	    	
	    	case "VidList":
	    	
			    selecteditem = menuform.VidList.selectedIndex ;
			    VidList = menuform.VidList.options[ selecteditem ].value ;
			    if (VidList.length != 0) 
			    {
			      	location.href = baseurl + VidList ;
			    }
			    break;
	    	
	    	case "AbtList":
	    	
			    selecteditem = menuform.AbtList.selectedIndex ;
			    AbtList = menuform.AbtList.options[ selecteditem ].value ;
			    if (AbtList.length != 0) 
			    {
			      	location.href = baseurl + AbtList ;
			    }
			    break;
	    
	    
	    
	    
	    }
	}
	
	function randomNum(minNum,maxNum,isInt)
	{
		var rndNum
		if (isInt == 1)
		{
			rndNum = minNum + Math.floor(Math.random()*(maxNum-minNum + 1))
		}
		else
		{
			rndNum = Math.random() * (maxNum - minNum) + minNum
		}
		return rndNum
	}
	
	function randomTagLine()
	{
		//var lastNum = 30
		var lastNum 
		var txtLine = new Array()
		var idxNum
		
		txtLine[1] = 'In God we trust, all others please pay cash.'
		txtLine[2] = 'You cannot save an haemorrhaging patient by phlebotomy.'
		txtLine[3] = 'Why do we drive on parkways and park on driveways?'
		txtLine[4] = 'If we are not suppose to eat animals, why are they made of meat?'
		txtLine[5] = 'Why is "abbriviation" such a long word?'
		txtLine[6] = 'Why do we let semi drivers drive such big trucks?'
		txtLine[7] = 'Who does an atheist woman call when she has an orgasm?'
		txtLine[8] = 'Who was the idiot that programed "Keyboard not attached, press any key to continue"?'
		txtLine[9] = 'If flying is so safe, why do we call an airpot "terminal"?'
		txtLine[10] = 'If man is better than animals why do we not eat people?'
		txtLine[11] = 'If "con" is the opposite of "pro", what is the opposite of "progress"?'
		txtLine[12] = 'Why do stir our coffe with teaspoons?'
		txtLine[13] = 'If cricising the majority is human right, why criticising a minority is racism?'
		txtLine[14] = 'If olive oil is made of olives and soya oil is made of soya, what is baby oil made of?'
		txtLine[15] = 'Why Noah did not swat those two mosquitos?'
		txtLine[16] = 'Once upon a time I knew a beatiful girl but once upon a girl I knew a marvelous time.'
		txtLine[17] = 'Why god has given peanuts to people without teeth?'
		txtLine[18] = 'I took an IQ test and the results came back negative.'
		txtLine[19] = 'Do not lead me into temptation, I can find the way on my own.'
		txtLine[20] = 'Kids in the back seat cause accidents, accidents in the back seat do cause kids.'
		txtLine[21] = 'Politicians are like nappies, both have to be changed often and for the same reason.'
		txtLine[22] = 'You may play with my dog but leave my pussy alone.'
		txtLine[23] = 'Life is a sexually transmitted disease.'
		txtLine[24] = 'Do not take life so seriously, you will not get out of it alive anyhow.'
		txtLine[25] = 'Do not dispair, it is not the end of the world, it is already tomorrow here.'
		txtLine[26] = 'The trouble with the human gean pool is that there is no life guard.'
		txtLine[27] = 'Income Tax: We have what it takes to take what you have.'
		txtLine[28] = 'Money talks, mine can only say "goodbye".'
		txtLine[29] = 'Did you hear about the clairvoyants conference that was cancelled for unforeseen circumstances?'
		txtLine[30] = 'Be nice to your children because they will get to chose your nursing home.'
		txtLine[31] = '- Have we met before? - Sure, I was your nurse at the sex clinic.'
		txtLine[32] = "Why do we spend money we don't have on items that we don't need to impress people that we don't like?"	
		txtLine[33] = "A successful man is one who can earn more money than his wife can spend,<br />a successful woman is one who can find such a man."
		txtLine[34] = "Politics is the show business for ugly people."
		txtLine[35] = 'Describing a problem as "a challenge" does not solve it.'
		txtLine[36] = "If liberals were half as smart as they think they are, they would be ... conservatives."
		txtLine[37] = "The problem with socialism is that you eventually run out of other people's money."
		txtLine[38] = "A government which big enough to give you everything you want is big enough to take everything you have"
		
		
		lastNum = txtLine.length - 1
		
		idxNum = randomNum(1, lastNum,1)
		
		return txtLine[idxNum]
		
	}

