
var putItThere = null; 

var chasm = screen.availWidth;
var mount = screen.availHeight;


var w = 0;
var h = 0;
var divs = "<div style='position: relative; width: 35px; height: 10px; z-index: 2; left: 283px; top: 480px' id=AD_word><a href='http://www.expresscard.org/web/site/technologyshowcase.jsp' target=_blank><img src=pressroom/images/invit_61018_linkb.gif alt='View ExpressCard Technology ShowCase' width=40 height=24 border=0></a></div>"

function deadCenter(w,h,url) {
	putItThere = window.open('','posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
    var ePen ="<html><head><title>Invitation from DataFab System Inc.</title></head>";
        ePen += "<body topmargin=0 leftmargin=0>";
		//ePen += divs;
        ePen += "<div style='position: relative; z-index: 1; left: 0px; top: 0px'><img src='"+url+"' width='100%',height='100%'></div></body></html>";

    var wd = putItThere.document;
    wd.open();
    wd.write(ePen);
    wd.close();
}

function AClose(stime){
    setTimeout("self.close();",stime);
}

function ChangeBrowserSize(iWinWidth, iWinHeight, imgurl) {
	var iReSizeWidth, iReSizeHeight;
	var iBarHeight;
	var isIE;
	iReSizeWidth = iWinWidth;
	iReSizeHeight = iWinHeight;
	thisWin = this.window;
	thisWin.resizeTo(iWinWidth, iWinHeight);
	isIE = (document.all)? true:false;

	if (isIE == true) {
		//IE iReSizeWidth = iWinWidth;
		iReSizeHeight = iWinHeight;
	
		if ((iWinHeight - document.body.scrollHeight) > 25) {
			iBarHeight = iWinHeight - document.body.scrollHeight;
			if (iBarHeight > 25) {
				iReSizeWidth += 12;
			} else {
				iReSizeWidth += 10;
			}
			if (iWinWidth <= 50) {
				iReSizeWidth += (50 - iWinWidth);
			} 
			if (iWinHeight <= 120) {
				iReSizeHeight += iBarHeight + 12 + (120 - iWinHeight);
			} else {
				iReSizeHeight += iBarHeight;
			}
		}
		thisWin.resizeTo(iReSizeWidth, iReSizeHeight);
	} else {
		//NetScape
		if (self.menubar.visible == true) {
			thisWin.resizeTo(iWinWidth,iWinHeight);
			self.scrollbars.visible = false;
			self.menubar.visible = false;
			self.toolbar.visible = false;
			self.locationbar.visible = false;
			self.statusbar.visible = false;
			self.personalbar.visible = false;
		} else {
			thisWin.resizeTo(iWinWidth + 10,iWinHeight + 25);
		}
	}
	thisWin.moveTo((screen.availWidth-iReSizeWidth)/2 ,(screen.availHeight-iReSizeHeight)/2);
    ChangIma(imgurl);
	thisWin.focus();
}
function ChangIma(imgurl) {
   document.write('<html><head><title>Invitation from Datafab System Inc.</title></head><body><frame name="PupWin"><img src="'+imgurl+'" width="100%" height="100%" border="0" align="Top"></body></html>');
}
