$(document).ready(function(){	
	
	/* sidebar */
	$('#forumposts').load("http://www.killersites.com/university/library/getforum.php");
	$('#blogposts').load("http://www.killersites.com/university/library/getblog.php");
	
	/* accordion - title */
    $('.accordion').accordion({ 
	    header: 'div.title', 
	    active: false, 
	    alwaysOpen: false, 
	    autoheight: false
	});
	
	/* accordion - subtitle 
	$("#accordion ul.sub").hide();
	$("#accordion .subtitle").click(function () {
		if (!$(this).hasClass('selected2')) {
			$('.selected2').next('ul').slideToggle();
			$('.selected2').toggleClass('selected2');
		}
		$(this).next('ul').slideToggle('slow');
		$(this).toggleClass('selected2');
	});*/

	/* fancybox
		remember to add an extra 60px height to video for title/video player */
		
				// 960x648 - dreamweaver cs4, dreamweaver cs3, javascript, shopping cart, wordpress
		$("a.iframe960x648").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 960,
			'height' : 708,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});	
		
				// 960x600 - photoshop CS3
		 $("a.iframe960x600").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 960,
			'height' : 660,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		
				// 950x680 - photoshop cs5 [CC]
		$("a.iframe950x680").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 950,
			'height' : 740,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});		
		
		// 800x600 - dreamweaver cs4, dreamweaver cs3, javascript, shopping cart, wordpress
		 $("a.iframe800x600").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 800,
			'height' : 660,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});	
		
		// 800x540 - jquery, advanced php
		 $("a.iframe800x540").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 800,
			'height' : 600,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		 
		// 800x450- misc web design
		 $("a.iframe800x450").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 800,
			'height' : 510,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 716x368 - CSS videos
		 $("a.iframe716x368").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 716,
			'height' : 428,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
			
		// 716x364 - beginner's php
		 $("a.iframe716x364").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 716,
			'height' : 424,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 700x420 - web design 1
		 $("a.iframe700x420").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 700,
			'height' : 460,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 704x421 - web design 1
		 $("a.iframe704x381").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 704,
			'height' : 421,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 716x420 - dreamweaver mx
		 $("a.iframe716x420").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 716,
			'height' : 460,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 760x438 - flash mx
		 $("a.iframe760x438").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 760,
			'height' : 478,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 640x480 - actionscript 2, flash cs4
		 $("a.iframe640x480").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 640,
			'height' : 540,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 640x432 - actionscript 2, flash cs4
		 $("a.iframe640x432").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 640,
			'height' : 492,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});


		// 640x360 - web design 1 video
		 $("a.iframe640x360").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 640,
			'height' : 420,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});
		
		// 400x20 - audio content
		 $("a.iframe400x20").fancybox({
			'overlayShow' : true,
			'zoomSpeedIn' : 500, 
			'zoomSpeedOut' : 500,
			'width' : 400,
			'height' : 60,
			'type': 'iframe','margin': 0,'autoScale': false,'scrolling':'no'		 
		});

});

