var dhtmlwindow={
ajaxbustcache: true,
minimizeorder: 0,
tobjects: [],
init:function(t){
	var domwindow=document.createElement("div")
	domwindow.id=t
	domwindow.className="dhtmlwindow"
	var domwindowdata=''
	domwindowdata='<div class="drag-handle" style="height:0px;overflow:hidden"><div class="drag-controls"></div>   '
	domwindowdata+='</div>'
	domwindowdata+='<div id="drag-contentarea" class="drag-contentarea" align="" style="background-image:url(http://games-online-reviews.com/ace/images/loading.gif);background-repeat:no-repeat;background-position:center;z-index:200;background-color:#ccccccc;padding-bottom:0px"></div>'
	domwindowdata+='<div class="drag-statusarea"><div class="drag-resizearea"  top right no-repeat;">&nbsp;</div></div> '
	domwindowdata+='</div>'
	domwindow.innerHTML=domwindowdata
	document.getElementById("dhtmlwindowholder").appendChild(domwindow)
	this.zIndexvalue=(this.zIndexvalue)? this.zIndexvalue+1 : 100
	var t=document.getElementById(t)
	var divs=t.getElementsByTagName("div")
	for (var i=0; i<divs.length; i++){ 
		if (/drag-/.test(divs[i].className))
			t[divs[i].className.replace(/drag-/, "")]=divs[i] 
	}
	t.style.zIndex=this.zIndexvalue 
	t.handle._parent=t 
	t.resizearea._parent=t 
	t.controls._parent=t 
	t.onclose=function(){
		return true;} 
	t.onmousedown=function(){dhtmlwindow.zIndexvalue++; this.style.zIndex=dhtmlwindow.zIndexvalue}
	t.handle.onmousedown=dhtmlwindow.setupdrag 
	t.resizearea.onmousedown=dhtmlwindow.setupdrag 
	t.controls.onclick=dhtmlwindow.enablecontrols
	t.show=function(){dhtmlwindow.show(this)}
	t.hide=function(){dhtmlwindow.close(this)} 
	t.setSize=function(w, h){dhtmlwindow.setSize(this, w, h)} 
	
	t.moveTo=function(x, y){dhtmlwindow.moveTo(this, x, y)}
	t.isResize=function(bol){dhtmlwindow.isResize(this, bol)} 
	t.isScrolling=function(bol){dhtmlwindow.isScrolling(this, bol)} 
	t.load=function(contenttype, contentsource, title){dhtmlwindow.load(this, contenttype, contentsource, title)} 
	this.tobjects[this.tobjects.length]=t
	return t 
},
open:function(t, contenttype, contentsource, title, attr, recalonload){
	var d=dhtmlwindow 
	function getValue(Name){
		var config=new RegExp(Name+"=([^,]+)", "i") 
		return (config.test(attr))? parseInt(RegExp.$1) : 0 
	}
	if (document.getElementById(t)==null) 
		t=this.init(t)
	else
		t=document.getElementById(t)
	t.setSize(getValue(("width")), (getValue("height"))) 
	var xpos=getValue("center")? "middle" : getValue("left") 
	var ypos=getValue("top")? "middle" : getValue("top") 
	t.moveTo(xpos, ypos)
	if (typeof recalonload!="undefined" && recalonload=="recal" && this.scroll_top==0){
		if (window.attachEvent && !window.opera)
		
			this.addEvent(window, function(){
										   setTimeout(function(){t.moveTo(xpos, ypos)}, 400)}, "load")
		else
			this.addEvent(window, function(){
											t.moveTo(xpos, ypos)}, "load")
	}
	t.isResize(getValue("resize")) 
	t.isScrolling(getValue("scrolling"))
	t.load(contenttype, contentsource, title)
	t.style.visibility="visible"
	t.style.display="block"
	t.contentarea.style.display="block"
	return t
},
setSize:function(t, w, h){
	t.style.width=Math.max(parseInt(w), 150)+"px"
	t.contentarea.style.height=Math.max(parseInt(h), 100)+"px"
},
moveTo:function(t, x, y){
	this.getviewpoint()
	t.style.left=(x=="middle")? this.scroll_left+(this.docwidth-t.offsetWidth)/2+"px" : this.scroll_left+parseInt(x)+"px"
	t.style.top=(y=="middle")? this.scroll_top+(this.docheight-t.offsetHeight)/2+"px" : this.scroll_top+parseInt(y)+"px"
},
isResize:function(t, bol){ 
	t.statusarea.style.display=(bol)? "block" : "none"
},
isScrolling:function(t, bol){
	t.contentarea.style.overflow=(bol)? "auto" : "hidden"
},
load:function(t, contenttype, contentsource, title){
	var contenttype=contenttype.toLowerCase()
	if (typeof title!="undefined")
		if (title!=""){
			 var all_t=document.getElementsByName("title_");
		if(document.all)
		{
		 for(i_s=0;i_s<all_t.length;i_s++) {all_t[i_s].innerHTML=title;	 }
		}
		else
		{
		// document.getElementById("title_").innerHTML=title;
		}
		}
		else
		{
			if(document.all && all_t)
			{
			 for(i_s=0;i_s<all_t.length;i_s++) {all_t[i_s].innerHTML="&nbsp; &nbsp;"; }
			}
			else
			{
		//	 document.getElementById("title_").innerHTML="&nbsp; &nbsp;";
		}
		}
	if (contenttype=="div"){
		t.contentarea.innerHTML=document.getElementById(contentsource).innerHTML 
		document.getElementById(contentsource).style.display="none"
	}
	else if (contenttype=="iframe"){
		t.contentarea.style.overflow="hidden"
		if (!t.contentarea.firstChild || t.contentarea.firstChild.tagName!="IFRAME")
			t.contentarea.innerHTML='<iframe  onload=iframeload("_iframe-'+t.id+'","'+t.id+'");   align="middle" frameborder="0" src="" style="padding:10px;margin:0; padding:0; width:100%; height: 100%;" allowtransparency="true"  name="_iframe-'+t.id+'" id="_iframe-'+t.id+'"></iframe>'
			window.frames["_iframe-"+t.id].location.replace(contentsource)
		 	ith=document.getElementById("drag-contentarea").style.height
			
			document.getElementById(["_iframe-"+t.id]).style.visibility="hidden"
}
	t.contentarea.datatype=contenttype 
},
setupdrag:function(e){
	var d=dhtmlwindow  
	var t=this._parent  
	d.etarget=this 
	var e=window.event || e
	d.initmousex=e.clientX  
	d.initmousey=e.clientY
	d.initx=parseInt(t.offsetLeft) 
 	d.inity=parseInt(t.offsetTop)
	d.width=parseInt(t.offsetWidth)
	d.contentheight=parseInt(t.contentarea.offsetHeight)
	if (t.contentarea.datatype=="iframe"){ 
	}
	document.onmousemove=d.getdistance 
	document.onmouseup=function(){
		if (t.contentarea.datatype=="iframe"){ 
			t.contentarea.style.backgroundColor="white"
			t.contentarea.style.visibility="visible"
		}
	d.stop()
	}
	return false
},
getdistance:function(e){
	var d=dhtmlwindow
	var etarget=d.etarget
	var e=window.event || e
	d.distancex=e.clientX-d.initmousex
	d.distancey=e.clientY-d.initmousey
		if (etarget.className=="drag-handle")
		d.move(etarget._parent, e)
	else if (etarget.className=="drag-resizearea") 
		d.resize(etarget._parent, e)
	return false
	return false
},
getviewpoint:function(){
	var ie=document.all && !window.opera
	var domclientWidth=document.documentElement && parseInt(document.documentElement.clientWidth) || 100000 
	this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
	this.scroll_top=(ie)? this.standardbody.scrollTop : window.pageYOffset
	this.scroll_left=(ie)? this.standardbody.scrollLeft : window.pageXOffset
	this.docwidth=(ie)? this.standardbody.clientWidth : (/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth, window.innerWidth-16)
 	this.docheight=(ie)? this.standardbody.clientHeight: window.innerHeight
},
rememberattrs:function(t){ 
	this.getviewpoint()
	t.lastx=parseInt((t.style.left || t.offsetLeft))-dhtmlwindow.scroll_left 
	t.lasty=parseInt((t.style.top || t.offsetTop))-dhtmlwindow.scroll_top
	if (t.lastx==0) {t.lastx=1}
 	t.lastwidth=t.style.width 
},
move:function(t, e){
	var wid_=t.style.width
	var het_=t.contentarea.style.height
	var domclientWidth=document.documentElement && parseInt(document.documentElement.clientWidth) || 100000 
	var docwid_=(document.all)? this.standardbody.clientWidth : (/Safari/i.test(navigator.userAgent))? window.innerWidth : Math.min(domclientWidth, window.innerWidth-16)
	if(dhtmlwindow.distancex+dhtmlwindow.initx<=parseInt(docwid_)-parseInt(wid_)-15)
	{
		t.style.left=dhtmlwindow.distancex+dhtmlwindow.initx+"px"
	}
	else
	{
		t.style.left=parseInt(docwid_)-parseInt(wid_)-15+"px"
	}
	if(dhtmlwindow.distancex+dhtmlwindow.initx<=0)
	{
 		t.style.left=0+"px"
		t.lastx=0
	}
 
	if(dhtmlwindow.distancey+dhtmlwindow.inity<0)
	{
	t.style.top=0+"px"
	}
	else
	{
	t.style.top=dhtmlwindow.distancey+dhtmlwindow.inity+"px"
	}
	var scrl_t=(document.all)? this.standardbody.scrollTop : window.pageYOffset
	var heit_=(document.all)? this.standardbody.clientHeight: window.innerHeight
 	if(dhtmlwindow.distancey+dhtmlwindow.inity +20+ parseInt(het_)>document.body.offsetHeight)
	{
 	 t.style.top=document.body.offsetHeight- parseInt(het_)-20 +"px"
	}
},
resize:function(t, e){
	t.style.width=Math.max(dhtmlwindow.width+dhtmlwindow.distancex, 150)+"px"
	t.contentarea.style.height=Math.max(dhtmlwindow.contentheight+dhtmlwindow.distancey, 100)+"px"
},
restore:function(button, t){
	dhtmlwindow.getviewpoint()
	button.setAttribute("src", dhtmlwindow.imagefiles[0])
	button.setAttribute("title", "Minimize")
	t.state="fullview"
 	t.style.left=parseInt(t.lastx)+dhtmlwindow.scroll_left+"px"
	t.style.top=parseInt(t.lasty)+dhtmlwindow.scroll_top+"px"
	t.style.width=parseInt(t.lastwidth)+"px"
	t.style.display="block"
 	t.contentarea.style.display="block"
	t.statusarea.style.display="none"
},
enablecontrols:function(e){
	var d=dhtmlwindow
	var sourceobj=window.event? window.event.srcElement : e.target
	if (/Close/i.test(sourceobj.getAttribute("title"))) 
		d.close(this._parent)
		testnew()
	return false
},
close:function(t){
	try{
		var closewinbol=t.onclose()
	}
	catch(err){
		var closewinbol=true
 }
	finally{
		if (typeof closewinbol=="undefined"){
			var closewinbol=true
		}
	}
	if (closewinbol){
		if (t.state!="minimized")
			dhtmlwindow.rememberattrs(t)
		t.style.display="none"
	}
	var a=document.getElementsByTagName("Select")
 		for(var i=0;i<a.length;i=i+1)
		{
		a[i].style.display="";
		}
	return closewinbol
},
show:function(t){
	if (t.lastx)  
		dhtmlwindow.restore(t, t)
	else
		t.style.display="block"
	t.state="fullview"
},
stop:function(){
	dhtmlwindow.etarget=null
	document.onmousemove=null
	document.onmouseup=null
},
addEvent:function(target, functionref, tasktype){
	var tasktype=(window.addEventListener)? tasktype : "on"+tasktype
	if (target.addEventListener)
		target.addEventListener(tasktype, functionref, false)
	else if (target.attachEvent)
		target.attachEvent(tasktype, functionref)
},
cleanup:function(){
	for (var i=0; i<dhtmlwindow.tobjects.length; i++){
		dhtmlwindow.tobjects[i].handle._parent=dhtmlwindow.tobjects[i].resizearea._parent=dhtmlwindow.tobjects[i].controls._parent=null
	}
	window.onload=null
}
}
document.write('<div id="dhtmlwindowholder"><span style="display:none">.</span></div>')
window.onunload=dhtmlwindow.cleanup
function iframeload(a,b){  document.getElementById(a).style.visibility='visible';}

