// JavaScript Document

function openmail(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}
function sendToJavaScript(value) {
	
	for(u=0; u<5; u++) {
		MM_changeProp('btn'+u,'','display','none','DIV');
		}
	for(i=0; i<7; i++) {
		MM_changeProp('sub'+i,'','display','none','DIV');
		document.getElementById("button"+i).className = "normal";
		}
	MM_changeProp(value,'','display','block','DIV');
	//MM_effectAppearFade(value, 1000, 0, 100, false);
}
function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
         }
     }
/*
function sendToFlash(obj) {
	for(i=0; i<7; i++) {
		document.getElementById("button"+i).className = "normal";
	}
	document.getElementById(obj).className = "pressed";
	thisMovie("maiestasflashnavi").sendToFlash();
}
*/
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

