/* ============================================================================= */
/* = Index Rotater Hide ======================================================== */
/* ============================================================================= */
$(document).ready(function() {
	
	showRotater();

	$('#newsslider').accessNews({

	});

	$('#newsslider2').accessNews({
		title : "BREAKING NEWS:",
		subtitle:"stories from the internet",
		speed : "slow",
		slideBy : 4,
		slideShowInterval: 5000,
		slideShowDelay: 5000
	});
});

function showRotater() {
	var div = document.getElementById("loadfix");
	div.style.display = 'block';
}
function OpenPopup (c) {
	window.open(c,
	'window',
	'width=500,height=500,scrollbars=yes,status=yes');
}
/* ============================================================================= */
/* = Blogs Tabbed Menu ========================================================= */
/* ============================================================================= */
/* In the following array you have to type the ids for all the DIVs  */
/* containing descriptive text or images you want to navigate through. */
contentDivIds = new Array(
	"menu1",
	"menu2",
	"menu3"
	)
menuItems = new Array( "item1", "item2", "item3")

/* In the functions below, idVar is the id  */
/* of the DIV you want to show or hide. */
/* The first function shows the DIV you picked and hides the others. */

function showOnlyThis(idVar) {
	for (var i=0;i<contentDivIds.length;i++) {
		if (contentDivIds[i] == idVar) {
			toggleVisibility(idVar, 'block')
		}
		else 
			toggleVisibility(contentDivIds[i], 'none')
		}
	}
/* The second function shows or hides individual DIVs. */
/* visibilityVar is "visible" or "hidden". */

function toggleVisibility(idVar, visibilityVar) {
	/* "document.getElementById" is the standard way to specify a DIV. */
	/* This statement just sets the DIV's visibility to "visible" or "hidden": */	
	document.getElementById(idVar).style.display = visibilityVar;
	return true
}
function changeColor1(newColor) {

	var elem = document.getElementById("item1");
	elem.style.backgroundColor = newColor;
	elem.style.borderBottomColor = 'white';

	var elem = document.getElementById("item2");
	elem.style.backgroundColor = "#ccc";
	elem.style.borderBottomColor = '#ccc';

	var elem = document.getElementById("item3");
	elem.style.backgroundColor = "#ccc";
	elem.style.borderBottomColor = '#ccc';
}
function changeColor2(newColor) {

	var elem = document.getElementById("item2");
	elem.style.backgroundColor = newColor;
	elem.style.borderBottomColor = 'white';

	var elem = document.getElementById("item1");
	elem.style.backgroundColor = "#ccc";
	elem.style.borderBottomColor = '#ccc';

	var elem = document.getElementById("item3");
	elem.style.backgroundColor = "#ccc";
	elem.style.borderBottomColor = '#ccc';	
}
function changeColor3(newColor) {

	var elem = document.getElementById("item3");
	elem.style.backgroundColor = newColor;
	elem.style.borderBottomColor = 'white';

	var elem = document.getElementById("item1");
	elem.style.backgroundColor = "#ccc";
	elem.style.borderBottomColor = '#ccc';

	var elem = document.getElementById("item2");
	elem.style.backgroundColor = "#ccc";	
	elem.style.borderBottomColor = '#ccc';
}
/* ============================================================================= */
/* ============================================================================= */
