var currentArticlePhoto = 0;
function previousArticlePhoto(paginationType) {
var showPhoto = $(“#ArticlePhoto_” + (currentPhotoID – 1));
var hidePhoto = $(“#ArticlePhoto_” + currentPhotoID);
if (showPhoto.length != 0 && hidePhoto.length != 0) {
showPhoto.removeAttr(“style”)
.attr(“style”, “display:inline;”);
hidePhoto.removeAttr(“style”)
.attr(“style”, “display:none;”);
if (paginationType == “Numbers”) {
var selectNumber = $(“#ArticlePhoto_Number_” + (currentPhotoID – 1));
var unselectNumber = $(“#ArticlePhoto_Number_” + currentPhotoID);
if (selectNumber != null && unselectNumber != null) {
selectNumber.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_SelectedNumber”);
unselectNumber.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_UnselectedNumber”);
}
}
else {
var selectDot = $(“#ArticlePhoto_Dot_” + (currentPhotoID – 1));
var unselectDot = $(“#ArticlePhoto_Dot_” + currentPhotoID);
if (selectDot != null && unselectDot != null) {
selectDot.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_SelectedDot”);
unselectDot.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_UnselectedDot”);
}
}
currentPhotoID = currentPhotoID – 1;
}
}
function changeArticlePhoto(photoID, paginationType) {
if (photoID != currentPhotoID) {
var showPhoto = $(“#ArticlePhoto_” + photoID);
var hidePhoto = $(“#ArticlePhoto_” + currentPhotoID);
if (showPhoto != null && hidePhoto != null) {
showPhoto.removeAttr(“style”)
.attr(“style”, “display:inline;”);
hidePhoto.removeAttr(“style”)
.attr(“style”, “display:none;”);
}
if (paginationType == “Numbers”) {
var selectNumber = $(“#ArticlePhoto_Number_” + photoID);
var unselectNumber = $(“#ArticlePhoto_Number_” + currentPhotoID);
if (selectNumber != null && unselectNumber != null) {
selectNumber.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_SelectedNumber”);
unselectNumber.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_UnselectedNumber”);
}
}
else {
var selectDot = $(“#ArticlePhoto_Dot_” + photoID);
var unselectDot = $(“#ArticlePhoto_Dot_” + currentPhotoID);
if (selectDot != null && unselectDot != null) {
selectDot.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_SelectedDot”);
unselectDot.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_UnselectedDot”);
}
}
currentPhotoID = photoID;
}
}
function nextArticlePhoto(paginationType) {
var showPhoto = $(“#ArticlePhoto_” + (currentPhotoID + 1));
var hidePhoto = $(“#ArticlePhoto_” + currentPhotoID);
if (showPhoto.length != 0 && hidePhoto.length != 0) {
showPhoto.removeAttr(“style”)
.attr(“style”, “display:inline;”);
hidePhoto.removeAttr(“style”)
.attr(“style”, “display:none;”);
if (paginationType == “Numbers”) {
var selectNumber = $(“#ArticlePhoto_Number_” + (currentPhotoID + 1));
var unselectNumber = $(“#ArticlePhoto_Number_” + currentPhotoID);
if (selectNumber != null && unselectNumber != null) {
selectNumber.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_SelectedNumber”);
unselectNumber.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_UnselectedNumber”);
}
}
else {
var selectDot = $(“#ArticlePhoto_Dot_” + (currentPhotoID + 1));
var unselectDot = $(“#ArticlePhoto_Dot_” + currentPhotoID);
if (selectDot != null && unselectDot != null) {
selectDot.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_SelectedDot”);
unselectDot.removeAttr(“class”)
.attr(“class”, “ArticlePhotos_UnselectedDot”);
}
}
currentPhotoID = currentPhotoID + 1;
}
}
function previousRelatedPhotoGalleryPhoto() {
currentArticlePhoto = currentArticlePhoto – 1;
if (currentArticlePhoto == 0) {
$(“#relatedPhotoGalleryLeftArrow”).hide();
}
else {
$(“#relatedPhotoGalleryLeftArrow”).show();
}
$(“#relatedPhotoGalleryRightArrow”).show();
if ($(“#articlePhoto” + currentArticlePhoto) != null) {
photoInfo = $(“#articlePhoto” + currentArticlePhoto).html();
$(“#pnlScrollPhotos”).attr(“title”, returnRelatedPhotoGalleryVariable(photoInfo, 4));
$(“#imgRelatedPhotoGalleryPhoto”).attr(“src”, returnRelatedPhotoGalleryVariable(photoInfo, 1)).css(“width”, returnRelatedPhotoGalleryVariable(photoInfo, 2) + “px”).css(“height”, returnRelatedPhotoGalleryVariable(photoInfo, 3) + “px”);
$(“#lblScrollPhotosCaption”).html(returnRelatedPhotoGalleryVariable(photoInfo, 5));
$(“#lblScrollPhotosByline”).html(returnRelatedPhotoGalleryVariable(photoInfo, 6));
}
}
function nextRelatedPhotoGalleryPhoto() {
currentArticlePhoto = currentArticlePhoto + 1;
$(“#relatedPhotoGalleryLeftArrow”).show();
if ((currentArticlePhoto + 1) == photoCount) {
$(“#relatedPhotoGalleryRightArrow”).hide();
}
else {
$(“#relatedPhotoGalleryRightArrow”).show();
}
if ($(“#articlePhoto” + currentArticlePhoto) != null) {
photoInfo = $(“#articlePhoto” + currentArticlePhoto).html();
$(“#pnlScrollPhotos”).attr(“title”, returnRelatedPhotoGalleryVariable(photoInfo, 4));
$(“#imgRelatedPhotoGalleryPhoto”).attr(“src”, returnRelatedPhotoGalleryVariable(photoInfo, 1)).css(“width”, returnRelatedPhotoGalleryVariable(photoInfo, 2) + “px”).css(“height”, returnRelatedPhotoGalleryVariable(photoInfo, 3) + “px”);
$(“#lblScrollPhotosCaption”).html(returnRelatedPhotoGalleryVariable(photoInfo, 5));
$(“#lblScrollPhotosByline”).html(returnRelatedPhotoGalleryVariable(photoInfo, 6));
}
}
function returnRelatedPhotoGalleryVariable(photoInfo, variableIndex) {
var variable = “”;
if (photoInfo != null) {
var globalVariablesArray = photoInfo.split(“||”);
variable = globalVariablesArray[variableIndex];
}
return variable;
}
function RelatedAudio_ShowFullCaption(MoreID, CaptionID, FullCaption, ShortCaption) {
var Caption = document.getElementById(CaptionID);
if (Caption != null) {
Caption.innerHTML = FullCaption;
}
var More = document.getElementById(MoreID);
if (More != null) {
More.removeAttribute(“style”);
More.setAttribute(“style”, “display:none;”);
}
}
**Queensland Fire and Emergency Services (QFES) crews are no longer required on scene at this incident.**