<?

function panel_photo_capture($options=array())
{ $rec=$options['rec'] ;
  if ($GLOBALS['LS_web_camera_capture_use_old_version']) {?><script type="text/javascript" src="<?echo _PATH_TO_EXT.'/webcamera_capture/jquery.webcamera_capture_old.js'?>"></script><?}
  else {?><script type="text/javascript" src="<?echo _PATH_TO_EXT.'/webcamera_capture/jquery.webcamera_capture.js'?>"></script><?}
  ?><style type="text/css">
        #panel_photo_capture{position:relative;min-height:480px;}
        #panel_photo_capture .hidden{display:none;}
        #panel_photo_capture div#capture_area{}
        #panel_photo_capture div#preview_area{text-align:center;}
        #panel_photo_capture div#preview_area div.jcrop-holder{margin:0 auto;}
        #panel_photo_capture video{
        transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -ms-transform: scaleX(-1);
        -moz-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        }

        #div_photo_capture{position:relative;}
        #div_photo_capture #canvas, #video{width: 640px; display: block; margin:0 auto;}
        #div_photo_capture #canvas{position:absolute;top:0;left:30px;}
        #div_photo_capture #canvas.hidden{display:none;}
    </style>

    <div id="panel_photo_capture" <?if ($rec['_reffer']) echo 'reffer="'.$rec['_reffer'].'"'?>>
    <h1><?echo $options['title']?></h1>
    <div id="div_photo_capture"></div>
    <script type="text/javascript">
      $j(document).ready(function (){$j('div#div_photo_capture').webcamera_capture({save_cmd:'<?echo $options['save_cmd']?>',zerkalo:<?echo ($GLOBALS['LS_web_camemera_zerkalo'])? 'true':'false' ?>}) ;}) ;
    </script>

  </div><?
}





?>