function getWeekNr()
{
	var today = new Date();
	Year = takeYear(today);
	Month = today.getMonth();
	Day = today.getDate();
	now = Date.UTC(Year,Month,Day+1,0,0,0);
	var Firstday = new Date();
	Firstday.setYear(Year);
	Firstday.setMonth(0);
	Firstday.setDate(1);
	then = Date.UTC(Year,0,1,0,0,0);
	var Compensation = Firstday.getDay();
	if (Compensation > 3) Compensation -= 4;
	else Compensation += 3;
	NumberOfWeek =  Math.round((((now-then)/86400000)+Compensation)/7);
	return NumberOfWeek;
}

function takeYear(theDate)
{
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}

var msg = new Array();
week = getWeekNr();
msg[1] = "Keep portable heaters and space heaters at least three feet (one meter) from anything that can burn. keep children and pets away from heaters, and never leave heaters on when you leave home or go to bed.";
msg[2] = "A common cause of workplace fires is machinery or equipment which becomes overheated. Be sure to follow operating guidelines to prevent overloading. ";
msg[3] = "Don't block overhead sprinkler systems by stacking items too high or too near the sprinkler heads.";
msg[4] = "Don't put cords in areas where they may get stepped on, tripped on, or driven over. Keep them well away from heat sources. Don't yank on cords to unplug them as this can damage the wiring.";
msg[5] = "Flammable liquids must be stored in properly ventilated areas, away from sources of ignition. Vapors can travel far from their source, if they encounter a source of ignition, it will result in a serious fire or explosion. Even empty flammable liquid containers may still contain the vapors.";
msg[6] = "Run cool water over a burn for 10 to 15 minutes. Never put butter or any grease on a burn. If the burned skin blisters or is charred, see a doctor immediately. Never use ice.";
msg[7] = "Keep portable heaters and space heaters at least three feet (one meter) from anything that can burn. keep children and pets away from heaters, and never leave heaters on when you leave home or go to bed.";
msg[8] = "Safety tip #8";
msg[9] = "During a fire, smoke and poisonous gases rise with the heat. The air is cleaner near the floor. If you encounter smoke while you are escaping from a fire, use an alternate escape route.";
msg[10] = "Maintain electrical equipment to prevent shorting-out and overheating. Watch for worn insulation, frayed cords and other signs of wear or damage.";
msg[11] = "Underground power lines can be dangerous. If you are planning to dig anywhere around your property for building or planting, call your utility company to mark out the power and gas lines for you.";
msg[12] = "When working with any fire, it is always a good idea to keep a fire extinguisher, bucket of water or garden hose close at hand in case you have to quickly extinguish the fire.";
msg[13] = "Don't block overhead sprinkler systems by stacking items too high or too near the sprinkler heads.";
msg[14] = "When you change your clocks daylight saving time, check your smoke and carbon monoxide detectors and replace the batteries. Developing this habit is a good way to remember a simple task that can save your life.";
msg[15] = "If your clothes catch fire, don't run. Stop where you are, drop to the ground, cover your face with your hands, and roll over and over to smother the flames. ";
msg[16] = "Don't ever use water on an electrical fire. Use only an extinguisher designed specifically for electrical fires. Know where to locate and how to use this extinguisher ";
msg[17] = "When installing a fire pit allow adequate clearance from combustible walls and surfaces such as wood fences, decks, vinyl siding, shrubs, tables, etc.  Allow at least 5 feet from all combustible objects and surfaces.";
msg[18] = "Don't put cords in areas where they may get stepped on, tripped on, or driven over. Keep them well away from heat sources. Don?t yank on cords to unplug them as this can damage the wiring.";
msg[19] = "33% of all fishing fatalities invlove alcohol. Fishing and drinking alcohol dont mix. Always wear a personal flotation device when fishing in a lake or deep river.";
msg[20] = "Long weeknd comming";
msg[21] = "Never leave a fire unattended and always extinguish it completely before retiring. Do not overload your fire pit or use it to burn leaves, paper or trash.";
msg[22] = "Underground power lines can be dangerous. If you are planning to dig anywhere around your property for building or planting, call your utility company to mark out the power and gas lines for you.";
msg[23] = "Know what to do if the fire alarm sounds. Know your escape route and what to do once you leave the building.";
msg[24] = "Maintain electrical equipment to prevent shorting-out and overheating. Watch for worn insulation, frayed cords and other signs of wear or damage.";
msg[25] = "Practice good worksite housekeeping habits. Do not let trash and waste material accumulate. Empty trash bins regularly.";
msg[26] = "Know where the nearest fire extinguishers to you are located, and be trained in how to use them. Make sure fire extinguishers are serviced regularly. ";
msg[27] = "Do not store materials or allow clutter to accumulate around exits and stairways. Fire doors should be kept closed. Fire exits must always remain free and accessible.";
msg[28] = "Run cool water over a burn for 10 to 15 minutes. Never put butter or any grease on a burn. If the burned skin blisters or is charred, see a doctor immediately. Never use ice. ";
msg[29] = "Don't ever use water on an electrical fire. Use only an extinguisher designed specifically for electrical fires. Know where to locate and how to use this extinguisher ";
msg[30] = "Caution should always be exercised when working with fire particularly in the event of strong wind.";
msg[31] = "Dispose of oily rags properly. They should be placed into approved, covered containers which are emptied regularly.";
msg[32] = "Flammable liquids must be stored in properly ventilated areas, away from sources of ignition. Vapors can travel far from their source, if they encounter a source of ignition, it will result in a serious fire or explosion. Even empty flammable liquid containers may still contain the vapors.";
msg[33] = "Once a fire extinguisher has been discharged, even partially, it needs to be taken out of service, checked and refilled. A partially discharged fire extinguisher is as useless as an empty one.";
msg[34] = "Extension cords are intended for <B>temporary</b> use only. Have wiring upgraded to accommodate new appliances or equipment.";
msg[35] = "Know what to do if the fire alarm sounds. Know your escape route and what to do once you leave the building.";
msg[36] = "A common cause of workplace fires is machinery or equipment which becomes overheated. Be sure to follow operating guidelines to prevent overloading.";
msg[37] = "Flammable liquids should be stored only in approved safety containers.\<br> Gas up lawn equipment and snow throwers outside, away from enclosed areas and any source of sparks or heat.\<br> Never clean floors or do other general cleaning with gasoline or flammable liquids.";
msg[38] = "Keep portable heaters and space heaters at least three feet (one meter) from anything that can burn. keep children and pets away from heaters, and never leave heaters on when you leave home or go to bed. ";
msg[39] = "Run cool water over a burn for 10 to 15 minutes. Never put butter or any grease on a burn. If the burned skin blisters or is charred, see a doctor immediately. Never use ice";
msg[40] = "When working with any fire, it is always a good idea to keep a fire extinguisher, bucket of water or garden hose close at hand in case you have to quickly extinguish the fire.";
msg[41] = "It's 'Fire Prevention Week.' \<br> Most residential fires start in the kitchen. Do not leave cooking unattended.";
msg[42] = "A common cause of workplace fires is machinery or equipment which becomes overheated. Be sure to follow operating guidelines to prevent overloading. ";
msg[43] = "When you change your clocks back to standard time, check your smoke and carbon monoxide detectors and replace the batteries. Developing this habit is a good way to remember a simple task that can save your life.";
msg[44] = "Do not alter plugs by removing the third prong so it can fit into a two-prong outlet. This defeats the safety feature of a ground wire.";
msg[45] = "Know where the nearest fire extinguishers to you are located, and be trained in how to use them. Make sure fire extinguishers are serviced regularly.";
msg[46] = "If an electrical appliance smokes or has an unusual smell, unplug it immediately, then have it serviced before using it again. Replace any electrical cord that is cracked or frayed. Don't overload extension cords or run them under rugs. Dont' tamper with your fuse box or use improper-size fuses. ";
msg[47] = "Never interfere with emergency equipment such as sprinklers, fire extinguishers, or fire doors designed to prevent the spread of fires.";
msg[48] = "Know what to do if the fire alarm sounds. Know your escape route and what to do once you leave the building.";
msg[49] = "Keep candles and other open flames away from decorations.\<br>Never leave burning candles unattended and always supervise children when using candles. ";
msg[50] = "Before buying a Natural Christmas Tree, tap the base of the tree on the ground, if many needles fall off, the tree is too dry.\<br>&nbsp;Before setting up the tree, trim two inches off the stem diagonally so it can absorb water.\<br>&nbsp;Mount the tree securely in wide based reservoir stand and add water daily.\<br>&nbsp;<b> NEVER</b> decorate a tree with burning candles.";
msg[51] = "Keep your home safe this holiday season by using care and caution with candles!\<br>&raquo; Keep candles away from things that can burn such as curtains, decorations and clothing.\<br>&raquo; Cut candle wicks short to prevent high flame.\<br>&raquo; Extinguish all candles when leaving the room.\<br>&raquo; Keep candles, matches and lighters up high, out of reach of children and pets.";
msg[52] = "Christmas wrapping and decorations are highly combustible - DO NOT BURN THEM IN YOUR FIREPLACE!";

function writeTip() { 
document.write(msg[week]);
}