// JavaScript Document

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}

var imgw=150;
var imgh=100;
var barcount = 2;
var imgcount = 7;
var c_left = 215;
var c_max_width = 1152;
var c_min_width = 1024;
function ResizePhotoBar()
{
	var width = this.outerWidth - c_left;
	if(width > c_max_width)
	{
		width = c_max_width;
	}
	else if(width < c_min_width)
	{
		width = c_min_width;
	}
	var displaycount = Math.round(width/imgw) -1;
	if(displaycount < imgcount)
	{
		for(i = 0; i < barcount;i++)
		{
			for(imgcount; imgcount >=  displaycount; imgcount--)
			{
				document.getElementById('img_' + i + '_' + imgcount).style.display = 'none';
			}
		}
	}
	else
	{
		for(i = 0; i < barcount;i++)
		{
			for(imgcount; imgcount >=  displaycount; imgcount--)
			{
				document.getElementById('img_' + i + '_' + imgcount).style.display = '';
			}
		}	
	}
}

