// JavaScript Document


function originalBack(i){

if(i==1){document.getElementById("wedd").style.backgroundImage="url(images/weddings.jpg)"}
if(i==3){document.getElementById("birth").style.backgroundImage="url(images/birthday.jpg)"}
if(i==2){document.getElementById("celeb").style.backgroundImage="url(images/celebrations.jpg)"}

if(i==5){document.getElementById("b").style.backgroundImage="url(menu_butt.png)"}
if(i==6){document.getElementById("c").style.backgroundImage="url(menu_butt.png)"}
if(i==7){document.getElementById("d").style.backgroundImage="url(menu_butt.png)"}
if(i==8){document.getElementById("e").style.backgroundImage="url(menu_butt.png)"}
if(i==9){document.getElementById("f").style.backgroundImage="url(menu_butt.png)"}
}

function higlightBack(i){

if(i==1){document.getElementById("wedd").style.backgroundImage="url(images/weddingsOver.jpg)"}
if(i==3){document.getElementById("birth").style.backgroundImage="url(images/birthdayOver.jpg)"}
if(i==2){document.getElementById("celeb").style.backgroundImage="url(images/celebrationsOver.jpg)"}

if(i==5){document.getElementById("b").style.backgroundImage="url(menu_hover.png)"}
if(i==6){document.getElementById("c").style.backgroundImage="url(menu_hover.png)"}
if(i==7){document.getElementById("d").style.backgroundImage="url(menu_hover.png)"}
if(i==8){document.getElementById("e").style.backgroundImage="url(menu_hover.png)"}
if(i==9){document.getElementById("f").style.backgroundImage="url(menu_hover.png)"}
}
function start(){
content=document.getElementById("body").innerHTML;

}

function change()
{

document.getElementById("body").innerHTML="<b>fava<br/>frfrf</b>"
}

function resetIT(){
document.getElementById("body").innerHTML=content;
}


//Gallery!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
function galleryPhoto(InTD,n){
	var urlPhoto=(InTD +".jpg") ;
	
	document.getElementById("bodyGallery").style.backgroundImage="url(scaled_pics/"+urlPhoto+")";
	document.getElementById("bodyGallery").nextSibling.innerHTML=""+n+""
}

function pointer(t){t.style.cursor="pointer"}
function border(cell){cell.style.backgroundColor="pink"} 
function reseta(cella){cella.style.backgroundColor="white"} 

function star(x,y,z){document.getElementById(x).style.visibility="visible";
document.getElementById(z).style.visibility="hidden";
document.getElementById(y).style.visibility="hidden";

}


function goto(page){
	document.location.href = page + ".html";

	}
	




