
var focus_width; var focus_height; var text_height;
if (typeof (scrollpic_width) == "undefined" || typeof (scrollpic_height) == "undefined") {
    if (location.href.indexOf("/subject/s") > -1)
    { focus_width = 282; focus_height = 190; text_height = 22; }
    else if (location.href.indexOf("/subject/") > -1)
    { focus_width = 308; focus_height = 212; text_height = 22; }
    else if (location.href.indexOf("/news/") > -1)
    { focus_width = 249; focus_height = 178; text_height = 22; }
    else if (location.href.indexOf("/knowledge/") > -1)
    { focus_width = 311; focus_height = 202; text_height = 22; }
    else
    { focus_width = 278; focus_height = 178; text_height = 22; }
} else {
    focus_width = scrollpic_width; focus_height = scrollpic_height; text_height = 22; 
}
var swf_height = focus_height + text_height;
var background = typeof (bgColor) == 'undefined' ? '#E9E9E9' : bgColor;
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + focus_width + '" height="' + swf_height + '">'); document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/Images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="' + background + '">'); document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '">'); document.write('<embed src="/Images/pixviewer.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '" menu="false" bgcolor="'+background+'" quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
