/*

Scriptlet Service Announcement Tool


This simple JavaScript tool can be used to make important announcements that are displayed whenever the user navigates to a given page. Currently, they are displayed in a JavaScript pop-up (using the operating system's common dialog feature), however, they can be displayed other ways in the future.

Here is what you need to do to make a page announcable:

1.Go to the page you want to make announcable.
2.Paste the following code in the HEAD section of the html document:
<!--power outage code-->
<script type="text/JavaScript" src="http://www.learninglibrary.com/power_outage/show_inpage_dialog1.js"></script>

If you want to turn the announcer on or off:

1.open this document: http://www.learninglibrary.com/power_outage/show_inpage_dialog1.js
2.change the line near the top that says 
toggle_onoff =  true
3.save
4.to turn it back off, set the toggle_onoff = false;

To change the message you want to use:
1.open this document: http://www.learninglibrary.com/power_outage/show_inpage_dialog1.js
2.change the line that contains message = “” by putting your message in the quotes

That's it!

*/
var toggle_onoff = false;
var service_type = "alert"
var message = "Notice to all users: Please be advised that today, Monday September 15, 2008, our support telephone number is experiencing technical difficulties due to the power outage caused by the severe weather. This does not affect the web site or any other system functions. For quickest support response we encourage you to email our technical support at support@learninglibrary.com. Our support line will be functional by tomorrow September 16 2008. Thank you, Learning Library Inc.";



if (toggle_onoff) {
	if (service_type == "alert") {
		alert(message);
	}
}





function reFresh() {
	var temp = window.location;
	window.location = temp;
}
/* Set the number below to the amount of delay, in milliseconds,
you want between page reloads: 1 minute = 60000 milliseconds. */
window.setInterval("reFresh()",120000);








/*

OTHER CODE (For future features)

//write the document
document.write(strtemp); 


var strtemp = '<div id="dropin" style="position:absolute;visibility:hidden;left:200px;top:100px;width:500px;height:300px;background-color:#F5F5F5">';
strtemp +='<div align="right"><a href="#" onClick="dismissbox();return false">[Close Box] </a></div>';
strtemp +='Notice to all users: Please be advised that today, Monday September 15, 2008 , our support telephone number is experiencing';
strtemp +='technical difficulties due to the power outage caused by the severe weather. This does not affect the web site or any other system functions.</p>';
strtemp +='For quickest support response we encourage you to email our technical support at ';
strtemp +='<a href="mailto:support@learninglibrary.com" target="_blank"><A href="mailto:support@learninglibrary.com" target="_blank">support@learninglibrary.com</a>';
strtemp +='</p><br /><br /><br />';
strtemp +='Our   support line will be functional by tomorrow September 16 2008.<br />';
strtemp +='<p>Thank   you,</p>';
strtemp +='Learning Library Inc.<br /></div>';

//window.open("http://www.learninglibrary.com/power_outage/message1.html","Notice","width=700,height=400,toolbar=0,status=1,scrollbars=1,resizable=1"); 


*/




