<?php
/*
Template Name: Webcam
*/
?>

<?php get_header(); ?>
<div id="single_content" class="fullwidth">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	<div class="post">	
		<h2><?php the_title(); ?></h2>		
		<div class="entry">
			<?php the_content(); ?>
		</div><!-- /entry -->
                <script type="text/javascript">
                    function deleteID() {
                        document.forms[0].id.value = '';
                    }
                    
                    function saveID(guid) {                        
                        document.forms[0].id.value = guid;
                    }
                    
                    var flashvars = {  
                        videoPreviewWidth: "250", // video preview width
                        videoPreviewHeight: "250", // video previw height
                        videoPreviewX: "10", // video preview x cord.
                        videoPreviewY: "10", // video preview y cord.
                        videoFps: "30", // video fps
                        bandwidth: "0", // Specifies the maximum amount of bandwidth that the current outgoing video. The default value is 16384 , pass 0 for bandwidth.
                        quality: "100", // quality for camera, value is 0-100.
                        screenShotX: "300", // screen shot x cord
                        screenShotY: "10" // screen shot y cord
                    };
                    var params = {
                        menu: "false",
                        allowfullscreen: "false"
                        /*wmode: "transparent"*/
                    };
                    swfobject.embedSWF("http://localhost/lqdvi/webcam/webCamCapture.swf", "WebCamCapture", "560", "380", "10.0.0","expressInstall.swf", flashvars, params);
                </script>
		<div id="WebCamCapture"></div>
                <div id="WebCamForm"><?php echo do_shortcode('[contact-form 1 "Formulario LQDVI"]'); ?></div>
                <div class="clear"></div>
                <?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
	</div><!-- /post -->
	
	<?php endwhile; endif; ?>
	

</div><!-- /single_content -->

<div class="clear"></div>	

<?php get_footer(); ?>