
// E-mail Hiding Function
function mailDisplay(mail,domain) {
	var linktext = [mail] + "&#64;" + [domain];
	document.write("<a href=" + "mail" + "to:" + [mail] + "&#64;" + [domain] + ">" + [linktext] + "</a>")
}




//Functions to show/hide answers in FAQ Section

//keeps track of currently displayed answer 
var current;

function showNext(id){
	

	if (document.getElementById('second_image') == document.getElementById(id)){
		document.getElementById('second_image').style.display = "block";
		document.getElementById('first_image').style.display = "none";
	} else {
		document.getElementById('second_image').style.display = "none";
		document.getElementById('first_image').style.display = "block";
	}
	
}


function show(id){
//shows individual answer



		//if (current == id){
		//{break};	
		//}

		if (document.getElementById(id).style.display == "none") {
			
			if(current){
			document.getElementById(current).style.display = "none";
			}
		
		
		document.getElementById(id).style.display = "block";
		
		} else {
		document.getElementById(id).style.display = "none";
		}
		
		
		
		updateCurrent(id);
	}




function updateCurrent(id){
	current = id;
}


function hideAnswers() {
//hides all answers


		
		var listTags = new Array(); 
		var listTags = document.getElementsByTagName('li');
		var headerTags = new Array();
		var headerTags = document.getElementsByTagName('h2');
		var ddTags = new Array();
		var ddTags = document.getElementsByTagName('dd');
	
		for (i = 0; i < listTags.length; i++) {
			if (listTags[i].className == 'answer') {
				listTags[i].style.display = 'none';
			}
		}
	
		for (i=0; i < headerTags.length; i++){
			if (headerTags[i].className == 'answer'){
				headerTags[i].style.display = 'none';
			}
		}
	
		for (i=0; i < ddTags.length; i++){
			ddTags[i].style.display = 'none';
		}
	
} 


function popVideoWin(url){
window.open(url, '_blank', 'height=360, width=480, top=100, left=100, titlebar=0, scrollbars=0, location=0, status=0, menubar=0,');
}

function popImgWin(url){
openWindow = window.open(url, '_blank', 'height=340, width=560, top=100, left=100, titlebar=0, status=0, scrollbars=0, location=0, statusbar=0, menubar=0,');
//document.getElementById('second_image').style.display = "none";
}

function statusBarMsg(msg){
window.status = msg;
}

function confirmSubmit(){

alert("test");

var msg=confirm("Are you sure you wish to continue?");

/*
	if (msg){
	//return "true";
	alert("true");
	}else{
	//return false;
	alert("false");
	}

*/

}







