var params =  	
{	
   TitleBarHTML : '&nbsp;<img src=\'images/arrow.gif\' width=6 height=6 border=0>&nbsp;&nbsp;Drag window!',
   TitleBarHeight : 16,
   ResizeBoxHeight : 15,
   ResizeBoxSrc : 'images/resize.gif',
   ResizeBoxWidth : 15,
   CloseBoxHeight : 11, 
   CloseBoxSrc : 'images/closebox.gif', 
   CloseBoxWidth : 11,
   BorderColor : '#E15417', 
   BorderWidth : 0, 
   ContentColor : '#F69002', 
   ContentInactiveColor : '#F69002', 
   ContentHTML : '<table width="400" height="600"><tr><td height="20"></td><td align="center" valign="middle"><a href="JavaScript:photo.CloseWindow()"><img src= \"media/images/test.jpg\" border=0></a></td></tr></table>', 
   ContentLeftBorderColor : '#F69002', 
   ContentPadding : 0, 
   Height : 640, 
   InnerBorderColor : '#F69002', 
   Left : 26, 
   OuterBorderColor : '#F69002', 
   OuterBorderStyle : 'solid', 
   OuterBorderWidth : 0, 
   Shadow : false, 
   StatusBarText : 'Resize window &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', 
   StatusBarAlign : 'right', 
   StatusBarHeight : 16,
   StatusColor : '#E15417', 
   TitleBarText : 'Close Image &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', 
   TitleBarAlign : 'left', 
   TitleColor : '#E15417', 
   Top : 355, 
   Width : 420, 
   TitleFontFamily : 'tahoma', 
   TitleFontWeight : 'normal',
   TitleFontSize : '10',
   ContentFontFamily : 'tahoma', 
   ContentFontColor : 'white', 
   StatusFontFamily : 'tahoma', 
   StatusFontWeight : 'normal', 
   StatusFontColor : 'white', 
   Id  : 'photo'
} 
var photo = new FerantDHTMLWindow(params); 

function getx(){
 	
	var elem = document.getElementById('_801f_Title_');
	if(elem!=null){
		xPos = elem.offsetLeft;
		tempEl = elem.offsetParent;
		while (tempEl != null) {
			xPos += tempEl.offsetLeft;
			tempEl = tempEl.offsetParent;
		}
		if(xPos==0)
			xPos=26;
		return xPos;
	}else{
		return 26;
	}
}
 
function gety(){
	var elem = document.getElementById('_801f_Title_');
	if(elem !=null){
		yPos = elem.offsetTop;
		tempEl = elem.offsetParent;
		while (tempEl != null) {
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}
		if(yPos==0)
			yPos=355;
		return yPos;
	}else{
		return 355;
	}
}
