﻿
function writeFlash(oStates) {

    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="535" height="365" id="flshLocation" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="/locations/flashcontent/location_selector.swf?' + oStates + '" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="bgcolor" value="#E7F1F9" />\n');
    document.write('<!--[if !IE]> <-->\n');
    document.write('<object data="/locations/flashcontent/location_selector.swf?' + oStates + '" width="535" height="365" type="application/x-shockwave-flash">\n');
    document.write('<param name="quality" value="high">\n');
    document.write('<param name="bgcolor" value="#E7F1F9" />\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>');
    
}

function revrs(eml){

    document.write(eml.split( '' ).reverse().join( '' ));
    
}