// Code to select CSS file, depending on browser
function browserSniffer() {

    if ((navigator.appName).indexOf("Microsoft") != -1) {
        // For IE, extract version
        var ua = navigator.userAgent;
        var ie_offset = ua.indexOf("MSIE ");
        var version = parseFloat(ua.substring(ie_offset + 5, ua.indexOf(";", ie_offset)));
        switch (version) {
            case 6:
                document.write('<link rel="stylesheet" href="master_stylesIE6.css" type="text/css"/>');
                break;
            case 7:
                document.write('<link rel="stylesheet" href="master_stylesIE.css" type="text/css"/>');
                break;
            case 8:
                document.write('<link rel="stylesheet" href="master_styles.css" type="text/css"/>');
                break;
        }

        // For non-IE:
    } else {
        document.write('<link rel="stylesheet" href="master_styles.css" type="text/css"/>');
    }
}


function renderCssFile(){
	
	// Code to randomly select main image CSS file/image
	// 1) Generate random number; upper limit = 12:
	var intRandomNumber = Math.floor(Math.random() * 12) +1;
	var strCssFile = "alt_pg_schemes/" + intRandomNumber + ".css";
	// 2) Generate link to external CSS file 
	var myCssFile ="<link href='" + strCssFile + "' rel='stylesheet' type='text/css'/>";
	document.write(myCssFile);
}

function imagePreloader(){
	mymage1 = new Image(183,76)
	mymage1.src = "images/flex_mouse.jpg"
}

function reportImagePreloader(){
	mymage1 = new Image(750,984)
	mymage1.src = "images/reports/rpt1.jpg"
	mymage2 = new Image(750,984)
	mymage2.src = "images/reports/rpt2.jpg"
	mymage3 = new Image(750,984)
	mymage3.src = "images/reports/rpt3.jpg"
	mymage4 = new Image(750,984)
	mymage4.src = "images/reports/rpt4.jpg"
	mymage5 = new Image(750,984)
	mymage5.src = "images/reports/rpt5.jpg"
	mymage6 = new Image(750,984)
	mymage6.src = "images/reports/rpt6.jpg"
}

// Code to render date
function myDateString(dateValues){
	strMonthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
	strDayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];

 	var intMyDay = strDayNames[dateValues.getDay()];
 	var intMyMonth = strMonthNames[dateValues.getMonth()];
 	var intMyYear = dateValues.getFullYear();
 	return intMyDay + " " + intMyMonth + " " + dateValues.getDate() + ", " + intMyYear;
}


// Script to show "Terms" container on mouseover:

function displayTerms()
 { 
	document.getElementById("terms_div").style.display = "block";
 }
function hideTerms()
 {
	 document.getElementById("terms_div").style.display = "none";
 }
 
// Script to show Demos PopUp container on click:
function fnOpenPopUp(){
	document.getElementById("info").style.display="block";
}
	
function fnClosePopUp(){
	document.getElementById("info").style.display="none";
}

 
// Script to show Old Tips on click:

function fnViewTip(TipNum){
	document.getElementById("tip" + TipNum).style.display="block";
}
function fnHideTip(TipNum){
	document.getElementById("tip" + TipNum).style.display="none";
}

function gup(name){  
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  
    var regexS = "[\\?&]"+name+"=([^&#]*)";  
    var regex = new RegExp(regexS);  
    var results = regex.exec(window.location.href);  
    if (results == null)    
        return "";  
    else    
        return results[1];
}

function renderQuote(){

// Listing of quotes:  Serves as the "data" for the Javascript Switch below.

// Line breaks have been included in the quote "var" script to facilitate editing.

// Explanatory comments are included for Quote 1 (only).  These are typical of all entries below.

//QUOTE 1
// Formatting for the "quote_container p" tag is in the"master_styles.css" file.
//The inline <style> element in the following line overrides the top margin for this element to locally adjust the vertical position to compensate for varying numbers of lines in the quote.
	var strQuote1 = "<style type='text/css'>.quote_container p{margin-top:" +
	
// Value for the top margin:  Change numerals to adjust the margin up or down depending on the length of the quote (DO NOT CHANGE "px")		
	"18px" + 
	
// This line creates the "quote_container p" tag to allow the style element above to format the quote text.
	"}</style><p class ='quote_container p'>" + 
	
// Quote text:  Can edit BETWEEN &ldquo; and rdquo; 	
	"&ldquo; You can observe a lot just by watching.&rdquo;" +
	
// Quote author:  Can edit BETWEEN the <span> tags.  (The <span> tag formatting is in the"master_styles.css" file) 
	"<span>~Yogi Berra</span></p>";

//QUOTE 2
	var strQuote2 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"18px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Baseball is 90% mental<br /> -- the other half is physical.&rdquo;" +

	"<span>~Yogi Berra</span></p>";

//QUOTE 3
	var strQuote3 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;If you don't know where you are going, you will wind up somewhere else.&rdquo;" +

	"<span>~Yogi Berra</span></p>";

//QUOTE 4
	var strQuote4 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"18px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;If you come to a fork in the road, take it.&rdquo;" +

	"<span>~Yogi Berra</span></p>";

//QUOTE 5
	var strQuote5 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"18px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&emsp;&ldquo;You're my boy, Blue!&rdquo;" +

	"<span>~ Frank the Tank</span></p>";

//QUOTE 6
	var strQuote6 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"2px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.&rdquo;" +

	"<span>~Dr. Seuss</span></p>";

//QUOTE 7
	var strQuote7 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Sometimes the questions are complicated and the answers are simple.&rdquo;" +

	"<span>~Dr. Seuss</span></p>";

//QUOTE 8
	var strQuote8 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;If this is coffee, please bring me some tea; but if this is tea, please bring me some coffee.&rdquo;" +

	"<span>~Abraham Lincoln</span></p>";

//QUOTE 9
	var strQuote9 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Reality is merely an illusion, albeit a very persistent one.&rdquo;" +

	"<span>~Albert Einstein</span></p>";

//QUOTE 10
	var strQuote10 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Always do right. This will gratify some people and astonish the rest.&rdquo;" +

	"<span>~Mark Twain</span></p>";

//QUOTE 11
	var strQuote11 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;I have been through some terrible things in my life, some of which actually happened.&rdquo;" +

	"<span>~Mark Twain</span></p>";

//QUOTE 12
	var strQuote12 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	";}</style><p class ='quote_container p'>" + 
	
	"&ldquo;I am opposed to millionaires, but it would be dangerous to offer me the position.&rdquo;"  +

	"<span>~Mark Twain</span></p>";

//QUOTE 13
	var strQuote13 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Even if you're on the right track, you'll get run over if you just sit there.&rdquo;" +

	"<span>~Will Rogers</span></p>";

//QUOTE 14
	var strQuote14 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Live in such a way that you would not be ashamed to sell your parrot to the town &rdquo;" +

	"<span>~Will Rogers</span></p>";

//QUOTE 15
	var strQuote15 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;We are all here for a spell; get all the good laughs you can.&rdquo;" +

	"<span>~Will Rogers</span></p>";

//QUOTE 16
	var strQuote16 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;An investment in knowledge always pays the best interest.&rdquo;" +

	"<span>~Ben Franklin</span></p>";
	
//QUOTE 17
	var strQuote17 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"18px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Drive thy business or it will drive thee.&rdquo;" +

	"<span>~Ben Franklin</span></p>";
	
//QUOTE 18
	var strQuote18 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"20px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Begin with the end in mind.&rdquo;" +

	"<span>~Stephen Covey</span></p>";

//QUOTE 19
	var strQuote19 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;The best way to predict your future is to create it.&rdquo;" +

	"<span>~Stephen Covey</span></p>";

//QUOTE 20
	var strQuote20 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"18px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;It's kind of fun to do the impossible.&rdquo;" +

	"<span>~Walt Disney</span></p>";

//QUOTE 21
	var strQuote21 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;In the book of life's questions, the answers are not in the back.&rdquo;" +

	"<span>~Charles Schultz</span></p>";

//QUOTE 22
	var strQuote22 = "<style type='text/css'>.quote_container p{margin-top: -5px;}</style>" + 
	"<p class ='quote_container p'>" +
	"&ldquo;To be is to do.&rdquo;" + 
	"<span>~Socrates</span></p>" +
	"<div class='specquote'>" +
	"<p>&ldquo;To do is to be.&rdquo;" + 
	"<span>~Jean-Paul Sartre</span></p>" +
	"<p class='specquote2'>&ldquo;Do be do be do.&rdquo;" + 
	"<span>~Frank Sinatra</span></p></div>";


//QUOTE 23
	var strQuote23 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"-1px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;The brain is a wonderful organ. It starts working the moment you get up in the morning and does not stop until you get into the office.&rdquo;" +

	"<span>~Robert Frost</span></p>";

//QUOTE 24
	var strQuote24 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;He can compress the most words into the smallest ideas of any man I ever met.&rdquo;" +

	"<span>~Abraham Lincoln</span></p>";

//QUOTE 25
	var strQuote25 = "<style type='text/css'>.quote_container p{margin-top: 12px;" + 
	
	"margin-left: 15px;}" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Whatever you are,<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;be a good one.&rdquo;" +

	"<span>~Abraham Lincoln</span></p>";


//QUOTE 26
	var strQuote26 = "<style type='text/css'>.quote_container p{margin-top: 12px;" + 
	
	"margin-left: 15px;}" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Winning Takes Care of <br /> &nbsp;&nbsp; Everything.&rdquo;" +

	"<span>~Tiger Woods</span></p>";


//QUOTE 27
	var strQuote27 = "<style type='text/css'>.quote_container p{margin-top: 12px;" + 
	
	"margin-left: 35px;}" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Do or do not...  <br /> &nbsp;&nbsp; there is no try &rdquo;" +

	"<span>~Yoda</span></p>";

//QUOTE 28
	var strQuote28 = "<style type='text/css'>.quote_container p{margin-top: 12px;" + 
	
	"margin-left: 15px;}" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Named must your fear be  <br /> &nbsp; before banish it you can &rdquo;" +

	"<span>~Yoda</span></p>";


//QUOTE 29
	var strQuote29 = "<style type='text/css'>.quote_container p{margin-top: 12px;" + 
	
	"margin-left: 13px;}" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	" <em>[Luke]:</em>&nbsp; &ldquo;I can’t believe it.&rdquo;<br /> <br /> <em>[Yoda]:</em>&nbsp;  &ldquo;That is why you fail.&rdquo;</p>";

//QUOTE 30
	var strQuote30 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;We are all manufacturers – making good, making trouble or making excuses.&rdquo;" +

	"<span>~H. V. Adolt</span></p>";
	

//QUOTE 31
	var strQuote31 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"12px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Few people do business well who do nothing else.&rdquo;" +

	"<span>~Lord Chesterfield</span></p>";
	
//QUOTE 32
	var strQuote32 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;The business of America is business.&rdquo;" +

	"<span>~Calvin Cooledge</span></p>";
	
//QUOTE 33
	var strQuote33 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;My greatest strength as a consultant is to be ignorant and ask a few questions.&rdquo;" +

	"<span>~Peter Drucker</span></p>";
	
//QUOTE 34
	var strQuote34 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"0px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Anyone who says businessmen deal only in facts, not fiction, has never read old five-year projections.&rdquo;" +

	"<span>~Malcolm Forbes</span></p>";
	
//QUOTE 35
	var strQuote35 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;The meek shall inherit the earth, but not the mineral rights.&rdquo;" +

	"<span>~J. Paul Getty</span></p>";
	
//QUOTE 36
	var strQuote36 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"0px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;What is a committee? <br />A group of the unwilling, picked from the unfit, to do the unnecessary.&rdquo;" +

	"<span>~Richard Harkness</span></p>";
	
//QUOTE 37
	var strQuote37 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"5px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;I do not believe you can do today’s job with yesterday’s methods and be in business tomorrow.&rdquo;" +

	"<span>~Nelson Jackson</span></p>";
	
//QUOTE 38
	var strQuote38 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"0px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Business is like a man rowing a boat upstream. <br />He has no choice; he must go ahead or he will go back.&rdquo;" +

	"<span>~Lewis E. Pierson</span></p>";
	
//QUOTE 39
	var strQuote39 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;You never get a second chance to make a good first impression.&rdquo;" +

	"<span>~Will Rogers</span></p>";
	
//QUOTE 40
	var strQuote40 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;A businessman is a hybrid between a dancer and a calculator.&rdquo;" +

	"<span>~Paul Valery</span></p>";
	
//QUOTE 41
	var strQuote41 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;A jack-of-all-trades is king of none.&rdquo;" +

	"<span>~P. K. Thomajan</span></p>";
	
//QUOTE 42
	var strQuote42 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"-10px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;If your business keeps you so busy that you have no time for anything else, there must be something wrong, either with you or with your business.&rdquo;" +

	"<style type='text/css'>.quote_container span{width:" +
	"100px" + 
	"}</style>" + "<span class ='quote_container span'>~William J. H. Boetcker</span></p>";

	
//QUOTE 43
	var strQuote43 = "<style type='text/css'>.quote_container p{margin-top:" +
	
	"15px" + 
	
	"}</style><p class ='quote_container p'>" + 
	
	"&ldquo;Vision without execution is hallucination.&rdquo;</p>" +

	"<div class ='eleanor'>~Eleanor Roosevelt</div>";

// Code to randomly select a quote
// 1) Generate random number; upper limit = 42.  UPPER LIMIT MUST EQUAL THE LARGEST QUOTE NUMBER
var intQuoteRandomNumber = Math.floor(Math.random() * 43) +1;
// var intQuoteRandomNumber = 43;

// 2} Render Quote in Home Page. THE LAST CASE LABEL (NUMBER) MUST EQUAL THE LARGEST QUOTE NUMBER
 switch (intQuoteRandomNumber){
	 	case 1:
			document.write(strQuote1); 
	 		break;
 		case 2:
			document.write(strQuote2); 
	 		break; 
	 	case 3:
			document.write(strQuote3); 
	 		break;
 		case 4:
			document.write(strQuote4); 
	 		break; 
	 	case 5:
			document.write(strQuote5); 
	 		break;
 		case 6:
			document.write(strQuote6); 
	 		break; 
	 	case 7:
			document.write(strQuote7); 
	 		break;
 		case 8:
			document.write(strQuote8); 
	 		break;
 		case 9:
			document.write(strQuote9); 
	 		break;
 		case 10:
			document.write(strQuote10); 
	 		break; 
	 	case 11:
			document.write(strQuote11); 
	 		break;
 		case 12:
			document.write(strQuote12); 
	 		break;
	 	case 13:
			document.write(strQuote13); 
	 		break;
 		case 14:
			document.write(strQuote14); 
	 		break;
 		case 15:
			document.write(strQuote15); 
	 		break;	
 		case 16:
			document.write(strQuote16); 
	 		break;
 		case 17:
			document.write(strQuote17); 
	 		break; 
	 	case 18:
			document.write(strQuote18); 
	 		break;
 		case 19:
			document.write(strQuote19); 
	 		break;
	 	case 20:
			document.write(strQuote20); 
	 		break;
 		case 21:
			document.write(strQuote21); 
	 		break;
 		case 22:
			document.write(strQuote22); 
	 		break;						
 		case 23:
			document.write(strQuote23); 
	 		break;
	 	case 24:
			document.write(strQuote24); 
	 		break;
 		case 25:
			document.write(strQuote25); 
	 		break;
		 case 26:
			document.write(strQuote26); 
	 		break;
		case 27:
			document.write(strQuote27); 
	 		break;
		case 28:
			document.write(strQuote28); 
	 		break;
		case 29:
			document.write(strQuote29); 
	 		break;
	 	case 30:
			document.write(strQuote30); 
	 		break;
 		case 31:
			document.write(strQuote31); 
	 		break; 
	 	case 32:
			document.write(strQuote32); 
	 		break;
 		case 33:
			document.write(strQuote33); 
	 		break; 
	 	case 34:
			document.write(strQuote34); 
	 		break;
 		case 35:
			document.write(strQuote35); 
	 		break; 
	 	case 36:
			document.write(strQuote36); 
	 		break;
 		case 37:
			document.write(strQuote37); 
	 		break;
 		case 38:
			document.write(strQuote38); 
	 		break;
 		case 39:
			document.write(strQuote39); 
	 		break; 
	 	case 40:
			document.write(strQuote40); 
	 		break;
 		case 41:
			document.write(strQuote41); 
	 		break;
	 	case 42:
			document.write(strQuote42); 
	 		break;
		case 43:
			document.write(strQuote43); 
	 		break;		
	}	
}