var $j = jQuery.noConflict();
$j("#twt").hover(function () {
$j(this).children().attr({src:"/im/twitter.png"});
$j(".logo").prepend('<div class="follow_tw">follow us on <strong>Twitter</strong> !</div>');
},function () {
$j(this).children().attr({src:"/im/twitter_g.png"});
$j(".follow_tw").remove();
});
$j(".smark:last").hover(function () {
$j(this).children().attr({src:"/im/facebook.png"});
$j(".logo").prepend('<div class="follow_fb">follow us on <strong>Facebook</strong> !</div>');
},function () {
$j(this).children().attr({src:"/im/facebook_g.png"});
$j(".follow_fb").remove();
});
//****** search videos
$j(".searchgo").live("click", function(){
search_videos();
});
sv_st = 0;
function search_videos(){
if(sv_st==0){
s_term = $j(".searchvideos input").val();
//alert(s_term);
$j(".searchvideos input").val("");
s_term_l = s_term.length;
if(s_term_l>1){
$j(".searchgo").after('<div class="sspiner"><img src="/im/sspin2.gif" /></div>');
new Ajax.Request("/proces.php",{method:'post',postBody:'vsearch='+s_term,onComplete:svid_end});
}else{
sv_st = 1;
$j(".searchvideos input").css({backgroundRepeat:"no-repeat",backgroundColor:"#900",color:"#FFF"});	
$j(".searchvideos input").val(" enter at least 2 letters");	
setTimeout(function(){$j(".searchvideos input").css({backgroundRepeat:"repeat-x",backgrounColor:"transparent",color:"#000"});$j(".searchvideos input").val("");sv_st = 0;},1600);
}
}
return false;
}
function svid_end(req){
$j(".sspiner").remove();
$j(".nav").after(req.responseText);
$j(".s_results").slideDown();
}
$j(".rmresults a").live("click", function(){
$j(".s_results").slideUp(400,function(){$j(".s_results").remove();});
});

