

function kapat()
 {
 	 self.close();
 }

////////////////////////// SCRIPT 1 ///////////////////////////

if (document.images)
   {	 
   	 p1on= new Image(327,46);
     p1on.src="images\\dsn_03_02.gif";  

     p1off= new Image(327,46);
     p1off.src="images\\dsn_03_01.gif";
	 
	 
	 p2on= new Image(219,68);
     p2on.src="images\\dsn_04_02.gif";  

     p2off= new Image(219,68);
     p2off.src="images\\dsn_04_01.gif";
	 
   }

function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }
 

////////////////////////// SCRIPT 2 ///////////////////////////

if (window.Event) // Only Netscape will have the CAPITAL E.
  document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
	event.cancelBubble = true
	event.returnValue = false;

	return false;
}

function norightclick(e)	// This function is used by all others
{
	if (window.Event)	// again, IE or NAV?
	{
		if (e.which == 2 || e.which == 3)
			return false;
	}
	else
		if (event.button == 2 || event.button == 3)
		{
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
	
}

document.oncontextmenu = nocontextmenu;		// for IE5+
document.onmousedown = norightclick;		// for all others



////////////////////////// SCRIPT 3 (No Selecting) ///////////////////////////


function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"


