function videoDemo() {
//alert('video launch');
TheImgWin = window.open('/player/videodemo.php','Video_demo','height=480,width=640,toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
TheImgWin.focus();
}
function webinar() {
//alert('video launch');
TheImgWin = window.open('/player/webinar.php','Webinar','height=480,width=640,toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
TheImgWin.focus();
}
function webinar2() {
//alert('video launch');
TheImgWin = window.open('/player/webinar2.php','Webinar','height=480,width=640,toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
TheImgWin.focus();
}
function launchVideo(video) {
//alert('video launch');
TheImgWin = window.open('/player/index.php?video=' + video,'VideoPlayer','height=480,width=640,toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
TheImgWin.focus();
}
function launchVideoHD(video) {
//alert('video launch');
TheImgWin = window.open('/player/index.php?video=' + video,'VideoPlayer','height=540,width=960,toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
TheImgWin.focus();
}
function whyAppD() {
//alert('video launch');
TheImgWin = window.open('/player/whydemo.php','VideoPlayer','height=540,width=960,toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
TheImgWin.focus();
}
function taleoPop() {
$.fancybox({
			'padding'		: 0,
			'autoScale'		: true,
			'title'			: this.title,
			'titleShow'		: false,
			'width'		: 640,
			'height'		: 360,
			'href'			: 'http://www.youtube.com/v/ALNqThAqjQs',
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});
}

/* THIS IS THE POP LIGHTBOX AUTOMATIC VIDEO CODE */

        $(document).ready(function() {

            $("a.videopop").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: true,
			'title'			: this.title,
			'titleShow'		: false,
			'width'		: 640,
			'height'		: 360,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});

        });



