			   
//To enable an announcement, uncomment the function call below and enter the text of the announcement 
//createAnnouncement("The Georgia Department of Corrections (State Offices South) is OPEN today, Thursday, January 13, 2011.  Please exercise caution if you are travelling to any of our GDC facilities."); 					   

function createAnnouncement(annText){
	$(document).ready(function(){ 
		$('#head-georgia').before('<div id="announcement">' + annText + '</div>');
	});
}

//loads external js or css files
function loadext(filename, filetype, media){
	if(filetype=="js"){
		var file = document.createElement("script");
		file.setAttribute("type", "text/javascript");
		file.setAttribute("src", filename);
	} else if (filetype == "css"){
		var file = document.createElement("link");
		file.setAttribute("rel", "stylesheet");
		file.setAttribute("media", media);
		file.setAttribute("type", "text/css");
		file.setAttribute("href", filename);
	}
	document.getElementsByTagName("head")[0].appendChild(file);	
}

//text resize sitewide
function resizeText(){
// Reset Font Size
  var originalFontSize = 12;
  var currentFontSize = 12;
 
  // Increase Font Size
  $(".increaseFont").click(function(){
  	if (currentFontSize<=16){
		currentFontSize = currentFontSize+1.25;
	}
  	$('p').css('font-size', currentFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
	if (currentFontSize >= 10){
		currentFontSize = currentFontSize-1;
	}
  	$('p').css('font-size', currentFontSize);
	return false;
  });
}

//this opens a pop up window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 
