/********************************************************
alternative content for flash detection
********************************************************/

/**
 * @revised - July 23, 2008 - By: Juan F. Sarria
 */

function writeAlternateContent(alt_div){

    var doc = document;

    var obj = doc.getElementById(alt_div);
    if (!obj && typeof(pgPopUp) != "undefined" && pgPopUp && pgPopUp.document && pgPopUp.document.getElementById) {
        try { 
            obj = pgPopUp.document.getElementById(alt_div); 
            doc = pgPopUp.document;
        } catch (Exc) { }
    } 

    if(obj != null){
		var testAlternate = "";

		testAlternate += '<div style="padding: 15px; background-color: rgb(237, 237, 239); height: 100%;">';
		testAlternate += '    <div style="text-align: center; font-family: arial; color: rgb(0, 0, 0); font-size: 12px; font-weight: bold;">Flash Plug-in Required</div>';
		testAlternate += '    <div style="text-align: center; font-family: arial; color: rgb(102, 102, 102); font-size: 11px; padding-right: 7px; font-weight: normal;">The latest Flash Player is required to view this site. Start the Flash Express Install by clicking the link below.</div>';
		testAlternate += '    <div style="text-align: center;">';
		testAlternate += '        <a target="_blank" href="http://www.adobe.com/go/getflashplayer">';
		testAlternate += '            <img src="http://www.aolcdn.com/_media/channels/flash_logo.gif" style="border: 0px none ; margin: 5px;"/>';
		testAlternate += '        </a>';
		testAlternate += '    </div>';
		testAlternate += '    <div style="text-align: center;">';
		testAlternate += '        <a target="_blank" href="http://www.adobe.com/go/getflashplayer" style="font-family: Arial; color: rgb(43, 101, 176); font-size: 12px; text-decoration: none; font-weight: normal;">Install Adobe Flash Player</a>';
		testAlternate += '    </div>';
		testAlternate += '</div>';

		var s = doc.createElement('span');
		s.innerHTML = testAlternate;
		obj.appendChild(s);
	}
}


