function fnSearch()
{
     var q = document.getElementById('google_search').value;
     window.location = "/search.aspx?cx=005554692015213564881%3Abzmeiejr4no&client=google-csbe&output=xml_no_dtd&q=" + q + "&proxyreload=1&start=0"
}

function fnSearchFooter()
{
	 var q = document.getElementById('google_search_footer').value;
     window.location = "/search.aspx?cx=005554692015213564881%3Abzmeiejr4no&client=google-csbe&output=xml_no_dtd&q=" + q + "&proxyreload=1&start=0"
}


/*
$(document).ready(function(){
    //To open all anchor class with new_window in new Window.
    $('.new_window').click(function(e)
    {   
        e.preventDefault();
        window.open(this.href);
    });
    
    //To redirect all anchor class with taleo to taleo.aspx.
    $('.taleo').click(function(e)
    {   
    
        e.preventDefault();
        window.open("/taleo.aspx?tsrc="+this.href);
    });
    
   

});
*/

/********************/
function closePopupWindow()
{
    $("#content-popup").hide();
    $('#popup_frame').attr("src",""); 
}

function changeParentUrl(url)
{
    document.location=url;
}

function changeParentUrlNewWindow(url)
{
    window.open(url);
}


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')";
}

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')";
}

function closeVideo()
{
    ctrlVideo = document.getElementById("flashContent");
    ctrlVideo.style.display = "none";
}


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 createFlash(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",
        scale: "noScale",    
	    flashvars : ""
	};
	var attributes = {};
	swfobject.embedSWF(vSWF, "flashcontent", vWidth, vHeight, "8", "/flash/app_expressinstall.swf", flashvars, params, attributes);
}

	/* Begin code for Bookmark  Icon*/

	function appendAddThis() {
	
		if (!document.getElementById) return false;
		if (!document.getElementById("bookmark")) return false;
	
		var list_addthis = document.getElementById("bookmark").getElementsByTagName("a")[0];

		list_addthis.onmouseover = function() {
			return addthis_open(this, '', '[URL]', '[TITLE]');
		}

		list_addthis.onmouseout = function() {
			addthis_close();
		}

		list_addthis.onclick = function() {
			return addthis_sendto();
			return false;
		}
	
	}
	
function submitenter(myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;


if (keycode == 13)
   {
   fnSearch();
   return false;
   }
else
   return true;
}
    
    