// JavaScript Document
function launch(txt,t){
	var centerWidth = (window.screen.width - 800) / 2;
    var centerHeight = (window.screen.height - 520) / 2;
	if(t==1)
	launchWindow=window.open(txt,"Contact","width=400,height=455,top=25,left=50,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")
	else if(t==2)
	launchWindow=window.open(txt,"Newsletter","width=400,height=130,top=25,left=50,resizable=no,scrollbars=no,menubar=no,toolbar=no,status=no,location=no")
	else if(t==3)
	launchWindow=window.open(txt,"Produse","width=800,height=520,top="+centerHeight+",left="+centerWidth+",resizable=no,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no")
	}
	
function start_slideshow(start_frame, end_frame, delay) {
	setTimeout(switch_slides(start_frame,start_frame,end_frame, delay), delay);
}
												
function switch_slides(frame, start_frame, end_frame, delay) {
	return (function() {
	Effect.Fade('slideshow' + frame);
	if (frame == end_frame) { frame = start_frame; } else { frame = frame + 1; }
	setTimeout("Effect.Appear('slideshow" + frame + "');", 500);
	setTimeout(switch_slides(frame, start_frame, end_frame, delay), delay + 600);
	})
}	