 


 $(document).ready(function() {
   $("a[rel='example1']").colorbox();
				$("a[rel='example2']").colorbox({transition:"fade"});
				$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
				$("a[rel='example4']").colorbox({slideshow:true});
				$(".single").colorbox({}, function(){
					alert('Howdy, this is an example callback.');
				});
				$(".colorbox").colorbox();
				$(".youtube").colorbox({iframe:true, width:650, height:550});
				
				$(".contactform").colorbox({width:"600", height:"500", scrolling:false, iframe:true});
				
				$(".iframe").colorbox({width:450, height:575, iframe:true})
				
				$(".inlinedesign").colorbox({width:"600", inline:true, href:"#inlinedesign"});
				$(".inlinemarketing").colorbox({width:"600", inline:true, href:"#inlinemarketing"});
				$(".inlinesoftware").colorbox({width:"600", inline:true, href:"#inlinesoftware"});
				
			$(".inlinesocial").colorbox({width:"600", inline:true, href:"#inlinesocial"});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
				
				
 	$("a.open_overlay").click(function(){
			
			if($.browser.msie){
			
				var cssObj = {
				        backgroundImage: "none",
				        backgroundColor: "black",
				        filter: "alpha(opacity=80)"
				}

				$("div#overlay_bg").css(cssObj).fadeIn('slow');
				$("div#overlay_menu").fadeIn('slow');
				return false; 
				
			} else {

				$("div#overlay_bg").fadeIn('slow');
				$("div#overlay_menu").fadeIn('slow');
				return false;
				
			}
		});
		
		$("a#close_link").click(function(){
			$("div#overlay_bg").hide();
			$("div#overlay_menu").hide();
			return false; 
		});
		
    var docHeight = $(document).height(); 
		$('div#overlay_bg').css("height",docHeight);
 
		$('div#overlay_menu div a').hover(function() {
			$(this).parent().addClass('hovered');
			}, function() {
			$(this).parent().removeClass('hovered');
			});
		/*
		$("a#open_overlay").click(function(){
			
			if($.browser.msie){
			
				var cssObj = {
				        backgroundImage: "none",
				        backgroundColor: "black",
				        filter: "alpha(opacity=80)"
				}

				$("div#overlay_bg").css(cssObj).fadeIn('slow');
				$("div#overlay_menu").fadeIn('slow');
				return false; 
				
			} else {

				$("div#overlay_bg").fadeIn('slow');
				$("div#overlay_menu").fadeIn('slow');
				return false;
				
			}
		});
		
		$("a#close_link").click(function(){
			$("div#overlay_bg").hide();
			$("div#overlay_menu").hide();
			return false; 
		});
		
    var docHeight = $(document).height(); 
		$('div#overlay_bg').css("height",docHeight);
 
		$('div#overlay_menu div a').hover(function() {
			$(this).parent().addClass('hovered');
			}, function() {
			$(this).parent().removeClass('hovered');
			});

   */
   
 });

