// JavaScript Document

function gizle(divID)   
{   
		var d = document.getElementById(divID);
		var left = getLeft(divID);
		d.style.display = 'none';    

}
function goster(divID)  {    
	
		var d = document.getElementById(divID);
		d.style.display = 'block';    
		var left = getLeft(divID);

	   if(left>570) {
			geri = left-570
			d.style.left = (-1 * geri);  
			document.getElementById(divID).pixelLeft  = -200;		
		}
}



function getLeft(id) {
		var el=document.getElementById(id).offsetLeft;
		return (el);
}

function getTop(id) {
		var el=document.getElementById(id).offsetTop;
		return(el);
}

function getWidth(id) {
		var el=document.getElementById(id).offsetWidth;
		return(el);
}

function getHeight(id) {
		var el=document.getElementById(id).offsetHeight;
		return(el);
}


function player_yaz(url,img)
{
		var so = new SWFObject("vbplayer.swf","video","400","325","8", "#003399", "wmode");
		so.addParam("scaleMode","noscale");
		so.addParam("align","TL");
		so.addParam("wmode","transparent");
		so.addParam("allowfullscreen","true");																
		so.addParam("quality", "high");					
		so.addParam("allowfullscreen","true");
		so.addParam("allowscriptaccess","true");	
		so.addParam("showfsbutton","true");
		so.addVariable("usefullscreen","true");		
		so.addVariable("displayheight","325");																					
		so.addVariable("file",url);				
		so.addVariable("image",img);
		so.addVariable("autostart","true");	
		so.addVariable("showdigits","true");		
		so.addVariable("frontcolor","0x000066");
		so.addVariable("backcolor","0xCCFFCC");
		so.addVariable("lightcolor","0xEEEEEE");
		so.addVariable("autoscroll","true");
		so.addVariable("autostart","true");
		so.addVariable("bufferlength","10");
		so.addVariable("repeat","list");
		so.addVariable("type","flv");
		so.addVariable("logo","img/player.png");
		so.write("video");
		
}
function renk(othis,blight)
{
	if(blight)
	{
	lastrow = othis;
	lastrowbgcolor = othis.bgColor;
	othis.bgColor = "#F2F2F2";
  }  
  else  
  {
   othis.bgColor=  lastrowbgcolor;
	lastrow = null;
	lastrowbgcolor ="";
	othis.style.color = "";	
  }
  
 return null;
}
