﻿var fontSizeValues = ['xx-small','x-small','small','medium','large','x-large','xx-large'];

function decreaseText() {
	return changeTextSize('-');
};

function increaseText() {
	return changeTextSize('+');
};


function changeTextSize(adjustment){
	var fontSize=''; 
	var fontSizeIndex; 
	var newFontSize=''; 
	var strCSS = 'cssRules';

	if(document.all) {
		// IE
		strCSS = 'rules';
	}
	
	var css_style_count =document.styleSheets[0][strCSS].length;
	var n_css_style_count =0;

	for (n_css_style_count=0;
		n_css_style_count<css_style_count;
		n_css_style_count++){

		fontSize = document.styleSheets[0][strCSS][n_css_style_count].style['fontSize'];

		if(fontSize!=''){
			fontSizeIndex= fontSizeValues.indexOf(fontSize);
		
			if (adjustment=='+'){
				if (fontSizeIndex<fontSizeValues.length-1){
					document.styleSheets[0][strCSS][n_css_style_count].style['fontSize'] = fontSizeValues[fontSizeIndex+1];
				}
			}
			else if (adjustment=='-'){
				if (fontSizeIndex>0){
					document.styleSheets[0][strCSS][n_css_style_count].style['fontSize'] = fontSizeValues[fontSizeIndex-1];
				}
			}
		}
	}
	

	return true;
};

var tag_line_list =['More Profit with Less Risk.' ,
					'Streamlining and Simplifying.',
					'High Return Of Investment.',
					'Adding Value.',
					'Improving Service.',
					'Removing Repetitive Routine.',
					'Managing Exceptions.',
					'Improving Efficiency.',
					'The Businesses Techie.',
					'Do More with Less.'
					 ]

function get_random_tag_line (){
	var ran_number=Math.floor(Math.random()*tag_line_list.length); 
	return tag_line_list[ran_number];
}

function display_random_tag_line (){

	var tag_line = get_random_tag_line();
	document.getElementById('tag_line').innerHTML=tag_line;
}