if(typeof(dclk_isDartRichMediaLoaded) == "undefined") {
	dclk_isDartRichMediaLoaded = true;
	function dclkWrite(str){
		if(dclk_shouldOverride) {
			dclk_original_documentWrite(str);
		}
		else{
			document.write(str);
		}
	}
	function dclkWriteln(str){
		if(dclk_shouldOverride) {
			dclk_original_documentWriteLn(str);
		}
		else{
			document.writeln(str);
		}
	}
	function dclk_isInternetExplorer() {
		return (navigator.appVersion.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Opera") < 0);
	}
	dclk_shouldOverride = dclk_isInternetExplorer();
	if(dclk_shouldOverride) {
		dclk_original_documentWrite = document.write;
		dclk_original_documentWriteLn = document.writeln;
		document.write = dclkWrite;
		document.writeln = dclkWriteln;
	}
}

function load_swf(src,width,height)
{
document.write("<object codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" height=\"" + height + "\" width=\"" + width + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">");
document.write("<param name=\"movie\" value=\"" + src + "\" />");
document.write("<param name=\"quality\" value=\"high\" />");
document.write("<param name=\"wmode\" value=\"transparent\" />");
document.write("<embed src=\"" + src + "\" width=\"" + width + "\" height=\"" + height + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed>");
document.write("</object>");
}


function load_pic(pics,links,texts,width,height)
{
	var focus_width=width;
	var focus_height=height;
	var text_height=20;
	var swf_height = focus_height+text_height;

	var fv="pics="+pics+"&links="+links+"&texts="+texts+"&borderwidth="+focus_width+"&borderheight="+focus_height+"&textheight="+text_height;
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+focus_width+'" height="'+swf_height+'">');
	document.write('<param name="movie" value="Images/pixviewer.swf"> <param name="quality" value="high"><param name="allowScriptAccess" value="sameDomain"><param name="menu" value="false"><param name="bgcolor" value="#ffffff"><param name="wmode" value="opaque">');
	document.write('<param name="flashvars" value="'+fv+'"><\/object>'); 
}
