function clearText(ctrElement)
{
    ctrElement.value = "";
}

function playVideo1()
{
    createFlashVideo(318,238,"/media/usa_051209_rollover150.flv");
    document.getElementById("video_1").style.background = "url('../images/video/video_select.gif')"; 
    document.getElementById("video_2").style.background = "url('../images/video/video_non-select.gif')";
    //Floodlight tag
    var axel = Math.random() + "";
    var a = axel * 10000000000000;
    document.getElementById("video_floodlight_tag").innerHTML= '<iframe src="http://fls.doubleclick.net/activityi;src=2262251;type=ejolg299;cat=skrai428;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>'
    //alert(document.getElementById("video_floodlight_tag").innerHTML);
}

function playVideo2()
{
    createFlashVideo(318,238,"/media/401(k)_FA_Video_Low.flv");
    document.getElementById("video_1").style.background = "url('../images/video/video_non-select.gif')"; 
    document.getElementById("video_2").style.background = "url('../images/video/video_select.gif')";
    //Floodlight tag
    var axel = Math.random() + "";
    var a = axel * 10000000000000;
    document.getElementById("video_floodlight_tag").innerHTML = '<iframe src="http://fls.doubleclick.net/activityi;src=2262251;type=ejolg299;cat=favid893;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>';
    //alert(document.getElementById("video_floodlight_tag").innerHTML);
}

function closeVideo()
{
    //For stop playing the video on close
    createFlashVideo(10,10,"/media/blank.flv");
}

function createFlashVideo(vWidth,vHeight,vFLV) 
{
  
	var flashvars = false;
	var params = {
	    codebase: "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'",
	    quality: "high",
	    menu: "false",
	    align: "middle",
        wmode: "opaque",	
        scale: "noScale",    
        bgcolor: "#EBBE0D",
        salign: "TL",
	    flashvars : "videoURL="+vFLV+"&autoPlay=true&startPhotoSource=images/home/home_video_thump.gif&hideControls=false&backgroundColor1=0x333333&backgroundColor2=0x222222"
	};
	var attributes = {};
	swfobject.embedSWF("/media/Player.swf", "flashVideoContent", vWidth, vHeight, "8", "media/app_expressinstall.swf", flashvars, params, attributes);
}

function createFlashSWF(vWidth,vHeight,vSWF) 
{
	var flashvars = false;
	var params = {
	    codebase: "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'",
	    quality: "high",
	    menu: "false",
	    align: "middle",
        wmode: "opaque",	
        scale: "noScale",    
        bgcolor: "#EBBE0D",
        salign: "TL",
	    flashvars : ""
	};
	var attributes = {};
	swfobject.embedSWF(vSWF, "flashContent", vWidth, vHeight, "8", "media/app_expressinstall.swf", flashvars, params, attributes);
}

function createFlashSWF_1(vWidth,vHeight,vSWF,vFlashContainer) 
{
	var flashvars = false;
	var params = {
	    codebase: "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'",
	    quality: "high",
	    menu: "false",
	    align: "middle",
        wmode: "transparent",	
        scale: "noScale",    
        bgcolor: "#EBBE0D",
        salign: "TL",
	    flashvars : ""
	};
	var attributes = {};
	swfobject.embedSWF(vSWF, vFlashContainer, vWidth, vHeight, "8", "media/app_expressinstall.swf", flashvars, params, attributes);
}

function openChartWindow()
{
      var w = window.open("","","menubar=1,resizable=1,width=620,height=426,left=200;right=200;");
      w.document.writeln("<body bgcolor='#082013'>");
      w.document.writeln("<img src='/images/chart/chart.jpg' style='border:0;margin:0;padding:0;'>");
      w.document.writeln("<\/body>");
      w.document.close();
}