jQuery(function($){
  GRRhot15_vote = function(url, id, vote, arraynum, divclass, name) {
		$("." + divclass + " img").attr("src", name);
		//alert(divclass + " " + name);
		$.ajax({
      type: "POST", 
      url: url, 
      data: "id=" + id + "&vote=" + vote + "&arraynum=" + arraynum,
      success: function(data){ 
        var feeds = $("#drrhot15-vote-see-"+arraynum);
     		feeds.html(data).show(2000);
      }
    });
    return false;
  };
	
	GRRhot15_play = function(URL, width, height, popupname) {
		if (!window.showModalDialog) {
			var left = (screen.width - width) / 2;
			var top = (screen.height - height) / 2;
			var options = 'width = ' + width + ', height = ' + height + ', left = ' + left + ', top = ' + top;
			options += ', dialog = yes, modal = yes, dependent = yes';
			var newwindow = window.open(URL, popupname, options);
			if (window.focus) {
				newwindow.focus();
			}
		} else {
			//var options = 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px; center:yes; scroll:no; status:no; resizable:no; help:no;';
			var options = 'width=' + width + 'px, height=' + height + 'px, center=yes, scroll=no, status=no, resizable=no, help=no';
			//var newwindow = window.showModalDialog(URL, popupname, options);
			var newwindow = window.open(URL, popupname, options);
		}
		return false;
	};
	
});