jQuery(document).ready(function($){
    $('.lightbox-link').fancybox();
	$('.fancybox').fancybox();
    $('#flash').cycle({
        fx:     'fade',
        timeout: 5000
    });
    try {
        flowplayer("a.player", {src:"flowplayer-3.2.2.swf", wmode: 'opaque'},{

            plugins: {			// load one or more plugins
            controls: {			// load the controls plugin
                url: 'flowplayer.controls-3.2.1.swf',	// always: where to find the Flash object
                playlist: true,				// now the custom options of the Flash object
                backgroundColor: '#666666',
                tooltips: {				// this plugin object exposes a 'tooltips' object
                    buttons: true,
                    fullscreen: 'Enter Fullscreen mode'
                },
                fullscreen: false
            }
            }
        });
    } catch(err) {
    }
    $('#contactus-form').validate();
});

function doPrint() {
	bdhtml=window.document.body.innerHTML;
	sprnstr="<!--startprint-->";
	eprnstr="<!--endprint-->";
	prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
	prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
	window.document.body.innerHTML='<div style="font-size:large;text-align:left">'+prnhtml+'</div>';
	window.print();
	window.document.body.innerHTML='<input type="button" value="Press To Return" onclick="history.go(0);">'+window.document.body.innerHTML;
}
