//slide pra testar
var SlideShowSpeed = 15000;
var CrossFadeDuration = 3;

var Picture = new Array();
var Caption = new Array();

Picture[1] = 'capa/posgraduacao.jpg';
Picture[2] = 'capa/residencia_medicina.jpg';
//Picture[3] = 'capa/posgraduacao.jpg';

Caption[1] = "Pós Graduação FAT";
Caption[2] = "Residência em Fonoaudiologia Hospitalar";
//Caption[3] = "This is the third caption.";

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);
}

///pra testar mudar imagens
var photos=new Array()
var which=0

/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="capa/iiiJornadaacademica.jpg"
photos[1]="capa/semanadolivro.jpg"
photos[2]="capa/posgraduacao.jpg"



function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]}}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]}
else window.status='End of gallery'}


///Zoom

function zoom(imagem) {
   document.getElementById('CaptionBox').setAttribute('src', imagem);
}


function flash(file, width, height){
    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='" + width + "' height='" + height + "'>");
    document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='movie' value='" + file + "'>");
    document.write("<param name='quality' value='high'>");
    document.write("<embed wmode='transparent' src='" + file + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed>");
    document.write("</object>");
}
