

function openUp(type,daID){
	if(document.getElementById('activefaq')){
		if(daID==tempid){
			document.getElementById('activefaq').setAttribute("id",type+tempid);
		}else{
		document.getElementById('activefaq').style.display = 'none';
		document.getElementById('activefaq').setAttribute("id",type+tempid);
		openimage=document.getElementById('open'+tempid).src;
		openimage = openimage.replace('minus','plus');
		document.getElementById('open'+tempid).src = openimage;
		}
	}
		if (document.getElementById(type+daID).style.display == '' || document.getElementById(type+daID).style.display == 'none'){
		document.getElementById(type+daID).style.display = 'block';
		openimage=document.getElementById('open'+daID).src;
		openimage = openimage.replace('plus','minus');
		document.getElementById('open'+daID).src = openimage;
		tempid=daID;
		document.getElementById(type+daID).setAttribute("id","activefaq");
		}else{
		openimage=document.getElementById('open'+daID).src;
		openimage = openimage.replace('minus','plus');
		document.getElementById('open'+daID).src = openimage;
		document.getElementById(type+daID).style.display = 'none';	
		}
}

var intCurrentVideo = 0;

function displayVideoInVideoViewer(whichVideo,whichVideoContainer) {
            strYTSource = arrVideos[whichVideo][0];
            strYTVideoID = strYTSource.substring(31);
            document.getElementById(whichVideoContainer).innerHTML = "<p><object width='270' height='215'><param name='movie' value='http://www.youtube.com/v/" + strYTVideoID + "&rel=0'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/" + strYTVideoID + "&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='270' height='215'></embed></object></p>";
            if (document.getElementById("btnVideoHiRes") != undefined) {
                        if (arrVideos[intCurrentVideo][1] != "") {
                                    document.getElementById("btnVideoHiRes").style.display = "block";
                        } else {
                                    document.getElementById("btnVideoHiRes").style.display = "none";
                        }
            }
}

function setCurrentVideo(whichVideo,whichVideoContainer) {

	//reset the current 'li' item
	if (document.getElementById("v_" + intCurrentVideo)) {
		document.getElementById("v_" + intCurrentVideo).className = "";
	}

	//set the video 'div' content to the new video
	intCurrentVideo = whichVideo;

	displayVideoInVideoViewer(whichVideo,whichVideoContainer);
	//set the current 'li' class to 'active'
	if (document.getElementById("v_" + intCurrentVideo)) {
		document.getElementById("v_" + intCurrentVideo).className = "active";
	}
	if (document.getElementById("videoTitle")) {
		document.getElementById("videoTitle").innerHTML = arrVideos[intCurrentVideo][2];
	}
}

function enlargeVideo() {
	if (arrVideos[intCurrentVideo][1] != "") {
		window.open(arrVideos[intCurrentVideo][1]);
	}
}
