function svop_afisha(cur_id) {
if ( ($("#afisha_"+cur_id).css("height") == "auto"&&$("#afisha_"+cur_id).css("display")=="none")||$("#afisha_"+cur_id).css("display")=="none"){
$("#afisha_"+cur_id).animate({height: "show"}, 300);
}
else{
$("#afisha_"+cur_id).animate({height: "hide"}, 300);}

}

function imgOpen(imgURL,imgWidth,imgHeight,Title) {

var features;
  var top = (screen.height - imgHeight)/2, left = (screen.width - imgWidth)/2;
  if(top < 0) top = 0;
  if(left < 0) left = 0;
  features = ',top=' + top + ',left=' +left;

var imgWndw=window.open('','winblank','width='+imgWidth+',height='+
  imgHeight+',toolbar=no,menubar=no,location=no,status=no,'+
  'resizable=yes,scrollbars=no'+features);
var imgTitle=(Title)?Title:imgURL+": "+imgWidth+'x'+imgHeight;
with (imgWndw.document){
  open();
  write('<ht'+'ml><he'+'ad><ti'+'tle>'+imgTitle+'</ti'+'tle>'+
  '</he'+'ad><bo'+'dy leftmargin="0" topmargin="0" '+
  'rightmargin="0" bottommargin="0" marginwidth="0" '+
  'marginheight="0"><img src="'+imgURL+'" width="'+imgWidth+
  '" height="'+imgHeight+'" border="0" alt="'+imgTitle+
  '"></bo'+'dy></ht'+'ml>');
  close();
}
return false
}

$().ready(function() {
  $('#ModalLogin').jqm({
    trigger: '.ModalLoginTrigger',
    overlay: 30, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
    overlayClass: 'whiteOverlay'}); /* make dialog draggable, assign handle to title */

  
  // Close Button Highlighting. IE doesn't support :hover. Surprise?
  $('input.jqmdX')
  .hover(
    function(){ $(this).addClass('jqmdXFocus'); }, 
    function(){ $(this).removeClass('jqmdXFocus'); })
  .focus( 
    function(){ this.hideFocus=true; $(this).addClass('jqmdXFocus'); })
  .blur( 
    function(){ $(this).removeClass('jqmdXFocus'); });

});
