/**
* 
* Random pictures presentation
*
**/

pic_width=150;
pic_height=150;
border_size=0;
alignment=1;
if (document.images)
{
pic1= new Image(pic_width,pic_height);
pic1.src="photos150/IMG_0255.JPG"; pic2= new Image(pic_width,pic_height);
pic2.src="photos150/IMG_0262.JPG"; pic3= new Image(pic_width,pic_height);
pic3.src="photos150/IMG_0404.JPG"; pic4= new Image(pic_width,pic_height);
pic4.src="photos150/IMG_0453.JPG"; pic5= new Image(pic_width,pic_height);
pic5.src="photos150/IMG_1055.JPG"; pic6= new Image(pic_width,pic_height);
pic6.src="photos150/IMG_1198.JPG"; pic7= new Image(pic_width,pic_height);
pic7.src="photos150/IMG_1350.JPG";
pic8= new Image(pic_width,pic_height);
pic8.src="photos150/IMG_1000.JPG";
}
if (alignment==1)
{
cent_it="<CENTER>";
cent_it2="<\/CENTER>";
}
else
{
cent_it="";
cent_it2="";
}
function get_random(maxNum)
{
if (Math.random && Math.round)
{
var ranNum= Math.round(Math.random()*(maxNum-1));
ranNum+=1;
return ranNum;
}
else
{
today= new Date();
hours= today.getHours();
mins= today.getMinutes();
secn= today.getSeconds();
if (hours==19)
hours=18;
var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
return ranNum;
}
}
function get_Image()
{
if (document.images)
{
var choose_one= get_random(8);
choose_one--;
var pics= new Array(8);
pics[0]=pic1.src;
pics[1]=pic2.src;
pics[2]=pic3.src;
pics[3]=pic4.src;
pics[4]=pic5.src; pics[5]=pic6.src; pics[6]=pic7.src; pics[7]=pic8.src; document.write(cent_it+"<IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'>"+cent_it2);
}
}


/**
* 
* Reveal Text
*
**/

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


/**
* 
* Photo popup
*
**/

function popup(mylink, windowname, potrait)
{
window.focus;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
if (potrait == 'pot')
window.open(href, windowname, 'width=400,height=560,left=100,top=100,scrollbars=no,dependent=yes');
else
window.open(href, windowname, 'width=500,height=450,left=100,top=100,scrollbars=no,dependent=yes');
return false;
}
