//*****************************************************
//Created By:     	Shubhangi D
//Date Created:  	07.01.2005
//This Java script contains Js code to show THINK safety message one each week
//*****************************************************

function strThinkMsgingArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

strThinkMsg = new strThinkMsgingArray(31);

//One set of signs for 1 week 
//Short messages
strThinkMsg[0] = "Slow Down"
strThinkMsg[1] = "Don\'t Drink and Drive"
strThinkMsg[2] = "Tiredness kills.<br> Make time for a break.";
strThinkMsg[3] = "Always wear a seatbelt";
strThinkMsg[4] = "Switch it off. <br> Missing a call won\'t kill you.";
strThinkMsg[5] = "Watch out for <br>cyclists and motorcyclists";
strThinkMsg[6] = "Ride defensively";
strThinkMsg[7] = "Expect the unexpected";


strThinkMsg[8] ="<b>THINK! Driving on motorways -</b><br>" + 
		"» Plan your journey<br>" +
		"» Keep left except when overtaking<br>" + 
		"» Keep your distance<br>" + 
		"» Watch your speed<br>" +
		"» Only use the hard shoulder in an emergency<br>" +
		"»  Take special care at roadworks";


strThinkMsg[9] ="<b>THINK! Driving when tired -</b><br>" +
		"» Plan your journey to include a 15-minute break every two hours.<br> " +
		"» Find a safe place to stop if you feel drowsy - not the hard shoulder. <br>" +
		"» Drink two cups of coffee or a high-caffeine drink, then take a short nap to allow the caffeine to kick in. <br>" +
		"» Do not start a long trip if you are already tired. <br>" +
		"» Remember the risks if you have to get up unusually early to start a long drive. <br>" +
		"» Try to avoid long trips between midnight and 6am when you are likely to feel sleepy anyway." ;



strThinkMsg[10] = "<b>THINK! advice - emergency vehicles-</b><br>" +
		 "If you\'re in the way of an emergency vehicle approaching using its flashing blue lights,<br>" +
		 "headlights and/or siren, you should:<br>" + 
		 "» Pull over, watching out for pedestrians, cyclists and other vehicles <br>" + 
		 "» Signal to let people know what you\'re doing <br>" +  
		 "» Pull in as far as you can, leaving a gap big enough for the emergency vehicle to get through <br>" +
		 "» Keep calm and <br>" +
		 "» Stay alert - there may be more vehicles coming. ";


strThinkMsg[11] = "<b>THINK! advice - mobile phones</b><br>" +
		 "» Drive responsibly<br>" +
		 "» Switch off before you drive off<br>" +
		 "» Risk using a hand-held mobile phone when driving, and you risk a fine.<br>" +
		 "» It is illegal to use a hand-held mobile phone when driving. "

strThinkMsg[12] = "<b>THINK! advice - teenagers</b><br>" +
		 "Life is full of distractions<br>" +
		 "» whether it\'s your mobile phone, your mates or just your mind on something else<br>" + 
		 "» so it\'s easy to forget about keeping yourself safe, especially on the roads."


strThinkMsg[13] = "<b>To drive safety avoid:</b><br>" +
		 "» loud music that may mask other sounds<br>" + 
		 "» trying to read a map <br>" + 
		 "» inserting a cassette or CD or tuning the radio<br> " + 
		 "» arguing with your passengers or other roads uses<br>" + 
		 "» eating and drinking. ";


strThinkMsg[14] = "<b>THINK! advice - motorcycling</b><br>" + 
		 "» Don\'t be a statistic <br>" + 
		 "» Take control: give your machine the skills it deserves <br>" + 
		 "» Watch out for motorcyclists";

strThinkMsg[15] = "<b>THINK! advice - new drivers</b><br>" +
		 "» You can\'t drive on the motorway<br>" + 
		 "» You must display L plates <br>" + 
		 "» You can\'t drive a car unless <br>you\'re accompanied by someone over 21 who has had a full driving licence for at least three years<br>" + 
		 "» You\'re limited to less powerful motorbikes. ";

strThinkMsg[16] = "<b>THINK! advice - new drivers</b><br>" + 
		"Main penalty point offences :<br>"+
		"» Speeding: 3-6 points <br>" +
		"» Going through a red light: 3 points <br>" +
		"» Careless driving: 3-9 points <br>" +
		"» Driving without insurance: 6-8 points <br>" +
		"» Failing to stop after an accident: 5-10 points " ;

strThinkMsg[17] = "<b>Normal speed limits -</b><br>" +
		"» In a built-up area - 30mph (48km/h) <br>" +
		"» On the outskirts of a built-up area - 40mph (64km/h) <br>" +
		"» On a main road - 60mph (96km/h) <br>" +
		"» On a motorway - 70 mph (112km/h)<br> " +
		"» Speed limits may be lower in some places - watch out for signs." ;


strThinkMsg[18] = "<b>THINK! advice - seat belts & child restraints</b><br>" +
		"» Wearing a seat belt saves lives<br>" +
		"» For your own and others\' safety, the law requires you to use a seat belt if one is fitted.<br>" +
		"» In a crash at 30mph, if you are unrestrained, you will hit the front seat, and anyone in it, with a force of between 30 and 60 times your own body weight.";

strThinkMsg[19] = "<b>THINK! advice - teenagers</b><br>" +
		 "Life is full of distractions<br>" +
		 "» whether it\'s your mobile phone, your mates or just your mind on something else<br>" + 
		 "» so it\'s easy to forget about keeping yourself safe, especially on the roads.";



strThinkMsg[20] = "<b>THINK! advice - overseas visitors</b><br>" +
		 "You must drive on the left. Be particularly careful when turning right.";

strThinkMsg[21] = "<b>THINK! advice - new drivers</b><br>" + 
		"At most road junctions, <br>"+
		"there will be a sign telling you whether to Stop or Give Way, or Give Way markings on the road (white dotted lines and a triangle). <br>" +
		"You must obey these signs.";

strThinkMsg[22] = "<b>THINK! advice - new drivers</b><br>" + 
		"At roundabouts,<br> " +
		"give way to traffic coming from the right, unless road markings tell you otherwise. <br>" +
		"Drive round clockwise and signal left as you approach your exit.";

strThinkMsg[23] = "<b>THINK! advice - new drivers</b><br>" + 
		"It is illegal to drive under the influence of alcohol. <br>" +
		"It is best not to drink at all if you are driving.";

strThinkMsg[24] = "<b>THINK! advice - new drivers</b><br>" + 
		 "You and your passengers must wear seatbelts if they are fitted - both in the front and back of the vehicle. <br>" +
		 "Younger children should be in properly fitted car seats.";

strThinkMsg[25] = "<b>THINK! advice - new drivers</b><br>" + 
		 "If you are in an accident you must stop and give your name, address and insurance details to the other driver(s) involved.<br>" +
		 "If anyone is injured you must also inform the police.";

strThinkMsg[26] = "<b>THINK! advice - new drivers</b><br>" + 
		 "On motorways, keep left unless you are overtaking.<br>" +
		 "Only use the hard shoulder in an emergency, and switch on your hazard warning lights. <br>" +
		 "You can call for help from emergency phones situated every 1500m.";

strThinkMsg[27] = "<b>THINK! advice - overseas visitors</b><br>" +
		 "You must drive on the left. Be particularly careful when turning right.";

strThinkMsg[28] = "<b>THINK! advice - seat belts & child restraints</b><br>" +
		"» Wearing a seat belt saves lives<br>" +
		"» For your own and others\' safety, the law requires you to use a seat belt if one is fitted.<br>" +
		"» In a crash at 30mph, if you are unrestrained, you will hit the front seat, and anyone in it, with a force of between 30 and 60 times your own body weight.";

strThinkMsg[29] = "<b>THINK! advice - new drivers</b><br>" + 
		 "You and your passengers must wear seatbelts if they are fitted - both in the front and back of the vehicle. <br>" +
		 "Younger children should be in properly fitted car seats.";


strThinkMsg[30] = "<b>Normal speed limits -</b><br>" +
		"» In a built-up area - 30mph (48km/h) <br>" +
		"» On the outskirts of a built-up area - 40mph (64km/h) <br>" +
		"» On a main road - 60mph (96km/h) <br>" +
		"» On a motorway - 70 mph (112km/h)<br> " +
		"» Speed limits may be lower in some places - watch out for signs." ;

strThinkMsg[31] = "<b>THINK! advice - mobile phones</b><br>" +
		 "» Drive responsibly<br>" +
		 "» Switch off before you drive off<br>" +
		 "» Risk using a hand-held mobile phone when driving, and you risk a fine.<br>" +
		 "» It is illegal to use a hand-held mobile phone when driving. "


var currentdate =0;
currentdate = new Date();

document.write("<table width=100% cellpadding=3 cellspacing=0 class=tborder_blue>");
document.write("  <tr bgcolor=#1591D1>");
document.write("    <td valign=center align=center>");
document.write("	<font color=white><b><a class=menulink href='http://www.thinkroadsafety.gov.uk/' TARGET='_blank'>Supporting road safety campaign : </b></a></font>");
document.write("    </td>");
document.write("    <td valign=top align=center bgcolor=#1591D1>");
document.write("	<img src= 'http://www.thurrock.gov.uk/travel/highways/images/icon_think.gif' height='50px'>");
document.write("  </td>");
document.write("  </tr>");

document.write("  <tr>");
document.write("    <td align=left colspan=2>");
document.write("	<div id='ThinkMsg'>");

//document.write(strThinkMsg[currentdate.getDay()]);

document.write(strThinkMsg[currentdate.getDate()])

document.write("</div></td>");

document.write("  </tr>");
document.write("</table>");

