function swf(src,width,height) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="flashmovie" align="middle">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="'+src+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="'+src+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="flashmovie" allowScriptAccess="always" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function swfTo(to,src,width,height) {
	var obj = document.getElementById(to);
	if(obj) {
		var p = ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="flashmovie" align="middle">');
		p += ('<param name="allowScriptAccess" value="always" />');
		p += ('<param name="movie" value="'+src+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="'+src+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="flashmovie" allowScriptAccess="always" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		p += ('</object>');
		obj.innerHTML = p;
	}
}

function DIContentPlayCompelete() { // flash animation end
}

function openTestPopup(href,width,height) {
	if(typeof(width)=='undefined') width = 647;
	if(typeof(height)=='undefined') height = 435;
	if(width>screen.availWidth)width=screen.availWidth;
	if(height>screen.availHeight)height=screen.availHeight;

	var x = (screen.availWidth - width) / 2;
	var y = (screen.availHeight - height) / 2;

	var popupWindow = window.open(href,"popup","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",top="+y+",left="+x); 
	popupWindow.opener = self; 
}

function openIntroducePopup(href,width,height) {
	if(typeof(width)=='undefined') width = 800;
	if(typeof(height)=='undefined') height = 530;
	if(width>screen.availWidth)width=screen.availWidth;
	if(height>screen.availHeight)height=screen.availHeight;

	var x = (screen.availWidth - width) / 2;
	var y = (screen.availHeight - height) / 2;

	var popupWindow = window.open(href,"popup","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+width+",height="+height+",top="+y+",left="+x); 
	popupWindow.opener = self; 
}
