BrowserName=navigator.appName;
 BrowserVersion=parseInt(navigator.appVersion);
 if (BrowserName=="Netscape" && BrowserVersion>=3)
  useable="yes";
 else
  useable="yes";
 
buttonfo1=new Button("images/szarurol.png","images/szarurol_on.png");
buttonfo2=new Button("images/term.png","images/term_on.png");
buttonfo3=new Button("images/guest.png","images/guest_on.png");
buttonfo4=new Button("images/gal.png","images/gal_on.png");
buttonfo5=new Button("images/kapcs.png","images/kapcs_on.png");
buttonfo6=new Button("images/news.png","images/news_on.png");
buttonfo7=new Button("images/bem.png","images/bem_on.png");

function Button(norm_src,sel_src) {
 if (useable=="yes") { this.norm=new Image(); this.sel=new Image(); this.norm.src=norm_src; this.sel.src=sel_src; } }
function TurnToSel(ImageName)  {
  if (useable=="yes") { NewSrc=eval(ImageName+".sel.src"); document[ImageName].src=NewSrc; }}
function TurnToNorm(ImageName) {
  if (useable=="yes") { NewSrc=eval(ImageName+".norm.src"); document[ImageName].src=NewSrc; }}

function showpic(fname,x,y)
 {
  nwindow = window.open("","newwin","width="+ x +",height="+ y);
  nwindow.document.open();
  nwindow.document.write("<HTML> <HEAD>");
  nwindow.document.write("<TITLE>Bezár: klikk a képre &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </TITLE>");
  nwindow.document.write("</HEAD>");
  nwindow.document.write("<BODY bgcolor='#FFFFFF' link='white' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' marginheight='0' marginwidth='0'>");
  nwindow.document.write("<table cellpadding='0' cellspacing='0' border='0' width='"+ x +"' height='" + y +"'>");
  nwindow.document.write("<tr><td>");
  nwindow.document.write(" <a href='javascript:close()'><img src='" + fname +"' border='0'> ");
  nwindow.document.write("</a></td></tr>");
  nwindow.document.write("</table></BODY></HTML>");
  nwindow.document.close();
 }
 
var slideShowSpeed = 4000
	var crossFadeDuration = 10
	var Pic = new Array() // don't touch this
		Pic[0] = 'images/slide/1.gif'
		Pic[1] = 'images/slide/2.gif'
		Pic[2] = 'images/slide/3.gif'
		Pic[3] = 'images/slide/4.gif'
		Pic[4] = 'images/slide/5.gif'
		Pic[5] = 'images/slide/6.gif'
	var t
	var j = 0
	var p = Pic.length
	var preLoad = new Array()
	for (i = 0; i < p; i++){
		preLoad[i] = new Image()
		preLoad[i].src = Pic[i]
							}
	function runSlideShow(){
		if (document.all){
			document.images.SlideShow.style.filter="blendTrans(duration=10)"
			document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
			document.images.SlideShow.filters.blendTrans.Apply()      
						}
			document.images.SlideShow.src = preLoad[j].src
		if (document.all){
			document.images.SlideShow.filters.blendTrans.Play()
						}
	j = j + 1
		if (j > (p-1)) j=0
		t = setTimeout('runSlideShow()', slideShowSpeed)
							}
function bookmark(){
    var title="Barta fésű - Balatonalmádi - www.szarumuves.hu"
    var url="http://www.szarumuves.hu"

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }

    else if( document.all ) window.external.AddFavorite( url, title);

}
var t_id = setInterval(animate,20);
var pos=0;
var dir=2;
var len=0;

function animate()
{
var elem = document.getElementById('progress');
if(elem != null) {
if (pos==0) len += dir;
if (len>32 || pos>79) pos += dir;
if (pos>79) len -= dir;
if (pos>79 && len==0) pos=0;
elem.style.left = pos;
elem.style.width = len;
}
}

function remove_loading() {
this.clearInterval(t_id);
var targelem = document.getElementById('loader_container');
targelem.style.display='none';
targelem.style.visibility='hidden';
var t_id = setInterval(animate,60);
}
