// JavaScript Document



function set_def_menu()
{
	parent.top_f.selected_menu = 'home';
}

function set_cur_menu(curMenu)
{
	parent.top_f.selected_menu = curMenu;
}

function test_ie()
{
	nav = navigator.appName;

	if( nav == "Microsoft Internet Explorer"){	
		alert('IE');
	}else{
		alert('Mozilla');
	}
}

function hide_galery()
{
	parent.document.getElementById('hider').setAttribute('class','div_hide_h');
}

function submit_form(form_id)
{
	document.forms[form_id].submit();
}

function change_menu(id_to_show)
{
	document.getElementById('booking').setAttribute('class','div_menu_h');
	document.getElementById('other').setAttribute('class','div_menu_h');
	document.getElementById('media').setAttribute('class','div_menu_h');
	document.getElementById('fire').setAttribute('class','div_menu_h');
	
	if(id_to_show != 'home')
	{
		document.getElementById(id_to_show).setAttribute('class','div_menu_v');
	}
}

function change_menu_parent()
{
	nav = navigator.appName;

	if( nav == "Microsoft Internet Explorer"){	
		parent.top_f.change_menu('booking');
		//top.document.getElementById('top_f').change_menu('booking');
	}else{
		parent.top_f.change_menu('booking');
	}
}


function bt_over(cur_id,cur_class,cur_state)
{
	if(cur_state == 'over')
	{
		document.getElementById(cur_id).setAttribute('class',cur_class + '_over');
	}
	else
	{
		document.getElementById(cur_id).setAttribute('class',cur_class);
	}
}

function go_url(url)
{
	window.location = url;
}

function go_parent_url(url)
{
	parent.location = url;
}

function go_url_new_window(url)
{
	window.open(url);
}

function change_page(id, mySrc){
	parent.document.getElementById(id).setAttribute('src','/' + mySrc);
}
