if (!function_exists($_l->blocks['head'][] = '_lb7774bc6c35_head')) { function _lb7774bc6c35_head($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?>  
<script type="text/javascript">
// Initialize the widget when the DOM is ready
$(document).ready(function() {
    // Setup html5 version
    $("#uploader").pluploadQueue({
        // General settings
        runtimes : 'html5,flash,silverlight,html4',
        url : '../../upload/<?php echo $id ?>',
         
        chunk_size : '1mb',
        rename : true,
        dragdrop: true,
         
        filters : {
            // Maximum file size
            max_file_size : '20mb',
            // Specify what files to browse for
            mime_types: [
                { title : "Image files", extensions : "jpg,gif,png"},
                { title : "Zip files", extensions : "zip"},
                { title : "Pdf files", extensions : "pdf"},
                { title : "Excel files", extensions : "xls,xlsx,csv"},
                { title : "Word files", extensions : "doc,docx"},
                { title : "Text files", extensions : "txt"},
                { title : "Movie files", extensions : "mov,avi"}
            ]
        },
 
//        // Resize images on clientside if we can
        resize: {
            width : <?php echo NTemplateHelpers::escapeJs($max_rozmery_obrazku['vyska']) ?>,
            height : <?php echo NTemplateHelpers::escapeJs($max_rozmery_obrazku['sirka']) ?>,
            quality : 100,
            crop: false // crop to exact dimensions
        },
                // Views to activate
        views: {
            list: true,
            thumbs: true, // Show thumbs
            active: 'thumbs'
        },
        multiple_queues: true,
        prevent_duplicates: true,
 
        flash_swf_url : '/js/plupload/Moxie.swf',
        silverlight_xap_url : '/js/plupload/Moxie.xap'
    });
    

});
     
</script>
<?php
}}
?>
</div>
		</aside>
	</footer>

<?php 
wp_footer();
?>

<?php 
if (isset($themeOptions->general->ga_code) && $themeOptions->general->ga_code != "") {
    ?>
	<script type="text/javascript">
		var _gaq = _gaq || [];
		_gaq.push(['_setAccount', <?php 
    echo NTemplateHelpers::escapeJs($themeOptions->general->ga_code);
    ?>
]);
		_gaq.push(['_trackPageview']);

		(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		})();
	</script>
<?php 
}
?>

	</div>
				if(categories[i].value == <?php 
    echo NTemplateHelpers::escapeJs($_GET["categories"]);
    ?>
) {
					var val = categories[i].label.replace(/&amp;/g, "&");
						val = val.replace(/&nbsp;/g, " ");
					catInput.val(val);
				}
			}
			locInputID.val(<?php 
    echo NTemplateHelpers::escapeJs($_GET["locations"]);
    ?>
);
			for(var i=0;i<locations.length;i++){
				if(locations[i].value == <?php 
    echo NTemplateHelpers::escapeJs($_GET["locations"]);
    ?>
) {
					var val = locations[i].label.replace(/&amp;/g, "&");
						val = val.replace(/&nbsp;/g, " ");
					locInput.val(val);
				}
			}
<?php 
}
?>

		});
		</script>

	</head>