document.writeln("<script language=\"javascript\">");
document.writeln("<!--");
document.writeln("var flashWidth = 500;");
document.writeln("var flashHeight = 300;");
document.writeln("var flashSource = \"http://media.salemwebnetwork.com/crosswalkredesign/images/ads/Heroes_500x300_50K_SalemWeb.swf\";");
document.writeln("var flashVersion = parseFloat(\"8\");");
document.writeln("var trackingPixel = \"http://ad.doubleclick.net/ad/N4575.salemwebnetworkOX236/B4073239.6;sz=1x1\";");
document.writeln("var flashVideo = ");
document.writeln("'<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ' +");
document.writeln("'codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=8,0,0,0\" ' +");
document.writeln("'id=\"takeoveradwtc\" width=\"' + flashWidth + '\" height=\"' + flashHeight + '\">' +");
document.writeln("'<param name=\"play\" value=\"true\">' +");
document.writeln("'<param name=\"movie\" value=\"' + flashSource + '\">' +");
document.writeln("'<param name=\"quality\" value=\"high\">' +");
document.writeln("'<param name=\"wmode\" value=\"transparent\">' +");
document.writeln("'<param name=\"bgcolor\" value=\"#FFFFFF\">' +");
document.writeln("'<param name=\"allowScriptAccess\" value=\"always\">' +");
document.writeln("'<embed play=\"true\" allowScriptAccess=\"always\" swliveconnect=\"true\" ' +");
document.writeln("'src=\"' + flashSource + '\" ' +");
document.writeln("'wmode=\"transparent\" quality=\"high\" bgcolor=\"#FFFFFF\" width=\"' + flashWidth + '\" height=\"' + flashHeight + '\" ' +");
document.writeln("'type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">' +");
document.writeln("'</embed></object>';");
document.writeln("var plugin = false,");
document.writeln("hasPatch = false;");
document.writeln("//check if browswer is IE, and if so checks if the version is >= 6");
document.writeln("with (navigator.userAgent)");
document.writeln("if (indexOf('MSIE') > -1 && parseInt(substring(indexOf('MSIE') + 5).split(' ')[0]) >= 6)");
document.writeln("hasPatch = true;");
document.writeln("//Check if Firefox browsers support flash");
document.writeln("if (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash'] &&");
document.writeln("navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {");
document.writeln("if (navigator.plugins && navigator.plugins['Shockwave Flash']) {");
document.writeln("// get major version");
document.writeln("var regexMatch = new RegExp( /\\D*(\\d{1,2})\\..*/ );");
document.writeln("var matchResult = regexMatch.exec( navigator.plugins['Shockwave Flash'].description );");
document.writeln("if ( matchResult != null ) var majorVersion = matchResult[1];");
document.writeln("if ( majorVersion >= flashVersion ) plugin = true;");
document.writeln("}");
document.writeln("}");
document.writeln("//else, check if IE browsers support flash");
document.writeln("else if (navigator.userAgent && navigator.userAgent.indexOf('MSIE') >= 0 &&");
document.writeln("(navigator.userAgent.indexOf('Windows') >= 0) &&");
document.writeln("(navigator.userAgent.indexOf('Windows 3.1') < 0)) {");
document.writeln("var flashA = (new String(flashVersion)).split('.');");
document.writeln("if ((flashV = parseInt(flashA[0])) < 3) ");
document.writeln("flashV = 3;");
document.writeln("else if (flashA[1] && parseInt(flashA[1]) > 0) ");
document.writeln("flashV++;");
document.writeln("document.writeln('<scr' + 'ipt language=\"vbscript\">');");
document.writeln("document.writeln('on error resume next ');");
document.writeln("document.writeln('if (plugin <= 0) then plugin = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.' + flashV + '\")))');");
document.writeln("document.writeln('</scr' + 'ipt>');");
document.writeln("}");
document.writeln("//check if jQuery is loaded, and load it if not");
document.writeln("if (typeof jQuery == 'undefined') {");
document.writeln("document.writeln('<scr' + 'ipt type=\"text/javascript\" src=\"http://media.salemwebnetwork.com/js/jquery/jquery-1.3.2.min.js\"></scr' + 'ipt>');");
document.writeln("}");
document.writeln("//write flash code to page");
document.writeln("if (plugin) {");
document.writeln("//write expand/retract functions to page");
document.writeln("document.writeln('<scr' + 'ipt type=\"text/javascript\">function closetakeover(){$(\"#takeover1\").remove();}$(document).ready(function(){$(\"#takeover1\").css(\"left\",(($(window).width()-$(\"#takeover1\").width())/2));setTimeout(\"closetakeover()\", 15000);document.getElementById(\"takeover1\").style.display=\"block\";});</scr' + 'ipt>');");
document.writeln("document.write('<div id=\"takeover1\" style=\"z-index:100; position: absolute; top: 150px; width: ' + flashWidth + 'px; height: ' + flashHeight + 'px; background: #000; display: none;\">' +");
document.writeln("flashVideo + '</div>');");
document.writeln("document.writeln('<img alt=\"\" style=\"width:1px;height:1px;\" src=\"' + trackingPixel + ';ord=588636319?\" />');");
document.writeln("} else if (!(navigator.appName && navigator.appName.indexOf('Netscape') > -1 &&");
document.writeln("navigator.appVersion.indexOf('2.') > -1))");
document.writeln("document.writeln('<a href=\"http://ads.oneplace.com/accipiter/adclick/CID=0001dcced4fd964c00000000/site=Crosswalk/area=HOME/pageid=167841630/acc_random=588636319/position=TAKEOVER/aamsz=POP/aamgeoip=38.107.191.108\"><img src=\"http://media.salemwebnetwork.com/AdSpacer.gif\" alt=\"\" width=\"500\" height=\"300\" border=\"0\"></a>');");
document.writeln("-->");
document.writeln("</script>");document.close();