/*
* boxwood.js
* for AOTA's OTJobLink
* Edit this content to manage the OTJobLink's ads

******************* PLEASE READ WHEN UPDATING THIS FILE *******************************
* Copy the HTML text into the form on this website http://www.howtocreate.co.uk/tutorials/jsexamples/syntax/prepareInline.html
* Under Configuation, use the variable name: adContent1 and Radio Check the Single ' for quotes, hit Convert.Packages
* Cut and paste the new var tag below.
*/


// Universal Values
var now = new Date()
var strShortDate = now.getMonth() + 1 + "/" + now.getDate() + "/" + now.getFullYear()
var dtShortDate = new Date(strShortDate)

var adFixedContent = '<!' + '-- BEGIN CLIENT CONTENT --' + '>';
var adEnd = '<!' + '-- END CLIENT CONTENT --' + '>';
var AOTAPosition = '';

// Define 7 position variables
// If you need sequential ads in the same position, use letters to designate the sequences

var P1A = ''
var P2A = ''
var P3A = ''
var P4A = ''
var P5A = ''
var P6A = ''
var P7A = ''
var P8A = ''

/*
Date variables
Add more if you need more concurrent ads.
*/

var dtP1A_Start = new Date()
var dtP1A_End = new Date()

var dtP2A_Start = new Date()
var dtP2A_End = new Date()

var dtP3A_Start = new Date()
var dtP3A_End = new Date()
var dtP3B_Start = new Date()
var dtP3B_End = new Date()

var dtP4A_Start = new Date()
var dtP4A_End = new Date()

var dtP5A_Start = new Date()
var dtP5A_End = new Date()

var dtP6A_Start = new Date()
var dtP6A_End = new Date()

var dtP7A_Start = new Date()
var dtP7A_End = new Date()

var dtP8A_Start = new Date()
var dtP8A_End = new Date()

/* Set Start and End Dates for each position (always add +1 to the month value to get the calendar month. (i.e. 4=May) */

// 8/28/08 - 12/31/2010 - EBS
dtP1A_Start.setFullYear(2008, 7, 28);
dtP1A_End.setFullYear(2010, 1, 31);
if (dtP1A_Start <= dtShortDate && dtP1A_End >= dtShortDate) {
    P1A = '<div class="ad_sidebar"><a href=\'http:\/\/www.ebshealthcare.com\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/ebsbanner2.gif\' alt=\'EBS Logo\'><\/a><\/div>';
}
//else if (p2StrB <= now && p2ExpB >= now) /// 7/1/2007 - 8/30/2007
//{
//    var adPos2 = '';
//}
//else if (p2StrC <= now && p2ExpC >= now) /// 8/1/2007 - 9/30/2007
//{
//    var adPos2 = '';
//}


// 1/7/2009 - 12/31/2009 - BOSTON U
dtP2A_Start.setFullYear(2009, 1, 7)
dtP2A_End.setFullYear(2010, 12, 31)
if (dtP2A_Start <= dtShortDate && dtP2A_End >= dtShortDate) {
    P2A = '<div class="ad_sidebar"><a href=\'http:\/\/www.otdegree.com/aotaot\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/gfx2\/boston_u.gif\' alt=\'Boston University Logo\'><\/a><\/div>';
}


// 2/20/2010 - 5/08/2010 - MultiCare Healthcare
dtP3A_Start.setFullYear(2009, 2, 2);
dtP3A_End.setFullYear(2010, 5, 8);
dtP3B_Start.setFullYear(2009, 9, 1);
dtP3B_End.setFullYear(2010, 12, 31);
if (dtP3A_Start <= dtShortDate && dtP3A_End >= dtShortDate) {
    P3A = '<div class="ad_sidebar"><a href=\'http:\/\/www.multicare.org/home/multicare-jobs-2\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/MultiCare3.jpg\' alt=\'MultiCare Healthcare\'><\/a><\/div>';
}
// 10/01/2009 - 12/31/2009 - Methodist Hospital
if (dtP3B_Start <= dtShortDate && dtP3B_End >= dtShortDate) {
    //P3B = '<div class="ad_sidebar"><a href=\'http:\/\/www.methodist.com/careers\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/MethodistHospital.gif\' alt=\'HCR Methodist Hospistal\'><\/a><\/div>';
}

// 7/6/2009 - 12/31/2009 - West Texas
dtP4A_Start.setFullYear(2009, 6, 6);
dtP4A_End.setFullYear(2009, 12, 31);
if (dtP4A_Start <= dtShortDate && dtP4A_End >= dtShortDate) {
    P4A = '<div class="ad_sidebar"><a href=\'http:\/\/www.westtexasrehab.org\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/WestTexasRehab.GIF\' alt=\'West Texas Rehab Center\'><\/a><\/div>';
}

// 7/6/2009 - 9/30/2009 - ProStep
dtP5A_Start.setFullYear(2009, 6, 6);
dtP5A_End.setFullYear(2009, 8, 30);
if (dtP5A_Start <= dtShortDate && dtP5A_End >= dtShortDate) {
    P5A = '<div class="ad_sidebar"><a href=\'http:\/\/www.prosteprehab.com\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/ProStep.gif\' alt=\'Pro Step Rehab\'><\/a><\/div>';
}

// 9/1/2009 - 12/31/2009 - Genesis
dtP6A_Start.setFullYear(2009, 8, 1);
dtP6A_End.setFullYear(2009, 9, 31);
if (dtP6A_Start <= dtShortDate && dtP6A_End >= dtShortDate) {
    P6A = '<div class="ad_sidebar"><IFRAME SRC=\"http:\/\/ad.doubleclick.net\/adi\/N636.155441.2703775741521\/B3832693;sz=150x78;ord=' + strShortDate + '?\" WIDTH=150 HEIGHT=78 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=\'#000000\'>\n<SCRIPT language=\'JavaScript1.1\' SRC=\"http:\/\/ad.doubleclick.net\/adj\/N636.155441.2703775741521\/B3832693;abr=!ie;sz=150x78;ord=' + strShortDate + '?\">\n<\/SCRIPT>\n<NOSCRIPT>\n<A HREF=\"http:\/\/ad.doubleclick.net\/jump\/N636.155441.2703775741521\/B3832693;abr=!ie4;abr=!ie5;sz=150x78;ord=' + strShortDate + '?\">\n<IMG SRC=\"http:\/\/ad.doubleclick.net\/ad\/N636.155441.2703775741521\/B3832693;abr=!ie4;abr=!ie5;sz=150x78;ord=' + strShortDate + '?\" BORDER=0 WIDTH=150 HEIGHT=78 ALT=\"Click Here\"><\/A>\n<\/NOSCRIPT>\n<\/IFRAME><\/div>';
}


// 7/10/2009 - 9/31/2009 - PeopleFirst
dtP7A_Start.setFullYear(2009, 6, 10);
dtP7A_End.setFullYear(2009, 10, 31);
if (dtP7A_Start <= dtShortDate && dtP7A_End >= dtShortDate) {
    P7A = '<div class="ad_sidebar"><a href=\'http:\/\/www.ecentralmetrics.com/url/?u=8359156861-195\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/CHJ-3804_Res_Banner.gif\' alt=\'People First Rehab\'><\/a><\/div>';
}

// 8/1/2009 - 10/31/2009 - Resurection Health Care
dtP8A_Start.setFullYear(2009, 7, 1);
dtP8A_End.setFullYear(2009, 9, 31);
if (dtP8A_Start <= dtShortDate && dtP8A_End >= dtShortDate) {
    P8A = '<div class="ad_sidebar"><a href=\'http:\/\/www.methodist.com/careers\' target=\'_new\'>\n\t\t<img border=\'0\' src=\'http:\/\/www.otjoblink.org\/img\/MethodistHospital.gif\' alt=\'Methodist Hospital\'><\/a><\/div>';
}

// DO NOT MODIFY THE NEXT LINEz
document.write(adFixedContent + P1A + P2A + P3A + P4A + P5A + P6A + P7A + P8A + adEnd);