// JavaScript Document


function writeHTML(str){
	
	document.write(str);
	
}

function creatFlashTag(flashDirectory,  w,  h){
var str='';

str+='<object  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" id=""  >';
str+='<param name="allowScriptAccess" value="sameDomain" \/>';
str+='<param name="movie" value="'+flashDirectory+'" \/><param name="quality" value="high" \/><param name="" value="" \/><embed src="'+flashDirectory+'" quality="high"  width="'+w+'" height="'+h+'" name=""  allowScriptAccess="sameDomain" type="application\/x-shockwave-flash" pluginspage="http:\/\/www.macromedia.com\/go\/getflashplayer" \/>';
str+='<\/object>';


return str;

}

function creatIMGTag(imgDirectory, w, h, alt){
	var str='';
	str+='<IMG SRC="'+imgDirectory+'" WIDTH="'+w+'" HEIGHT="'+h+'" ALT="'+alt+'">';
	
	return str;

}

function writeIMG(dir, w, h, alt){
	writeHTML(creatIMGTag(dir, w, h, alt));
}

function writeFlash( dir,  w,  h){
	
	writeHTML(creatFlashTag( dir,  w,  h));
}



