var path = '';

var subWin;

function genFlash(file, width, height, id, vars) {	
	tempHTML = '	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'">';
	tempHTML += '	<param name="movie" value="'+file+'">';
	tempHTML += '	<param name="quality" value="high">';
	tempHTML += '	<param name="menu" value="false">';
//	tempHTML += '	<param name="wmode" value="transparent">';
	
	if (vars != null) {
		tempHTML += '	<param name="flashVars" value="'+vars+'">';
		tempHTML += '	<embed src="'+file+'" flashVars="'+vars+'" quality="high" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'"></embed>';
	} else {
		tempHTML += '	<embed src="'+file+'" quality="high" scale="noscale" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'"></embed>';
	}
	
	tempHTML += '	</object>';
	
	document.write(tempHTML);
}

function NewWindow(mypage, myname, w, h, scroll, resizable, imgW, imgH) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
win = window.open(mypage, myname, winprops);
win.document.open();
win.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>');
win.document.write('<head><title>wtc more</title></head>');
win.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
//win.document.write('<img src="'+mypage+'" width="'+imgW+'" height="'+imgH+'" border="0">');
win.document.write('<img src="'+mypage+'" border="0">');
win.document.write('</body></html>');
win.self.focus()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function NewWindow2(mypage, myname, w, h, scroll, resizable) {
popupIsOpen = true;
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
subWin = window.open(mypage, myname, winprops);
subWin.self.focus()
if (parseInt(navigator.appVersion) >= 4) { subWin.window.focus(); }

checkPopupID = setInterval("checkPopup()",checkinterval);
}



function NewWindow3(mypage, myname, w, h, scroll, resizable, imgW, imgH) {
alert(mypage);
}

