function addSmiley(emoticon, e)
{
    var f = eval(e);
    f.value=f.value+emoticon;
    f.focus();
    return;
}

function switchMovie(m, t)
{
    $('video_title').innerHTML = t;
    
    var fo = new SWFObject("/_swf/flvplayer.swf","single","450","360","7","#FFFFFF");						
    //  Configuration
	fo.addParam("allowfullscreen","true");
	fo.addVariable("file",m);
    //  write		
    fo.write("video_content");
}

function SearchUpdate()
{
    var L = document.location.toString();
    var C = new RegExp("pictures|videos");

    if (L.search(C) < 0)
    {    
        //  update
        var P = $('SearchUpdate');
        var R = new RegExp("Paco","ig");
        P.innerHTML = P.innerHTML.replace(R,"<a href=\"javascript:void(null)\" onclick=\"showLayer('/image.php', '?img=paco002')\">Paco</a>");
    }
}
