<!--

var title = 'Fix-Yachting';
var sw = screen.availWidth;
var sh = screen.availHeight;

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore2() {
	var i,x,a=MM_swapImgRestore2.arguments; for(i=0;a&&i<(a.length)&&((x=MM_findObj(a[i]))!=null);i++) x.src=x.oSrc;
	MM_swapImgRestore();
}

function s(text) {
	window.status = text;
	return true;
}

function pictshow(file, width, height, name)
{
	var scrollbars = 0;
	var xbig = (sw < width) ? 1 : 0;
	var ybig = (sh < height) ? 1 : 0;
	if (xbig) {
		width = sw - 20;
		if (!ybig) { height += 20; }
		scrollbars = 1;
	}
	if (ybig) {
		height = sh - 40;
		if (!xbig) { width += 20; }
		scrollbars = 1;
	}
//	width += 40;
//	height += 60;
	var xPos = (sw / 2) - (width / 2) - 5;
	var yPos = (sh / 2) - (height / 2) - 10;

//	alert(sw + "\n" + sh + "\n" + width + "\n" + height + "\n" + xPos + "\n" + yPos);
	picture = window.open('',name,'top='+yPos+',left='+xPos+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scrollbars+',resizable=0,width='+width+',height='+height);
	picture.document.open();
	picture.document.write('<html><head><title>' + title + '</title></head><body bgcolor="#214472" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	picture.document.write('<center><a href="javascript:window.close();"><img src="'+file+'" border="0" alt="Bezár" style="border: 1px black solid;"></a></center>');
	picture.document.write('</body></html>');
	picture.document.close();
}

function popup(file, width, height, name)
{
	var xPos = (sw / 2) - (width / 2);
	var yPos = (sh / 2) - (height / 2) - 10;
	var wh = 'width='+width+',height='+height;

	window.open(file, name, 'top='+yPos+',left='+xPos+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,'+wh);
}
function popupNewsletter (lang) {
	popup ('http://www.fix-yachting.hu/newsletter.php?lang='+lang,350,350,'wNewsletter');	
}

function getObj(name) {
	if (document.getElementById) {
		return document.getElementById(name);
	} else if (document.all) {
		return document.all[name];
	} else if (document.layers) {
		return document.layers[name];
	}
	else return false;
} 											 


/*
function activateMenu (nav) {
    // currentStyle restricts the Javascript to IE only
	if (document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        // Get all the list items within the menu 
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
           // If the LI has another menu level
            if(lis[i].lastChild.tagName=="UL"){
                // assign the function to the LI
             	lis[i].onmouseover=function() {	
                   // display the inner menu
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {   
				   if (this.id!="selected") {
                   	this.lastChild.style.display="none";
				   }
                }
            }
        }
    }
} 
*/

var vnav_arr = Array();

function vnav_click (objid) {
	var obj = getObj(objid);
	
	for (e in vnav_arr) {
		m = vnav_arr[e];
		o_m = getObj(m);
		if (m != objid) {			
			if (o_m) {
				var lis=o_m.getElementsByTagName("UL");  
				for (i=0; i<lis.length; i++) {
				  if ( lis[i] ) lis[i].style.display="none";
				}
			}
		} else {
			if (o_m) {
				var lis=o_m.getElementsByTagName("UL");  
				for (i=0; i<lis.length; i++) {
				  if ( lis[i] ) lis[i].style.display="block";
				}
			}			
		}
	}
	
	if (  obj.className.match(new RegExp(" selected"))  ) {
		obj.className = obj.className.replace(new RegExp(" selected\\b"), ""); 		
	} else {
		obj.className += " selected";
	} 
}
/*
function activateMenu (nav) {
	var navroot = getObj(nav);
	if (navroot) {
        // Get all the list items within the menu 
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
           // If the LI has another menu level
            if(lis[i].lastChild.tagName=="UL"){
                // assign the function to the LI
             	lis[i].onclick=function() {	
                   // display the inner menu
				   	if (this.id=="selected") {
                   		this.lastChild.style.display="none";
				   	} else {
						this.lastChild.style.display="block";
					}
                }
            }
        }//for
    }
}// 


window.onload= function(){
    if (getObj('nav')) { activateMenu('nav'); }
    if (getObj('vertnav')) { activateMenu('vertnav'); }
} 
*/

-->