﻿
function DisplayPDF(FileName)
{  
	    var url = "Print/" + FileName + ".pdf";
		var newWindow = window.open (url,"SampleWork");
		
		window.focus();
		newWindow.focus();
		newWindow.focus();
		window.blur();
		
}
				
function DisplayPicture(PictureNumber,Folder)
{
	    var y = 0;
		var newWindow;
		var url = Folder + "/Images/" + PictureNumber + ".jpg";
		var newWindow = window.open (url,"Picture","resizable=1");
				
		newWindow.focus();
		newWindow.focus();
	    
}

var SlideShowSpeed = 3700;
var SlideShowSpeed1 = 4200;
var CrossFadeDuration = 3;
var Picture = new Array(); 
var Caption = new Array(); 

Picture[1]  = 'PimP_Animation/1.jpg';
Picture[2]  = 'PimP_Animation/2.jpg';
Picture[3]  = 'PimP_Animation/3.jpg';
Picture[4]  = 'PimP_Animation/4.jpg';
Picture[5]  = 'PimP_Animation/5.jpg';
Picture[6]  = 'PimP_Animation/6.jpg';
Picture[7]  = 'PimP_Animation/7.jpg';
Picture[8]  = 'PimP_Animation/8.jpg';
Picture[9]  = 'PimP_Animation/9.jpg';
Picture[10]  = 'PimP_Animation/10.jpg';
Picture[11]  = 'PimP_Animation/11.jpg';
Picture[12]  = 'PimP_Animation/12.jpg';
Picture[13]  = 'PimP_Animation/13.jpg';
Picture[14]  = 'PimP_Animation/14.jpg';
Picture[15]  = 'PimP_Animation/15.jpg';
Picture[16]  = 'PimP_Animation/16.jpg';
Picture[17]  = 'PimP_Animation/17.jpg';

Caption[1]  = "Hooters' 25<sup>th</sup> anniversary.";
Caption[2]  = "Happy Birthday Ms. Joan";
Caption[3]  = "Mrs. Samuel Greer.";
Caption[4]  = "Emilo returns to Chi-town!";
Caption[5]  = "Munsie & Keith Wedding!";
Caption[6]  = "Yogi & Sam's Wedding";
Caption[7]  = "Hooters' 25<sup>th</sup> anniversary.";
Caption[8]  = "My Brother Kenny<br />I taught him all is moves!";
Caption[9]  = "Who are these aleins<br />trying to abduct Mamma?";
Caption[10]  = "Quita & Tercel.";
Caption[11]  = "Baby Q";
Caption[12]  = "Nia";
Caption[13]  = "Aunt Rachel & Lucy!";
Caption[14]  = "Satchel";
Caption[15]  = "Mr. & Mrs. Samuel Greer.";
Picture[16]  = 'PimP_Animation/16.jpg';
Picture[17]  = 'PimP_Animation/16.jpg';

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}


function runSlideShow(){

if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

