
function toggle(e){

     e.show("slow");


}
function g6(s){
   $.ajax({
   type: "POST",
   url: "http://bv22.org/gsource/gm6.php",
   data: "s="+s,
   failure: function(){},
   success: function(msg){
        msg=jQuery.trim((msg));
        $("#keywords").html(msg);
    //    alert(msg);
    }
 });
 }

function g(cat){
   $.ajax({
   type: "POST",
   url: "http://bv22.org/gsource/gm.php",
   data: "cat=" + cat,
   failure: function(){},
   success: function(msg){$("#CLIP_BROWSER").html(msg);}
 });
}

function g2(vid){
document.location="http://bv22.org/archive?vid="+vid;
/*
   $.ajax({
   type: "POST",
   url: "http://bv22.org/gsource/gm2.php",
   data: "vid=" + vid,
   failure: function(){},
   success: function(msg){$("#CLIP_SCREEN").html(msg);}
 });*/
}

var GTools={
     setBgColor:function(e,color){e.style.backgroundColor=color;},
     setBColor:function(e,color){e.style.borderBottomColor=color;},
     setBorderColor:function(e,color){e.style.borderColor=color;}
}

var BVMA={
    kw:function(s){if(s!=" " && s!="  "){g6(s);}},
    loadMovie2:function(id){g2(id);},
    loadMovie1:function(id){
        document.location="archive?cat=" + id;
    //g(id);
    },
    loadMovie:function(id){document.location="archive?vid=" + id;}

}