function vote(num, hype, r){
  $.get("/thestyles/voiter.php", { num: num, hype: hype, r: r }, function(data){$('#countvote').html(data);$('#voiterrow').remove();});
}

function showdiv (i, s){
  if (s=='s') {
    $('#title'+i).hide('slow');
    $('#divs'+i).show('slow');
  }
  if (s=='h') {
    $('#divs'+i).hide('slow');
    $('#title'+i).show('slow');
  }
}

function opendiv (d, s){
  if (s=='s') {
    $('#divs'+d).show();
  }
  if (s=='h') {
    $('#divs'+d).hide();
  }
}

function textfromsite(num, r){
  $.get("/thestyles/pageonsite.php", { num: num, r: r }, function(data){$('#textfromsite').html(data);});
}


function multishow(show, iddiv){
  $('#'+iddiv).html($('#'+show).html());
}

function showSrcForImg(htmlrow) {
 $('.dialog').dialog('close');
 $('#loadimages').html(htmlrow);
}