function printversion(path) {

    var width = 700;
    var height = 550;

	var winleft = (screen.width - width) / 2;
	if (winleft < 0) winleft = 0;
	var wintop = (screen.height - height) / 2;
	if (wintop < 0) wintop = 0;

    var parameters = "width="+width+", height="+height+", left="+winleft+", top="+wintop+", toolbar=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes";

    //var file_to_open = '/rooms/?file='+path;

    var file_to_open = path;

	window.open(file_to_open, 'print', parameters);
}


function rowOverEffect(object) {
  if (object.className == 'dataTableRow1') object.className = 'dataTableRowOver1';
  if (object.className == 'dataTableRow2') object.className = 'dataTableRowOver2';
}

function rowOutEffect(object) {
  if (object.className == 'dataTableRowOver1') object.className = 'dataTableRow1';
  if (object.className == 'dataTableRowOver2') object.className = 'dataTableRow2';
}


function show_hide_div(div_id, action) {		//	v. 0.1

	var div_name = div_id;
//	var action = action;

	if (document.getElementById) {
		// this is the way the standards work

//		if(action.length > 0) {
		if(action != '') {

			document.getElementById(div_name).style.display = action;
		}
		else {

			if(document.getElementById(div_name).style.display == "block") {

				document.getElementById(div_name).style.display = "none";
			}
			else {

				document.getElementById(div_name).style.display = "block";
			}
		}
	}
	else if (document.all) {
		// this is the way old msie versions work

		if(action != '') {

			document.getElementById(div_name).style.display = action;
		}
		else {

			if(document.getElementById(div_name).style.display == "block") {

				document.all[div_name].style.display = "none";
			}
			else {
				document.all[div_name].style.display = "block";
			}
		}
	}
	else if (document.layers) {
		// this is the way nn4 works
		if(action != '') {

			document.getElementById(div_name).style.display = action;
		}
		else {
			if(document.getElementById(div_name).style.display == "block") {

				document.layers[div_name].style.display = "none";
			}
			else {
				document.layers[div_name].style.display = "block";
			}
		}
	}
}

function IMG_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.IMG_p) d.IMG_p=new Array();
    var i,j=d.IMG_p.length,a=IMG_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.IMG_p[j]=new Image; d.IMG_p[j++].src=a[i];}}
}

function email_to_friend(action) {

	document.getElementById('email_to_friend').style.display = action;

}