﻿function jsMouseBul(a)
{
    var IE = document.all?true:false
    // If NS -- that is, !IE -- then set up for mouse capture
    if (!IE) document.captureEvents(Event.MOUSEMOVE)   
    
    var tempX = 0
    var tempY = 0
      if (IE) { // grab the x-y pos.s if browser is IE
        tempX = (event.clientX + document.body.scrollLeft) + document.documentElement.scrollLeft
        tempY = (event.clientY + document.body.scrollTop) + document.documentElement.scrollTop
      } else {  // grab the x-y pos.s if browser is NS
        tempX = e.pageX
        tempY = e.pageY
      }  
      // catch possible negative values in NS4
      if (tempX < 0){tempX = 0}
      if (tempY < 0){tempY = 0}  
      // show the position values in the form named Show
      // in the text fields named MouseX and MouseY
     
    
      if(a == 'x'){ return tempX; }
      if(a == 'y'){ return tempY; }     

}

function jsNesneSil(obj)
{
    if (document.getElementById(obj) != null )
    {
        var olddiv = document.getElementById(obj);
        document.body.removeChild(olddiv);
    }
}


function jsClassDegistir(SuankiClass, YeniClass) {
   var PageTags = new Array();
   PageTags = document.getElementsByTagName('*');
   for(i=0;i<PageTags.length;i++) {
      if(PageTags[i].className==SuankiClass) {
         PageTags[i].className=YeniClass;
      }
   }
}


function jsTanitimVideo()
{

    $get('divVideo').innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="364" height="330" id="video" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="Norbi_video.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="Norbi_video.swf" quality="high" bgcolor="#ffffff" width="364" height="330" name="Norbi_video" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'

}


function jsTanitimVideoSil()
{

    $get('divVideo').innerHTML = ''

}
