today = new Date();
year = (today.getFullYear) ? today.getFullYear() : today.getYear();
month = today.getMonth();
switch (month) {
 case 0 : month = "January"; break;
 case 1 : month = "February"; break;
 case 2 : month = "March"; break;
 case 3 : month = "April"; break;
 case 4 : month = "May"; break;
 case 5 : month = "June"; break;
 case 6 : month = "July"; break;
 case 7 : month = "August"; break;
 case 8 : month = "September"; break;
 case 9 : month = "October"; break;
 case 10 : month = "November"; break;
 case 11 : month = "December"; break;
 }
date = today.getDate();
day = today.getDay();
switch (day) {
 case 0 : day = "Sunday"; break;
 case 1 : day = "Monday"; break;
 case 2 : day = "Tuesday"; break;
 case 3 : day = "Wednesday"; break;
 case 4 : day = "Thursday"; break;
 case 5 : day = "Friday"; break;
 case 6 : day = "Saturday"; break;
 }
hours = today.getHours();
 if (hours<10) greeting = 'Adapt this morning, thrive this afternoon: repeat process daily';
if (hours<12 && hours>9) greeting = 'Minute by minute marcomms management';
if (hours<14 && hours>11) greeting = 'Fresh ideas, delivered daily';
if (hours<16 && hours>13) greeting = 'Are your marcomms making the most of today?';
if (hours<18 && hours>15) greeting = 'Minute by minute marcomms management';
if (hours<20 && hours>17) greeting = 'Did your marcomms make a difference today?';
if (hours>19) greeting = 'Minute by minute marcomms management';

 if (hours<10) bodyx = '<b>breakfast briefing:</b> Get the lastest roundup for your industry with one of our live media mash-ups';
if (hours<12 && hours>9) body1 = '<b>morning briefing.</b> Get the lastest roundup for your industry with one of our live media mash-ups';
if (hours<14 && hours>11) body1 = '<b>lunch break.</b> Take time out from the work day and test out your News know-how with the Now Quiz';
if (hours<16 && hours>13) body1 = '<b>afternoon update.</b> Check the latest events and awards schedueld for your industry over the next 30 days';
if (hours<18 && hours>15) body1 = '<b>afternoon update.</b> Check the latest events and awards schedueld for your industry over the next 30 days';
if (hours<20 && hours>17) body1 = '<b>evening review.</b> Get a run down of the stories that broke in your industry today with Now Newstracker';
if (hours>19) body1 = '<b>:</b> NewsTracker mash-ups are watching developing stories in the US and accross the world throughout the night';

 if (hours<10) body1 = 'Good morning, and thanks for visiting us so early in the business day.';
if (hours<12 && hours>9) body1 = 'Good morning, thanks for visiting us today.';
if (hours<18 && hours>11) body1 = 'Good afternoon, thanks for visiting us today.';
if (hours<20 && hours>17) body1 = 'Good evening, thanks for visiting us today.';
if (hours>19) body1 = 'Working late again tonight?)';

 if (hours<11) body2 = 'Just take a second to consider the business day ahead and youll begin to see what we mean.';
if (hours<18 && hours>10) body2 = '';
if (hours<20 && hours>17) body2 = '';
if (hours>19) body2 = '';

 if (hours<10) body3 = '<p>First thing&rsquo;s first: since it&rsquo;s not even 10:00am yet and you&rsquo;re already researching our media and marketing options, chances are you&rsquo;ve made finding the right communications support for your business top priority this morning. If it&rsquo;s something specific you have in mind, like support for your next big event or latest news announcement, jump to our sitemap to find the media or marketing services you need fast or call us now on 020 8783 9602. Whatever your requirements are this morning, you could have them sorted before lunchtime.</p><p>Or perhaps you&rsquo;re looking at the bigger picture for your business this morning: You like the sound of a media and marketing company dedicated to delivering results today rather then promises for tomorrow and you want to know more.</p>';
if (hours<12 && hours>9) body3 = '<p>Over the next few hours, yesterday&lsquo;s best prospects for your business could become today&lsquo;s most important new customer wins. By lunchtime, ideas hatched at your last strategy meeting could crystallise into the critical products and services your markets will come to depend on tomorrow. Almost certainly, before close of business today, new relationships will be struck and important partnerships consolidated.</p><p>In a dynamic environment of opportunity where winning requires rapid action and fast deployment, shouldn&rsquo;t the marcomms strategy that supports your business be as bold as the ambition that drives it?</p>';
if (hours<14 && hours>11) body3 = '<p>Half full or half empty: How&rsquo;s your business day been so far? And by the way shouldn&rsquo;t you be thinking about lunch right now rather than researching media and marketing options for your business?  Could be you&lsquo;re just looking for a quick solution to today&rsquo;s marketing problems before you pop out for a bite to eat, so if it&rsquo;s something specific you have in mind, like support for your next big event or latest news announcement, jump to our sitemap &#40it&lsquo;s at the top there, last menu item on the right&#41; to find the media or marketing services you need fast, or call us now on 0870 880 8819. Whatever your requirements, you could have them sorted well before the afternoon rush gets underway.<p>Or perhaps you&rsquo;re looking at the bigger picture for your business: You like the sound of a media and marketing company dedicated to delivering results today rather then promises for tomorrow and you want to know more.</p>';
if (hours<16 && hours>13) body3 = '<p>Pan out for a second. Just think about what&rsquo;s happening across your marketplace this afternoon. New trends are taking root, planting fresh expectations in your customers and new demands on your business. New stories are breaking to shape tomorrow&rsquo;s news agenda and the events you predicted this morning are unfolding now to deliver dramatic new opportunities for the industry adventurers fast enough to capitalise on them.</p><p>In a dynamic environment of opportunity where winning requires rapid action and fast deployment, shouldn&rsquo;t the marcomms strategy that supports your business today be as bold as the ambition that drives it?</p>';
if (hours<18 && hours>15) body3 = '<p>Half full or half empty: How&rsquo;s your business day been so far? Did your media and marketing programmes really make a difference today? Did your direct comms actually identify new prospects and deliver new leads? Were your media relations experts savvy enough to tap into that developing news theme and create the content you need to make sure your business is ready to benefit as soon as the story breaks?</p><p>Fact is, if your media and marketing operations haven&rsquo;t achieved any of this so far today, then it&rsquo;s too late already: Any e-newsletter or alerts sent at this time of day are likely to sit in your prospects&lsquo; inboxes until tomorrow morning and become lost in the stack of unwanted junk mail that&rsquo;s sure to accumulate overnight. Newspaper deadlines have closed and our major media players have their sights on the home&ndash;front rather then the headlines.</p>';
if (hours<20 && hours>17) body3 = '<p>Half full or half empty: How did your business day go today? Well let&rsquo;s face it: you&rsquo;re still at the computer screen when most of your colleagues have clocked off for the evening so something&rsquo;s obviously still on the &quot;to do&quot; list (Shouldn&rsquo;t someone else be researching the marketing and media services your business lacks today?)</p><p>Pan out for a second. Just think about what happened across your marketplace today: New trends took root, planting fresh expectations in your customers and new demands on your business. New stories broke, and now some of them are actually shaping tomorrow&rsquo;s news agenda. The events you predicted this morning have now started to unfold, delivering dramatic new opportunities for the industry adventurers fast enough to take them.</p><p>In a dynamic environment of opportunity where winning requires rapid action and fast deployment, shouldn&rsquo;t the marcomms strategy that supports your business today be as bold as the ambition that drives it?</p>';
if (hours>20) body3 = 'tesxt here';

 if (hours<10) body4 = 'morning';
if (hours<12 && hours>9) body4 = 'morning';
if (hours<14 && hours>11) body4 = 'lunchtime';
if (hours<16 && hours>13) body4 = 'afternoon';
if (hours<18 && hours>15) body4 = 'afternoon, ';
if (hours<20 && hours>17) body4 = 'evening';
if (hours>19) body1 = 'night';

hour = (hours>12) ? (hours-12) : hours;
halfDay = (hours>11 && hours<24) ? 'PM' : 'AM';
minutes = today.getMinutes();
dayStr = day+ ', ' +date+ ' ' +month+ ', ' +year;
timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+ ':' +minutes+ ' ' +halfDay;

 function goToSelectedAllPage(selectObject) { 
 var path = selectObject.options[selectObject.options.selectedIndex].value 
 if( path.toUpperCase() == "NONE" ) 
 return false; 
 location=selectObject.options[selectObject.options.selectedIndex].value; 
 return true; 
 } 


