activateMenu = function(nav) {
	
	
    /* currentStyle restricts the Javascript to IE only */
	if (document.all && 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() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
  }
	
	
}

//document.onkeypress=keypress;
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('nav'); 
		//var t = setTimeout('res()', 20);
   // activateMenu('vertnav'); 
	 
	 
}


function res()
{
	if (document.getElementById("products"))
	{
		var v = document.getElementById("products");
		
	 if (v != 'null' || v != 'undefinied')
	 {
			//v = document.getElementById("products")
			v.style.height = v.offsetHeight;
			//var t = setTimeout(true, 500);
			//alert(v.style.height);
	 }
	}
}



function writeFlash(id, path, w, h)
{
	//alert(path);
	if (!w) w = 1000;
	if (!h) h = 283;
	document.getElementById(id).innerHTML = "<object type='application/x-shockwave-flash' data='" + path + "'  width='"+w+"' height='"+h+"'><param name='movie'  value='" + path + "' /><param name='wmode' value='transparent' /></object>";
	var t = setTimeout('res()', 200);
}



function check(f)
{
	if (f.anketa_mail.value == '')
	{
		alert(f.mail_err.value);
		return false
	}
	else
		return true;
}



//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="2007 Fantastico Mebel Ltd. All Rights Reserved. ";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


//disable print screen
/*
function do_err()
{
    return true
}
onerror=do_err;

function no_cp()
{
    clipboardData.clearData();setTimeout("no_cp()",100)
}
no_cp();



function atlpdp1()
    {
        for(wi=0;wi<document.all.length;wi++)
            {
                if(document.all[wi].style.visibility!='hidden')
                    {
                        document.all[wi].style.visibility='hidden';document.all[wi].id='atlpdpst'
                    }
            }
    }
    
function atlpdp2()
    {
        for (wi=0;wi<document.all.length;wi++)
            {
                if(document.all[wi].id=='atlpdpst')
                    {
                        document.all[wi].style.visibility=''
                    }
            }
    }
window.onbeforeprint=atlpdp1;window.onafterprint=atlpdp2;
*/