<?php
/*
Template Name: Webcam
*/
?>
<?php 
    get_header(); 
?>
<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: "10", // screen shot x cord
        screenShotY: "10", // screen shot y cord
        currentURL: "<?php echo get_bloginfo('url'); ?>"
    };
    var params = {
        menu: "false",
        allowfullscreen: "false"
        /*wmode: "transparent"*/
    };
    swfobject.embedSWF("<?php echo get_bloginfo('url'); ?>/webcam/webCamCapture.swf", "WebCamCapture", "560", "380", "10.0.0","expressInstall.swf", flashvars, params);
</script>

<div class="page_caption">
				<div class="caption_inner">
					<div class="caption_header">
						<h1 class="cufon"><?php _(the_title());?></h1>
					</div>
					<br class="clear"/>
				</div>
			</div>

		<!-- Begin content -->
		<div id="content_wrapper" class="content_bg">
		
			<div class="inner">
			
				<!-- Begin main content -->
				<div class="inner_wrapper">
				
					<div class="fullwidth">	
<?php

if (have_posts()) : while (have_posts()) : the_post();

?>
							
						<?php echo do_shortcode(the_content()); ?>
						

<?php endwhile; endif; ?>
                        <div id="WebCamCapture"></div>
                        <div id="WebCamForm"><?php echo do_shortcode('[contact-form 1 "Formulario LQDVI"]'); ?></div>

						</div>
					
				</div>
				<!-- End main content -->
				
			</div>
		
			<br class="clear"/>
			
		</div>
		<!-- End content -->

<?php get_footer(); ?>
