// JavaScript Document

   if (document.images) { 

   			// top menu

           profile_on = new Image();

           profile_on.src = "images/menu_profile_on.gif";

            profile_off = new Image();

            profile_off.src = "images/menu_profile_off.gif";

            training_on = new Image();

            training_on.src = "images/menu_training_on.gif";

            training_off = new Image();

            training_off.src = "images/menu_training_off.gif";

            ship_on = new Image();

            ship_on.src = "images/menu_ship_on.gif";

            ship_off = new Image();

            ship_off.src = "images/menu_ship_off.gif";

            registration_on = new Image();

            registration_on.src = "images/menu_registration_on.gif";

            registration_off = new Image();

            registration_off.src = "images/menu_registration_off.gif";

            news_on = new Image();

            news_on.src = "images/menu_news_on.gif";

            news_off = new Image();

            news_off.src = "images/menu_news_off.gif";
			
   }


   function changeImages() {

      if (document.images) {

         for (var i=0; i<changeImages.arguments.length; i+=2) {

            document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");

         }

      }

   }



<!--

function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_showHideLayers() { //v3.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }

    obj.visibility=v; }

}

//-->



// Disable Copy Image//

//var clickmessage="copyright 2003 -  Kloverhuset.com" //แก้ไขข้อความตรงนี้

//function disableclick(e) {

//if (document.all) {

//if (event.button==2||event.button==3) {

//if (event.srcElement.tagName=="IMG"){

//alert(clickmessage);

//return false;

//}

//}

//}

//else if (document.layers) {

//if (e.which == 3) {

//alert(clickmessage);

//return false;

//}

//}

//else if (document.getElementById){

//if (e.which==3&&e.target.tagName=="IMG"){

//alert(clickmessage)

//return false

//}

//}

//}

//function associateimages(){

//for(i=0;i<document.images.length;i++)

//document.images[i].onmousedown=disableclick;

//}

//if (document.all)

//document.onmousedown=disableclick

//else if (document.getElementById)

//document.onmouseup=disableclick

//else if (document.layers)

//associateimages()



//Disable select-text script (IE4+, NS6+)- By Andy Scott

//Exclusive permission granted to Dynamic Drive to feature script

//Visit http://www.webhot.tk for this script

//function disableselect(e){

//return false

//}

//function reEnable(){

//return true

//}

//if IE4+

//document.onselectstart=new Function ("return false")

//if NS6

//if (window.sidebar){

//document.onmousedown=disableselect

//document.onclick=reEnable

//}