$(document).ready(function()
{
$(".like1").click(function()
{
var id=$(this).attr("id");
var name=$(this).attr("name");
var dataString = 'id='+ id + '&name='+ name;
$("#votebox1").slideDown("slow");

$("#flash1").fadeIn("slow");

$.ajax
({
type: "POST",
url: "rating.php",
data: dataString,
cache: false,
success: function(html)
{
$("#flash1").fadeOut("slow");
$("#vcontent1").html(html);
} 
});
});

$("#close1").click(function()
{
$("#votebox1").slideUp("slow");
});

//
$(".like2").click(function()
{
var id=$(this).attr("id");
var name=$(this).attr("name");
var dataString = 'id='+ id + '&name='+ name;
$("#votebox2").slideDown("slow");

$("#flash2").fadeIn("slow");

$.ajax
({
type: "POST",
url: "rating.php",
data: dataString,
cache: false,
success: function(html)
{
$("#flash2").fadeOut("slow");
$("#vcontent2").html(html);
} 
});
});

$("#close2").click(function()
{
$("#votebox2").slideUp("slow");
});

//
$(".like3").click(function()
{
var id=$(this).attr("id");
var name=$(this).attr("name");
var dataString = 'id='+ id + '&name='+ name;
$("#votebox3").slideDown("slow");

$("#flash3").fadeIn("slow");

$.ajax
({
type: "POST",
url: "rating.php",
data: dataString,
cache: false,
success: function(html)
{
$("#flash3").fadeOut("slow");
$("#vcontent3").html(html);
} 
});
});

$("#close3").click(function()
{
$("#votebox3").slideUp("slow");
});

//
$(".like4").click(function()
{
var id=$(this).attr("id");
var name=$(this).attr("name");
var dataString = 'id='+ id + '&name='+ name;
$("#votebox4").slideDown("slow");

$("#flash4").fadeIn("slow");

$.ajax
({
type: "POST",
url: "rating.php",
data: dataString,
cache: false,
success: function(html)
{
$("#flash4").fadeOut("slow");
$("#vcontent4").html(html);
} 
});
});

$("#close4").click(function()
{
$("#votebox4").slideUp("slow");
});

//
$(".like5").click(function()
{
var id=$(this).attr("id");
var name=$(this).attr("name");
var dataString = 'id='+ id + '&name='+ name;
$("#votebox5").slideDown("slow");

$("#flash5").fadeIn("slow");

$.ajax
({
type: "POST",
url: "rating.php",
data: dataString,
cache: false,
success: function(html)
{
$("#flash5").fadeOut("slow");
$("#vcontent5").html(html);
} 
});
});

$("#close5").click(function()
{
$("#votebox5").slideUp("slow");
});
//
});
