//Function is called from Flash and performs all external linking to new windows
function openNewWindow(myURL) {
        window.open(myURL, "targetWindow");
}

//Function t change the SWF file and the height dynamically.
function changeSize(mySWF,myHT) {
	// create code for flash file and assign it to a variable
	var flashHtml = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
		flashHtml += "codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0'";
		flashHtml += "width='770' height='" + myHT + "' id='about' align='top'>";
		flashHtml += "<param name='allowScriptAccess' value='always' /><param name='movie' value='" + mySWF + "' /><param name='quality' value='high'/><param name='bgcolor' bgcolor='#666666'/><param name='salign' value='t'/><param name='scale' value='noscale' />";
		flashHtml += "<embed src='" + mySWF + "' quality='high' bgcolor='#666666' width='770' height='" + myHT + "' name='about'";
		flashHtml += "align='top' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>";
		flashHtml += "</object>";

	// assign the value of the variable to the innerHTML of the div
	document.getElementById('flashObject').innerHTML = flashHtml;
}

