/*
=========================================================
=========================================================
Javascript Document 
AJAX Library v1
Powered by Dynamic Site Design - ken@dynamicsitedesign.com
=========================================================
=========================================================*/


function action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "500px";
	info_x.style.marginLeft = "-250px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
	shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}
callShutter = action;

function action_parent(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "640px";
	info_x.style.marginLeft = "-320px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
	shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}


function prefs_action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "650px";
	info_x.style.marginLeft = "-325px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
		shutter_x.style.position = 'absolute';
	}
	
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}

function chart_action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "750px";
	info_x.style.marginLeft = "-350px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
		shutter_x.style.position = 'absolute';
		if(document.getElementById('groupList')){
			document.getElementById('groupList').style.overflow='hidden';
			document.getElementById('queueList').style.overflow='hidden';
			document.getElementById('forecastDiv1').style.overflow='hidden';
			document.getElementById('forecastDiv2').style.overflow='hidden';
			document.getElementById('forecastDiv3').style.overflow='hidden';
		}
	}
	
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}
function policy_action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "700px";
	info_x.style.marginLeft = "-350px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
		shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}
callShutter2 = policy_action;

function hideScrollBars(id){
 var divContainer = document.getElementById(id)
 var innerDIVS = divContainer.getElementsByTagName('div')
 innerDIVS.style.overflow='hidden';
}
function showScrollBars(id){
 var divContainer = document.getElementById(id)
 var innerDIVS = divContainer.getElementsByTagName('div')
 innerDIVS.style.overflow='auto'
 }

function editor_action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "1000px";
	info_x.style.marginLeft = "-500px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
	shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}

function preview_iframe_action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "1000px";
	info_x.style.marginLeft = "-500px";
	info_x.style.top = "75px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
	shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}
function changeContactInfo_action(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "800px";
	info_x.style.marginLeft = "-400px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
		shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}
function callShutter_800(url, query) {
    
    info_x = document.getElementById('the_info');
    info_x.style.display = "block";
	info_x.className = "info";
    info_x.style.width = "800px";
	info_x.style.marginLeft = "-400px";
	info_x.style.top = "60px";
	info_x.style.background = "transparent";

    shutter_x = document.getElementById('shutter');
	shutter_x.className = "shutter";	
	
	if (brwsr_userAgent.indexOf("firefox") != -1 && brwsr_userAgent.indexOf('mac') != -1) {
		shutter_x.style.position = 'absolute';
	}
	 
	shutter_x.onclick = hideShutter;
	window.scrollTo(0,0);
	
	if (document.getElementById('bubbleDiv')) { hideBubble('bubbleDiv'); }
	if (document.getElementById('rc_bubbleDiv')) { hideBubble('rc_bubbleDiv'); }
	
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
	} else {
		// IE6, older browsers
		hideSelects();
		this.document.body.style.overflow = 'hidden'
	}
	
	doAjax( url, query, 'displayInteraction', 'GET', '0');
}
