function light_window(p)
{
var arrayPageSize = getPageSize(); 
var arrayPageScroll = getPageScroll(); 
$('inner_alpha').innerHTML = '<div id="alpha"></div>'; 
var objOverlay = document.getElementById('alpha'); 
var objBody = document.getElementsByTagName("body").item(0); 

//objBody.style.overflow = 'hidden';
//objOverlay.style.display = 'none'; 

objOverlay.style.position = 'absolute'; 
objOverlay.style.top = '0'; 
objOverlay.style.left = '0'; 
objOverlay.style.zIndex = '90'; 
objOverlay.style.width = '100%'; 
objOverlay.style.height = '3750px'; 
objOverlay.style.display = 'block'; 
HiddenSelects(); 

//alert(arrayPageScroll[1]);

$('box_center').style.width = '100%'; 
$('box_center').style.height = '400px'; 
$('box_center').style.left = '0'; 
$('box_center').style.top = '50px'; 
isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
if (isIE6){$('box_center').style.position = 'absolute'; }
else {$('box_center').style.position = 'fixed';}
$('box_center').style.display = 'block'; 

getInner('box_center',p,'');
}

function close_box(){ 
var objBody = document.getElementsByTagName("body").item(0); 
$('box_center').style.display = 'none'; 
$('box_center').innerHTML = ''; 
$('alpha').style.display = 'none'; 
objBody.style.overflowX = ''; 
objBody.style.overflowY = ''; 
VisibleSelects();
}

function VisibleSelects() {var selectbox = document.getElementsByTagName("SELECT");for(i=0;i<selectbox.length;i++){selectbox[i].style.visibility='visible';}}

function initFirst(){}

function HiddenSelects() { var selectbox = document.getElementsByTagName("SELECT")
for(i=0;i<selectbox.length;i++) { selectbox[i].style.visibility='hidden'
}
}

function getInner(container, file, values){

	new Request.HTML({
		url: file,
		method: 'get',
		onComplete: function(rt,re,rh){$(container).set('html',rh); initFirst();},
		evalScript: true
	}).send(values);	
}

function getPageSize(){ var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = document.body.scrollWidth; yScroll = window.innerHeight + window.scrollMaxY;} else if (document.body.scrollHeight > document.body.offsetHeight){ xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight;} else { xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight;}
var windowWidth, windowHeight; if (self.innerHeight) { windowWidth = self.innerWidth; windowHeight = self.innerHeight;} else if (document.documentElement && document.documentElement.clientHeight) { windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight;} else if (document.body) { windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight;}
if(yScroll < windowHeight){ pageHeight = windowHeight;} else { pageHeight = yScroll;}
if(xScroll < windowWidth){ pageWidth = windowWidth;} else { pageWidth = xScroll;}
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;}

function getPageScroll(){ var yScroll; if (self.pageYOffset) { yScroll = self.pageYOffset;} else if (document.documentElement && document.documentElement.scrollTop){ yScroll = document.documentElement.scrollTop;} else if (document.body) { yScroll = document.body.scrollTop;}
arrayPageScroll = new Array('',yScroll)
return arrayPageScroll;}

function hidden_selects() 
{
isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;	
if (isIE6){$('bebek_sayisi').style.display = 'none';}
}

function visible_selects() 
{
if (isIE6){$('bebek_sayisi').style.display = '';}
}