//  The FWA Group, P.A. Website
//  Title Screen Image Library Source
//  Created by Jeremy L Roh, Project Designer and Webmaster
//  (C) Copyright 2009 All Rights Reserved
// --------------------------------------------------------------------------------

// Set Paths and Alt Text
    var linePath = "http://www.fwagroup.com/web/web_backgrounds/";

// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Set Line Images for Grid Parameters
    var hImg = "hline_980x1_w.gif";
    var vImg = "vline_1x560_w.gif";

// Set Random Parameters of Horizontal Lines
    var hL2aBASE_position = -490; var hL2aRNUM_position = Math.floor(Math.random()*105); var hL2a_position = hL2aBASE_position + hL2aRNUM_position;
    var hL2aBASE_width = 875; var hL2aRNUM_width = Math.floor(Math.random()*210); var hL2a_width = hL2aBASE_width - hL2aRNUM_width;
    var hL2aBASE_fade = 50; var hL2aRNUM_fade = Math.floor(Math.random()*50); var hL2a_fade = hL2aBASE_fade + hL2aRNUM_fade;
    var hL2aBASE_opacity = 75; var hL2aRNUM_opacity = Math.floor(Math.random()*30); var hL2a_opacity = (hL2aBASE_opacity - hL2aRNUM_opacity) * 0.4;
    var hL2a_opacity_nonIE = ((hL2aBASE_opacity - hL2aRNUM_opacity) / 100) * 0.5;
    var hL2aTop = 75 + nonIE_topADJ;

    var hL1aBASE_position = -490; var hL1aRNUM_position = Math.floor(Math.random()*105); var hL1a_position = hL1aBASE_position + hL1aRNUM_position;
    var hL1aBASE_width = 875; var hL1aRNUM_width = Math.floor(Math.random()*210); var hL1a_width = hL1aBASE_width - hL1aRNUM_width;
    var hL1aBASE_fade = 50; var hL1aRNUM_fade = Math.floor(Math.random()*50); var hL1a_fade = hL1aBASE_fade + hL1aRNUM_fade;
    var hL1aBASE_opacity = 75; var hL1aRNUM_opacity = Math.floor(Math.random()*30); var hL1a_opacity = (hL1aBASE_opacity - hL1aRNUM_opacity) * 0.5;
    var hL1a_opacity_nonIE = ((hL1aBASE_opacity - hL1aRNUM_opacity) / 100) * 0.5;
    var hL1aTop = 215 + nonIE_topADJ;

    var hL0BASE_position = -490; var hL0RNUM_position = Math.floor(Math.random()*105); var hL0_position = hL0BASE_position + hL0RNUM_position;
    var hL0BASE_width = 875; var hL0RNUM_width = Math.floor(Math.random()*70); var hL0_width = hL0BASE_width - hL0RNUM_width;
    var hL0BASE_fade = 10; var hL0RNUM_fade = Math.floor(Math.random()*0); var hL0_fade = hL0BASE_fade + hL0RNUM_fade;
    var hL0BASE_opacity_s = 75; var hL0RNUM_opacity_s = Math.floor(Math.random()*0); var hL0_opacity_s = hL0BASE_opacity_s - hL0RNUM_opacity_s;
    var hL0BASE_opacity_f = 0; var hL0RNUM_opacity_f = Math.floor(Math.random()*50); var hL0_opacity_f = hL0BASE_opacity_f + hL0RNUM_opacity_f;
    var hL0BASE_opacity = 75; var hL0RNUM_opacity = Math.floor(Math.random()*30); var hL0_opacity = (hL0BASE_opacity - hL0RNUM_opacity) * 0.6;
    var hL0_opacity_nonIE = ((hL0BASE_opacity - hL0RNUM_opacity) / 100) * 0.5;
    var hL0Top = 355 + nonIE_topADJ;

    var hL1bBASE_position = -490; var hL1bRNUM_position = Math.floor(Math.random()*105); var hL1b_position = hL1bBASE_position + hL1bRNUM_position;
    var hL1bBASE_width = 875; var hL1bRNUM_width = Math.floor(Math.random()*210); var hL1b_width = hL1bBASE_width - hL1bRNUM_width;
    var hL1bBASE_fade = 50; var hL1bRNUM_fade = Math.floor(Math.random()*50); var hL1b_fade = hL1bBASE_fade + hL1bRNUM_fade;
    var hL1bBASE_opacity = 50; var hL1bRNUM_opacity = Math.floor(Math.random()*30); var hL1b_opacity = (hL1bBASE_opacity - hL1bRNUM_opacity) * 0.3;
    var hL1b_opacity_nonIE = ((hL1bBASE_opacity - hL1bRNUM_opacity) / 100) * 0.25;
    var hL1bTop = 425 + nonIE_topADJ;

    var hL2bBASE_position = -490; var hL2bRNUM_position = Math.floor(Math.random()*105); var hL2b_position = hL2bBASE_position + hL2bRNUM_position;
    var hL2bBASE_width = 875; var hL2bRNUM_width = Math.floor(Math.random()*210); var hL2b_width = hL2bBASE_width - hL2bRNUM_width;
    var hL2bBASE_fade = 50; var hL2bRNUM_fade = Math.floor(Math.random()*50); var hL2b_fade = hL2bBASE_fade + hL2bRNUM_fade;
    var hL2bBASE_opacity = 50; var hL2bRNUM_opacity = Math.floor(Math.random()*30); var hL2b_opacity = (hL2bBASE_opacity - hL1bRNUM_opacity) * 0.1;
    var hL2b_opacity_nonIE = ((hL2bBASE_opacity - hL2bRNUM_opacity) / 100) * 0.25;
    var hL2bTop = 495 + nonIE_topADJ;

    var vL3lBASE_height = 350; var vL3lRNUM_height = Math.floor(Math.random()*80); var vL3l_height = vL3lBASE_height - vL3lRNUM_height;
    var vL3l_position = vL3lRNUM_height + 16;
    var vL3lBASE_fade = 50; var vL3lRNUM_fade = Math.floor(Math.random()*50); var vL3l_fade = vL3lBASE_fade + vL3lRNUM_fade;
    var vL3lBASE_opacity = 75; var vL3lRNUM_opacity = Math.floor(Math.random()*30); var vL3l_opacity = vL3lBASE_opacity - vL3lRNUM_opacity;
    var vL3l_opacity_nonIE = ((vL3lBASE_opacity - vL3lRNUM_opacity) / 100) * 0.2;
    var vL3lPercent = vL3l_height / 350; vL3lreflect_height = 60 * vL3lPercent;

    var vL2lBASE_height = 350; var vL2lRNUM_height = Math.floor(Math.random()*80); var vL2l_height = vL2lBASE_height - vL2lRNUM_height;
    var vL2l_position = vL2lRNUM_height + 16;
    var vL2lBASE_fade = 50; var vL2lRNUM_fade = Math.floor(Math.random()*50); var vL2l_fade = vL2lBASE_fade + vL2lRNUM_fade;
    var vL2lBASE_opacity = 75; var vL2lRNUM_opacity = Math.floor(Math.random()*30); var vL2l_opacity = vL2lBASE_opacity - vL2lRNUM_opacity;
    var vL2l_opacity_nonIE = ((vL2lBASE_opacity - vL2lRNUM_opacity) / 100) * 0.3;
    var vL2lPercent = vL2l_height / 350; vL2lreflect_height = 60 * vL2lPercent;

    var vL1lBASE_height = 350; var vL1lRNUM_height = Math.floor(Math.random()*80); var vL1l_height = vL1lBASE_height - vL1lRNUM_height;
    var vL1l_position = vL1lRNUM_height + 16;
    var vL1lBASE_fade = 50; var vL1lRNUM_fade = Math.floor(Math.random()*50); var vL1l_fade = vL1lBASE_fade + vL1lRNUM_fade;
    var vL1lBASE_opacity = 75; var vL1lRNUM_opacity = Math.floor(Math.random()*30); var vL1l_opacity = vL1lBASE_opacity - vL1lRNUM_opacity;
    var vL1l_opacity_nonIE = ((vL1lBASE_opacity - vL1lRNUM_opacity) / 100) * 0.4;
    var vL1lPercent = vL1l_height / 350; vL1lreflect_height = 60 * vL1lPercent;

    var vL1rBASE_height = 350; var vL1rRNUM_height = Math.floor(Math.random()*80); var vL1r_height = vL1rBASE_height - vL1rRNUM_height;
    var vL1r_position = vL1rRNUM_height + 16;
    var vL1rBASE_fade = 50; var vL1rRNUM_fade = Math.floor(Math.random()*50); var vL1r_fade = vL1rBASE_fade + vL1rRNUM_fade;
    var vL1rBASE_opacity = 75; var vL1rRNUM_opacity = Math.floor(Math.random()*30); var vL1r_opacity = vL1rBASE_opacity - vL1rRNUM_opacity;
    var vL1r_opacity_nonIE = ((vL1rBASE_opacity - vL1rRNUM_opacity) / 100) * 0.4;
    var vL1rPercent = vL1r_height / 350; vL1rreflect_height = 60 * vL1rPercent;

    var vL2rBASE_height = 350; var vL2rRNUM_height = Math.floor(Math.random()*80); var vL2r_height = vL2rBASE_height - vL2rRNUM_height;
    var vL2r_position = vL2rRNUM_height + 16;
    var vL2rBASE_fade = 50; var vL2rRNUM_fade = Math.floor(Math.random()*50); var vL2r_fade = vL2rBASE_fade + vL2rRNUM_fade;
    var vL2rBASE_opacity = 75; var vL2rRNUM_opacity = Math.floor(Math.random()*30); var vL2r_opacity = vL2rBASE_opacity - vL2rRNUM_opacity;
    var vL2r_opacity_nonIE = ((vL2rBASE_opacity - vL2rRNUM_opacity) / 100) * 0.3;
    var vL2rPercent = vL2r_height / 350; vL2rreflect_height = 60 * vL2rPercent;

    var vL3rBASE_height = 350; var vL3rRNUM_height = Math.floor(Math.random()*80); var vL3r_height = vL3rBASE_height - vL3rRNUM_height;
    var vL3r_position = vL3rRNUM_height + 16;
    var vL3rBASE_fade = 50; var vL3rRNUM_fade = Math.floor(Math.random()*50); var vL3r_fade = vL3rBASE_fade + vL3rRNUM_fade;
    var vL3rBASE_opacity = 75; var vL3rRNUM_opacity = Math.floor(Math.random()*30); var vL3r_opacity = vL3rBASE_opacity - vL3rRNUM_opacity;
    var vL3r_opacity_nonIE = ((vL3rBASE_opacity - vL3rRNUM_opacity) / 100) * 0.2;
    var vL3rPercent = vL3r_height / 350; vL3rreflect_height = 60 * vL3rPercent;

// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Set Positions of Logo and Slideshows
    var arrImgPos = new Array();
        arrImgPos[0] = "C0";
        arrImgPos[1] = "E0";

//  set background color
    var fadebgcolor="transparent"

// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

function GenerateScreen(){

    // Draw Horizontal Lines with Random Position, Width, and Fade << 0=uniform, 1=linear, 2=radial, 3= rectangular >>
        var draw_hL2a = '<div id="Line_2a" style="top: '+hL2aTop+'px; margin-left: '+hL2a_position+'px"><img style="filter: progid:DXImageTransform.Microsoft.Alpha(style=3, opacity='+hL2a_opacity+', finishOpacity=0, startX=0, startY=0, finishX='+hL2a_fade+', finishY=0); -moz-opacity: '+hL2a_opacity_nonIE+'; opacity: '+hL2a_opacity_nonIE+'" src="'+linePath+hImg+'" width="'+hL2a_width+'" height="1" alt="" \/><\/div>'; document.write(draw_hL2a);
        var draw_hL1a = '<div id="Line_1a" style="top: '+hL1aTop+'px; margin-left: '+hL1a_position+'px"><img style="filter: progid:DXImageTransform.Microsoft.Alpha(style=3, opacity='+hL1a_opacity+', finishOpacity=0, startX=0, startY=0, finishX='+hL1a_fade+', finishY=0); -moz-opacity: '+hL1a_opacity_nonIE+'; opacity: '+hL1a_opacity_nonIE+'" src="'+linePath+hImg+'" width="'+hL1a_width+'" height="1" alt="" \/><\/div>'; document.write(draw_hL1a);
        var draw_hL0 = '<div id="Line_0" style="top: '+hL0Top+'px; margin-left: '+hL0_position+'px"><img style="filter: progid:DXImageTransform.Microsoft.Alpha(style=3, opacity='+hL0_opacity_s+', finishOpacity='+hL0_opacity_f+', startX=0, startY=0, finishX='+hL0_fade+', finishY=0); -moz-opacity: '+hL0_opacity_nonIE+'; opacity: '+hL0_opacity_nonIE+'" src="'+linePath+hImg+'" width="'+hL0_width+'" height="1" alt="" \/><\/div>'; document.write(draw_hL0);
        var draw_hL1b = '<div id="Line_1b" style="top: '+hL1bTop+'px; margin-left: '+hL1b_position+'px"><img style="filter: progid:DXImageTransform.Microsoft.Alpha(style=3, opacity='+hL1b_opacity+', finishOpacity=0, startX=0, startY=0, finishX='+hL1b_fade+', finishY=0); -moz-opacity: '+hL1b_opacity_nonIE+'; opacity: '+hL1b_opacity_nonIE+'" src="'+linePath+hImg+'" width="'+hL1b_width+'" height="1" alt="" \/><\/div>'; document.write(draw_hL1b);
        var draw_hL2b = '<div id="Line_2b" style="top: '+hL2bTop+'px; margin-left: '+hL2b_position+'px"><img style="filter: progid:DXImageTransform.Microsoft.Alpha(style=3, opacity='+hL2b_opacity+', finishOpacity=0, startX=0, startY=0, finishX='+hL2b_fade+', finishY=0); -moz-opacity: '+hL2b_opacity_nonIE+'; opacity: '+hL2b_opacity_nonIE+'" src="'+linePath+hImg+'" width="'+hL2b_width+'" height="1" alt="" \/><\/div>'; document.write(draw_hL2b);

    // Draw Vertical Lines with Random Position, Height, and Fade << 0=uniform, 1=linear, 2=radial, 3= rectangular >>
        var draw_vL3l = '<div id="Line_C" style="top: '+vL3l_position+'px"><img class="reflect rheight'+vL3lreflect_height+' ropacity40" style="filter:alpha(style=1, opacity='+vL3l_opacity+', finishOpacity=0, startX=0, startY='+vL3l_fade+', finishX=0, finishY=0); -moz-opacity: '+vL3l_opacity_nonIE+'; opacity: '+vL3l_opacity_nonIE+'" src="'+linePath+vImg+'" width="1" height="'+vL3l_height+'" alt="" \/><\/div>'; document.write(draw_vL3l);
        var draw_vL2l = '<div id="Line_E" style="top: '+vL2l_position+'px"><img class="reflect rheight'+vL2lreflect_height+' ropacity40" style="filter:alpha(style=1, opacity='+vL2l_opacity+', finishOpacity=0, startX=0, startY='+vL2l_fade+', finishX=0, finishY=0); -moz-opacity: '+vL2l_opacity_nonIE+'; opacity: '+vL3l_opacity_nonIE+'" src="'+linePath+vImg+'" width="1" height="'+vL2l_height+'" alt="" \/><\/div>'; document.write(draw_vL2l);
        var draw_vL1l = '<div id="Line_G" style="top: '+vL1l_position+'px"><img class="reflect rheight'+vL1lreflect_height+' ropacity40" style="filter:alpha(style=1, opacity='+vL1l_opacity+', finishOpacity=0, startX=0, startY='+vL1l_fade+', finishX=0, finishY=0); -moz-opacity: '+vL1l_opacity_nonIE+'; opacity: '+vL2l_opacity_nonIE+'" src="'+linePath+vImg+'" width="1" height="'+vL1l_height+'" alt="" \/><\/div>'; document.write(draw_vL1l);
        var draw_vL1r = '<div id="Line_I" style="top: '+vL1r_position+'px"><img class="reflect rheight'+vL1rreflect_height+' ropacity40" style="filter:alpha(style=1, opacity='+vL1r_opacity+', finishOpacity=0, startX=0, startY='+vL1r_fade+', finishX=0, finishY=0); -moz-opacity: '+vL1r_opacity_nonIE+'; opacity: '+vL1r_opacity_nonIE+'" src="'+linePath+vImg+'" width="1" height="'+vL1r_height+'" alt="" \/><\/div>'; document.write(draw_vL1r);
        var draw_vL2r = '<div id="Line_K" style="top: '+vL2r_position+'px"><img class="reflect rheight'+vL2rreflect_height+' ropacity40" style="filter:alpha(style=1, opacity='+vL2r_opacity+', finishOpacity=0, startX=0, startY='+vL2r_fade+', finishX=0, finishY=0); -moz-opacity: '+vL2r_opacity_nonIE+'; opacity: '+vL2r_opacity_nonIE+'" src="'+linePath+vImg+'" width="1" height="'+vL2r_height+'" alt="" \/><\/div>'; document.write(draw_vL2r);
        var draw_vL3r = '<div id="Line_M" style="top: '+vL3r_position+'px"><img class="reflect rheight'+vL3rreflect_height+' ropacity40" style="filter:alpha(style=1, opacity='+vL3r_opacity+', finishOpacity=0, startX=0, startY='+vL3r_fade+', finishX=0, finishY=0); -moz-opacity: '+vL3r_opacity_nonIE+'; opacity: '+vL3r_opacity_nonIE+'" src="'+linePath+vImg+'" width="1" height="'+vL3r_height+'" alt="" \/><\/div>'; document.write(draw_vL3r);

}