var newwindow;
function openQuestion(url) {
        newwindow=window.open(url,'showanswer','height=400,width=675,top=250,left=350,scrollbars=1');
}        

function moreFAQS(topic) {
   new Ajax.Request("/support/showmorefaqs", {parameters : "topic=" + topic});      
}      

function searchFAQ(srchstring) {
   new Ajax.Request("/support/showquestions", {parameters : "srchstring=" + srchstring});   
}        


function resetPlayButton(val) {
  if($('ringshare_play_'+val).src.indexOf('play') != -1)  {   
   $('ringshare_play_'+val).src='/images/buttons/stop.gif';
  }
  else {
   $('ringshare_play_'+val).src='/images/buttons/play.gif';        
  }  
}

function addGlobalRingshare(rng_id) {
  new Ajax.Request("/ringshares/add_global_ringshare", { method: 'get', parameters : "from=Gallery&ringshare_id=" + rng_id } );
  return false;
}

function removeGlobalRingshare(rng_id) {
  new Ajax.Request("/ringshares/remove_global_ringshare", { method: 'get', parameters : "from=Gallery&ringshare_id=" + rng_id } );
  return false;
}
