﻿var NewsTitle = "";
var NewsText = "";
var NewsURL = "";
var CleaningToolTitle = "";
var CleaningToolText = "";
var preloadFlag = false;

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function preloadImages() {
	if (document.images) {
		Home_over = newImage("images/Btn_Home-over.jpg");
		About_Us_over = newImage("images/Btn_About-Us-over.jpg");
		News_over = newImage("images/Btn_News-over.jpg");
		Services_over = newImage("images/Btn_Services-over.jpg");
		Contact_Us_over = newImage("images/Btn_Contact-Us-over.jpg");
		preloadFlag = true;
	}
}

function WriteCTTitle(randomNumber){
	switch(randomNumber){
		case 1:
			CleaningToolTitle = "Removing Candle Wax";
			break;
		case 2:
			CleaningToolTitle = "Freshening the Air";
			break;
		case 3:
			CleaningToolTitle = "Stainless Steel Sinks";
			break;
		case 4:
			CleaningToolTitle = "Freshening Drains";
			break;
		case 5:
			CleaningToolTitle = "Coffee Stains";
			break;
		case 6:
			CleaningToolTitle = "Heel Marks";
			break;
		case 7:
			CleaningToolTitle = "Dusting";
			break;
		case 8:
			CleaningToolTitle = "Removing Gum";
			break;
		case 9:
			CleaningToolTitle = "Greasy Carpet Stains";
			break;
		case 10:
			CleaningToolTitle = "Cleaning Glass Table Tops";		
			break;
	}
	return CleaningToolTitle;
}
function WriteCTText(randomNumber){
	switch(randomNumber){
		case 1:
			CleaningToolText = "Candles are great holiday decorations.  But with candles,  also comes the occasional spilled candle wax! Candle wax can be removed from walls or other surfaces with an iron and a brown paper bag or facial tissue. Set the tissue or bag over the wax and gently iron. When the wax seeps through or the tissue begins to brown, apply a new tissue or bag and repeat the process.";
			break;
		case 2:
			CleaningToolText = "To help mask room odors, put a sheet of fabric softener in a wastebasket or garbage can.  Also, try putting a touch of fragrant oil on a light bulb.  When the light is turned on, the heat from the bulb will release the aroma.";
			break;
		case 3:
			CleaningToolText = "Water spots and general wear and tear will take away the luster from a stainless steel sink. If you really want to make a stainless steel sink shine, wipe the sink with a little vinegar or a touch of oil on a soft cloth.  Wipe dry to avoid spots.";
			break;
		case 4:
			CleaningToolText = "In restaurant kitchens, sometimes the drains can emit odors from small pieces of food collecting in the drain.  Pour 1/4 to 1/2 box of baking soda down the drain and add 1/2 cup of white vinegar. Cover the drain tightly for a few minutes and the flush with cold water for at least a minute.";
			break;
		case 5:
			CleaningToolText = "Many offices have the same problem; coffee stains on the rug!  Try one of these methods:<br/>•	Rub denatured alcohol into the coffee stain and rinse well with water.<br/>•	Take a white cloth and dip into a beaten egg yolk.  Rub the yolk well into the stain and rinse with clear water.";
			break;
		case 6:
			CleaningToolText = "With hundreds of high heels and black soled shoes walking across your lobby, you’re sure to have stubborn heel marks that are difficult to clean.  Try using one of these methods:<br/>•	Use a large pencil eraser on black heel marks.<br/>•	Dissolve 3 tbsp. Of TSP (trisodium phosphate) in one gallon of water.<br/> Wear gloves and do not use this on semi-gloss or gloss paint or wood surfaces.";
			break;
		case 7:
			CleaningToolText = "Telephones, keyboards, cracks between desks and cabinets can collect a lot of dust.  To get to these tough to clean places, use paint brushes to dust the in-between the cracks.  Use synthetic bristle paintbrushes as they are not only less expensive but more rigid than the natural brushes.";
			break;
		case 8:
			CleaningToolText = "Nothing’s worse than gum getting stuck on the bottom of your shoe…and tracked all over your business’ floor!  Use ice to harden the gum and a scrape gently with a dull knife to remove.  If you don’t have ice readily available, use a can of compressed air and spray the air on the gum to harden it.";
			break;
		case 9:
			CleaningToolText = "If you have a greasy carpet stain and you don’t have a carpet cleaning agent available, sprinkle the stain with a drying agent such as cornmeal, cornstarch, baking soda, cornstarch or talcum powder. Leave the power on for at least 6 hours and then vacuum.";
			break;
		case 10:
			CleaningToolText = "After dozens of meetings at the conference room table, the glass top can get small scratches.  To remove them, use a little toothpaste and wipe clean.  Also, make the table top shine by rubbing with a little lemon juice.  Dry the lemon juice with paper towels and polish with newspaper.";
			break;
	}
	return CleaningToolText;
}
function WriteNewsTitle(randomNumber){
    switch(randomNumber){
    	case 1:
			NewsTitle = "The Elkhart Project";
	    	break;
    	case 2:
			NewsTitle = "Long-term unemployed face dwindling options";
	    	break;
    	case 3:
			NewsTitle = "Transitioning From In-House Cleaning to Outsourcing Cleaning Services";
  	  		break;
    	case 4:
			NewsTitle = "Janitorial Services - Outsourcing vs In-House";
    		break;
    	case 5:
			NewsTitle = "Innovate In a Recession";
    		break;
    }
    return NewsTitle;
}

function WriteNewsText(randomNumber){
	switch(randomNumber){
    	case 1:
			NewsText = "Stories of struggle and recovery in America: Msnbc.com is focusing long-term coverage on the city of Elkhart, Ind. to provide perspective on the national recession. Follow our ongoing coverage on msnbc.com.";
	    	break;
    	case 2:
			NewsText = "Elkhart, Indiana - At the edge of this town, at the end of a long driveway, lives Lawrie Covey, who's at the end of her rope.";
	    	break;
    	case 3:
			NewsText = "Having a reliable, trustworthy and efficient cleaning staff is an asset to any company. Services like nightly janitorial services help ensure a sanitary working environment under any circumstance.";
  	  		break;
    	case 4:
			NewsText = "In business, there are two forms of outsourcing. One is to outsource offshore which is now being done in the technology field. The second, and only way to outsource janitorial services is to use a local company specializing in maintenance, instead of having janitorial services performed in house.";
    		break;
    	case 5:
			NewsText = "If the downturn is hurting your entrepreneurial spirit, we have good news for you: Recessions are historically ripe with opportunity for innovation. Don't believe us? Read on.";
    		break;
	}
	return NewsText;
}

function WriteNewsURL(randomNumber){
    switch(randomNumber){
    	case 1:
			NewsURL = "http://elkhartprojectblog.msnbc.msn.com/";
	    	break;
    	case 2:
			NewsURL = "http://www.msnbc.msn.com/id/34045075/ns/us_news-the_elkhart_project/";
	    	break;
    	case 3:
			NewsURL = "http://ezinearticles.com/?Transitioning-From-In-House-Cleaning-to-Outsourcing-Cleaning-Services&id=2435939" ;
  	  		break;
    	case 4:
			NewsURL = "http://ezinearticles.com/?Janitorial-Services---Outsourcing-Vs-In-House&id=3176620" ;
    		break;
    	case 5:
			NewsURL = "http://www.entrepreneur.com/magazine/entrepreneur/2009/february/199724.html";
    		break;
		}
	return  (" <a href='" + NewsURL + "' class='NewsText' target='_blank'>Read More...</a>");  // + "' class=NewsText'>Read More...</a>NewsURL;
}

