
var daysuntilExpire=45;

var pbCode=pbx;

daysuntilExpire=parseInt(pbCode,16);

var siteName = "LessonPlansPage.com";
var siteImgTrack = "0000";

switch (siteSource) {
	case "A4T":
		siteName = "Apples4TheTeacher.com";
		siteImgTrack = "1620";
		break;
}

var strVar="";
strVar += "<style type=\"text\/css\">#lightinbox { position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-image: url('http:\/\/www.lessonplanspage.com\/EXTRAS\/LPPlightbox\/transfade.png'); background-repeat: repeat; z-index:1001; visibility: hidden; clear: both; } #lightinboxInner { position: absolute; top: 80px; left: 15%; z-index:1002; width: 680px; height: 520px; padding: 16px; border: 4px solid #152172; background-color: white; color: #152758; font-family: Georgia, \"Times New Roman\", Times, serif; font-size: 12px; line-height: 16px; text-align: left; } #lightinboxInner h2, #lightinbox #lightinboxInner a { font-family: Georgia, \"Times New Roman\", Times, serif; font-size: 16px; line-height: 21px; margin-top: 0px; margin-bottom: 0px; font-weight: normal; } #lightinboxInner p { color: #152758; font-family: Georgia, \"Times New Roman\", Times, serif; font-size: 13px; line-height: 17px; margin-top: 9px; margin-bottom: 6px; } #lightinboxInner #LightBoxForm input { margin-top: 6px; padding-right: 6px; padding-left: 6px; font-family: Georgia, \"Times New Roman\", Times, serif; } #lightinboxInner #LightBoxForm form { padding: 0px; margin: 0px; display:block; } #lightinboxInner #LightBoxForm { border: 2px dotted #A4B4C7; padding: 12px; display:block; } #lightinboxInner li { color: #152758; font-family: Georgia, \"Times New Roman\", Times, serif; line-height: 17px; font-size: 13px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; } #lightboxInner ul { margin-top: 6px; margin-bottom: 6px; } #lightinboxInner a { color: #2553BC; }<\/style><div id=\"lightinbox\"><div id=\"lightinboxInner\" onmouseover=\"elementToggleVisibility('hidden');\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>A SPECIAL INVITATION FOR TEACHERS FROM " + siteName.toUpperCase() + "...<\/td><td><a href=\"javascript:\"><img src=\"http:\/\/www.lessonplanspage.com\/EXTRAS\/LPPlightbox\/learnmore-18.gif\" alt=\"LEARN MORE\" name=\"LEARN MORE\" width=\"100\" height=\"18\" border=\"0\" align=\"right\" onclick=\"loadLearnLink();\"\/><\/a><\/td><td align=\"right\"><a href=\"javascript:\"><img src=\"http:\/\/www.lessonplanspage.com\/EXTRAS\/LPPlightbox\/close-18.gif\" alt=\"CLOSE\" width=\"73\" height=\"18\" border=\"0\" onclick=\"hidelightbox();\"\/><\/a><\/td><\/tr><\/table><hr noshade=\"noshade\" color=\"#152758\" size=\"1\" style=\"margin-top:3px;\"\/><h2>" + siteName + " would like to take a moment to let you know about <a href=\"javascript:\"><span onclick=\"loadTextLink();\">Concordia University's<\/span><\/a> new Master's Degrees in Education that you can complete online in just one year!<\/h2><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td><p>Available Master's Degrees in Education include:<\/p><ul style=\"margin-top: 6px; padding-top: 0px;\"> <li style=\"margin-top: 6px; padding-top: 6px;\">Educational Leadership<\/li> <li>Curriculum &amp; Instruction: Reading<\/li> <li>Curriculum &amp; Instruction: Mathematics (K-8) <strong><font color=\"#0033CC\" size=\"2\"><em>&#8212; New!<\/em><\/font><\/strong><\/li> <li>Curriculum &amp; Instruction: Science (K-8) <strong><font color=\"#0033CC\" size=\"2\"><em>&#8212; New!<\/em><\/font><\/strong><\/li> <li>Curriculum &amp; Instruction: Special Education<strong><font color=\"#0033CC\" size=\"2\"><em>&#8212; New!<\/em><\/font><\/strong><\/li> <li>Curriculum &amp; Instruction: Methods &amp; Curriculum<\/li> <li>Curriculum &amp; Instruction: English to Speakers of Other Languages<\/li> <\/ul><p>These programs can help you:<\/p><ul><li>Open the door to a variety of <strong>school leadership<\/strong> career opportunities like higher education teaching, department chair, ELL consultant, literacy coach, or curriculum coordinator<\/li><li>Complete your degree <strong>in one year<\/strong>, on <strong>your schedule<\/strong>, from the comfort of <strong>your home<\/strong><\/li><li>A Master&rsquo;s Degree could mean an <strong>automatic salary increase<\/strong> in your school district!<\/li><\/ul><\/td><td width=\"18\">&nbsp;<\/td><td width=\"230\" align=\"center\"><a href=\"javascript:\"><img src=\"http:\/\/www.lessonplanspage.com\/EXTRAS\/LPPlightbox\/culogo.gif\" alt=\"Concordia University Online\" width=\"192\" height=\"101\" vspace=\"12\" border=\"0\" style=\"margin-right: 18px;\" onclick=\"loadLogoLink();\"\/><\/a><br\/><br\/><form action=\"http:\/\/staging-hle.hotchalk.com\/teacher\/prodev\/concordia_mini\" method=\"get\" name=\"LightBoxForm\" id=\"LightBoxForm\" onsubmit=\"return loadSignUp();\"><h2 align=\"center\">Find Out More!<br\/><input type=\"text\" name=\"first_name\" size=\"25\" value=\"Your First Name\" onfocus=\"this.value=''\"\/><br\/><input type=\"text\" name=\"last_name\" size=\"25\" value=\"Your Last Name\" onfocus=\"this.value=''\"\/><br\/><input name=\"email\" type=\"text\" onfocus=\"this.value=''\" value=\"Your E-mail\" size=\"25\"\/><br\/><input type=\"button\" name=\"submit\" value=\"Request Information!\" style=\"font-size:14px; line-height:22px; width: 180px; padding: 1px;\" onclick=\"loadSignUp(this.form);\"\/><\/h2><\/form><\/a><\/td><\/tr><\/table><em>A national university system with 10 campuses throughout the United States, Concordia was founded more than 100 years ago and is accredited by the Northwest Commission on Colleges and Universities.<\/em><br\/><a href=\"javascript:\"><img src=\"http:\/\/www.lessonplanspage.com\/EXTRAS\/LPPlightbox\/close-18.gif\" alt=\"CLOSE\" width=\"73\" height=\"18\" vspace=\"9\" border=\"0\" style=\"margin-left:-16px;\" onclick=\"hidelightbox();\"\/><\/a><\/div><\/div>";

function getlightboxcookie(Name) {
	var search = Name + "="
	var returnvalue = ""
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if (end == -1)
			end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

function hidelightbox(){
	document.getElementById('lightinbox').style.visibility='hidden';
	elementToggleDisplay('block');
	elementToggleVisibility('visible');
}

function writelightbox(){
	document.write(strVar);
}


function loadSignUp(LightBoxForm) {
   var theURL = "http://www.concordiaonline.net/info-request-g1.html?source=site-" + siteSource + "-lightbox&email=" + LightBoxForm.email.value + "&first_name=" + LightBoxForm.first_name.value + "&last_name=" + LightBoxForm.last_name.value + "&siteImgTrack=" + siteImgTrack;
   document.location = theURL;
   return false; 
}

function loadLearnLink() {
   var theURL = "http://www.concordiaonline.net/info-request-g1.html?source=site-" + siteSource + "-lightbox";
   document.location = theURL;
   return false; 
}

function loadLogoLink() {
   var theURL = "http://www.concordiaonline.net/info-request-g1.html?source=site-" + siteSource + "-lightbox";
   document.location = theURL;
   return false; 
}

function loadTextLink() {
   var theURL = "http://www.concordiaonline.net/info-request-g1.html?source=site-" + siteSource + "-lightbox";
   document.location = theURL;
   return false; 
}

function resetlightdCookie(){
		var cookie_date = new Date();
		cookie_date.setTime(cookie_date.getTime() + (daysuntilExpire*24*60*60*1000));
		document.cookie = "LPPlightbox=yes; expires=" + cookie_date.toGMTString() + "; path=/";
		writelightbox();
		var delaylightbox = delaySeconds*1000;
		setTimeout("elementToggleDisplay('none');elementToggleVisibility('hidden');document.getElementById('lightinbox').style.visibility='visible';",delaylightbox);
}

var expdate = new Date();
expdate.setTime(expdate.getTime() +  (24 * 60 * 60 * 1000 * 178));

function loadLPPlightbox(){
	currentNewsCookie = getlightboxcookie('fadedin');
	currentFadeCookie = getlightboxcookie('LPPlightbox');

	if (currentNewsCookie == "") {
		document.cookie = "LPPlightbox=skip; expires=" + expdate.toGMTString() +  "; path=/";
	} 
	
	else if (currentNewsCookie == "yes" && currentFadeCookie == "skip" ) {
		document.cookie = "LPPlightbox=go; expires=" + expdate.toGMTString() +  "; path=/";
	}
	
	else if (currentNewsCookie == "yes" && currentFadeCookie == "" ) {
		document.cookie = "LPPlightbox=go; expires=" + expdate.toGMTString() +  "; path=/";
	}
	
	else if (currentNewsCookie == "yes" && currentFadeCookie == "go" ) {
		resetlightdCookie();
	}
	
	
	}

function elementToggleVisibility(bool){
	f = document.getElementsByTagName("iframe");
    for(var i=0; i<f.length; i++){
       f[i].style.visibility=bool;
    }
	f = document.getElementsByTagName("embed");
    for(var i=0; i<f.length; i++){
       f[i].style.visibility=bool;
    }
    f = document.getElementsByTagName("object");
    for(var i=0; i<f.length; i++){
       f[i].style.visibility=bool;
    }
}

function elementToggleDisplay(bool){
	f = document.getElementsByTagName("iframe");
    for(var i=0; i<f.length; i++){
       f[i].style.display=bool;

    }
	f = document.getElementsByTagName("embed");
    for(var i=0; i<f.length; i++){
       f[i].style.display=bool;

    }
    f = document.getElementsByTagName("object");
    for(var i=0; i<f.length; i++){
       f[i].style.display=bool;

    }
}



