var $j = jQuery.noConflict();

		$j(document).ready(function() {
			
			$j('a').live('touchend', function(e) {
    
			});

			$j("a.lightwindow").fancybox({
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
			
			$j("a[type=iframe]").fancybox({
				'width'				: 400,
				'height'			: 300,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
			$j("a[type=register]").fancybox({
				'width'				: 500,
				'height'			: 350,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});		
			
			$j("a[type=video]").fancybox({
				'width'				: 532,
				'height'			: 308,
				'autoScale'			: true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$j("a[type=video169]").fancybox({
				'width'				: 540,
				'height'			: 318,
				'autoScale'			: true,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$j("a[type=video43]").fancybox({
				'width'				: 510,
				'height'			: 390,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
							
			$j("a[type=callBack]").fancybox({
				'width'				: 500,
				'height'			: 350,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			
										
			$j("a[type=presentation]").fancybox({
				'width'				: 640,
				'height'			: 480,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			

			$j("a[type=seoTraining]").fancybox({
				'width'				: 700,
				'height'			: 500,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
			
			$j("a[type=feedbackFormRefresh]").fancybox({
				'width'				: 850,
				'height'			: 700,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe',
				'onClosed'			: function(){parent.location.reload(true);}
			});
			
			$j("a[type=feedbackForm]").fancybox({
				'width'				: 850,
				'height'			: 700,
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
	
			$j("#editOptionsSelect").change(function (){
		
				var opt = $j("#editOptionsSelect option:selected").val();
			
				if(opt == 'Select'){
					alert("please select a valid option from the drop down");
				} else {
					$j("#editOptions").attr("action",opt);
					$j("#editOptions").submit();
				}
			});
	});
