function writeFlash(url,w,h,id,bg,trans) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="' + w + '" height="' + h + '" id="'+ id + '">\n');
document.write('<param name="movie" value="' + url + '" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="' + bg + '" />\n');
if (trans == 1) {document.write('<param name="wmode" value="transparent" />\n');}
document.write('<!--[if !IE]> <-->\n');
document.write('<object data="' + url + '" width="' + w + '" height="' + h + '" type="application/x-shockwave-flash" name="'+ id + '">\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="' + bg + '" />\n');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />\n');
if (trans == 1) {document.write('<param name="wmode" value="transparent" />\n');}
document.write(' FAIL (the browser should render some flash content, not this).\n');
document.write(' </object>\n');
document.write('<!--> <![endif]-->\n');
document.write('</object>\n');
}

function visit(newURL) {
  var site = window.open(newURL, 'website','scrollbars=1, location=1, menubar=1, status=1, toolbar=1, height=768, width=1024');
  site.window.focus();
}

function popup(newURL) {
  var popuper = window.open(newURL, 'popup','scrollbars=0, resizeable=0, width=425, height=550');
  popuper.window.focus();
}
function loadImage(url,target){
	html = "<img src='" + url + "' alt='' />";
	document.getElementById(target).innerHTML = html;
	adjustor('largeView');
}
function adjustor(target){
	newHeight = document.getElementById(target).firstChild.height;
	cHeight = document.getElementById(target).offsetHeight;
	if( newHeight > cHeight){
		nHeight = document.getElementById(target).offsetHeight + 3;
	}
	else{
		nHeight = document.getElementById(target).offsetHeight - 3;
	}
	document.getElementById(target).style.height = "" + nHeight + "px";
	if( Math.abs( nHeight - newHeight) > 5){
		var t=setTimeout("adjustor('largeView')", 5);
	}
}