function menu_nav(ele) {
alert('mnu_nav');
alert(typeof(ele));
}

function page_init() {
	var s=document.title; var y=s.indexOf(' -');
	if (y>0) s=s.substr(0,y);
	getEle('pagetitle').innerHTML=s;
	if (s.toLowerCase()=='accommodation') accom_load();
}

function runningInGr8stuff() {
	try {
		if (parent.location.href==location.href) { return false; } else { return true; }
	} catch(err) { return false; }
}

function frameResize(the_frame) {
 try {
  //find the height & width of the internal page
  var the_height=document.getElementById(the_frame).contentWindow.document.body.scrollHeight;
//  var the_width=document.getElementById(the_frame).contentWindow.document.body.scrollWidth;

  //change the height & width of the iframe
  document.getElementById(the_frame).height=the_height;
//  document.getElementById(the_frame).width=the_width;
 } catch(err) { document.getElementById(the_frame).height='800px'; }
}

document.getElementsByClassName = function(className){
    var nodes = document.getElementsByTagName('*');
    var matches = new Array();
    for(i=0;i<nodes.length;i++){
        var tmp = nodes[i].getAttribute('class') || nodes[i].getAttribute('className');
        if(tmp == className) matches[matches.length] = nodes[i];
    }
    return matches;
}

