/* MENU NA MENENIE OBRAZKOU KED PREJDE MYS PO NICH */
var aktpage = "";
function roll_over(img_name, img_src)
   {
   if(aktpage != img_name)
   	document.getElementById(img_name).src ="images/"+img_src;
   }

/* MENU NA MENENIE OBRAZKOU KED PREJDE MYS PO NICH */  
var odkazChanged = false; 
function generateOdkaz1() {
	var meno = document.getElementById("meno").value;
	var priezvisko = document.getElementById("priezvisko").value;
	var separator = "-";
	if(meno.length==0 || priezvisko.length==0) separator = "";
	if(!odkazChanged) {
		document.getElementById("odkaz").value = meno + separator + priezvisko;
		var odkaz = document.getElementById("odkaz").value;
		
	}
}

/* MENU NA MENENIE OBRAZKOU KED PREJDE MYS PO NICH */
			hexinput=200  // Initial color value.
			var inc=-1 //increment variable
			
			function fadingtext(){	         	
			if(hexinput>0) {	
			hexinput-=2; // increase color value
			document.getElementById("fade_base").style.color="rgb("+hexinput+","+hexinput+","+hexinput+")"; // Set color value.
			setTimeout("fadingtext()",20);	
			}
			else
			hexinput=200  //reset hex value
			}
	var lastRandom = -1;		
	function changetextfade(){
			var testimonials = Array("<div style=\"padding-top:9px;\">I want to thank everyone. I just found the Memorial Book file of my son. It is Beautiful and made me cry. Thank You all from the bottom of my heart. <br /><span style=\"margin-left:165px;\"><b>- Debbie -</b></span></div>",
															 "<div style=\"padding-top:9px;\">You did a beautiful job on this website. Thanks again and again...That was so touching...God bless you and your family thank you so much.  <br /><span style=\"margin-left:165px;\"><b>- Yvonne -</b></span></div>",
															 "<div style=\"padding-top:3px;\">Thank you so much for making this website. We were able to give our son a tribute for all to enjoy. We can keep it forever as he is forever in our hearts... God bless you! <br /><span style=\"margin-left:175px;\"><b>- Mark -</b></span></div>",
															 "<div style=\"padding-top:3px;\">The website is wonderful. I have had so many compliments on it. It is so nice to be able to keep the memory of my Mom. I am so glad that I found this website. <br /><span style=\"margin-left:170px;\"><b>- Linda -</b></span></div>",
															 "<div style=\"padding-top:3px;\">I have to admit, this is best service I have used, ever.It is very useful internet service for somebody like me who is not very computer literate. Thank You... I can say no more<br /><span style=\"margin-left:165px;\"><b>- Dorothy -</b></span></div>",
															 "<div style=\"padding-top:0px;\">I would like to thank to all who made this website possible and please continue to provide this service to all  who have lost somebody and need an outlet to praise their loved ones. Thank you very much. <br /><span style=\"margin-left:165px;\"><b>- Tiffany -</b></span></div>",
															 "<div style=\"padding-top:0px;\">Thanks so much for providing us with THE best place to honor our lost loved ones.  Your support systems and communication are just wonderful. I commend your attention to customer service. <br /><span style=\"margin-left:165px;\"><b>- Lisa -</b></span></div>");
			var index = lastRandom;
			while(index == lastRandom || testimonials[index] == "undefined" || testimonials[index] == null)
				index = Math.floor(Math.random() * testimonials.length -1);
				
			lastRandom = index;
			document.getElementById("fade_base").innerHTML=testimonials[index];

/*
			if (!document.getElementById) return
			inc++
			if (inc==0){
			document.getElementById("fade_base").innerHTML=
			}
			else if (inc==1){
			document.getElementById("fade_base").innerHTML=
			}
			else if (inc==2){
			document.getElementById("fade_base").innerHTML=
			}
			else if (inc==3){
			document.getElementById("fade_base").innerHTML=
			}
			else if (inc==4){
			document.getElementById("fade_base").innerHTML=
			}
			else{
			document.getElementById("fade_base").innerHTML=
			inc=-1
			}
			*/
			
			fadingtext()
			setTimeout("changetextfade()",17000)
	}