	$(document).ready(function(){
			
	//activate the lightbox
jQuery('a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg]').prettyPhoto({theme: "light_square"});


// here you can see the slide options I used in the demo page. depending on the id of the slider a different setup gets activated
$('#frontpage-slider').aviaSlider({	
	blockSize: {height: 'full', width:40},
	display: 'topleft',
	transition: 'drop',
	autorotationSpeed:8,
	betweenBlockDelay:20,
	animationSpeed: 200,
	appendControlls:"",
	backgroundOpacity:0.9

});	
$('#artslider').aviaSlider({	
	blockSize: {height: 'full', width:40},
	display: 'topleft',
	transition: 'drop',
	autorotationSpeed:8,
	betweenBlockDelay:20,
	animationSpeed: 200,
	appendControlls:"",
	backgroundOpacity:0.9

});		
			$('.quickflip-wrapper').quickFlip();

    $(function() {
        $('.blog').click(function(e) {
            e.preventDefault();
            var $this = $(this);
            var horizontalPadding = 30;
            var verticalPadding = 30;
            $('<iframe name="resize" id="blogframe" class="externalSite" scrolling="yes" frameborder="0" src="' + this.href + '" />').dialog({
                title: 'Blog',
                autoOpen: true,
                width: 750,
				minHeight: 300,
                modal: true,
				draggable: false,
                resizable: false,
                autoResize: true,
				position: ['center',15]
            }).width(750 - horizontalPadding).height($(window).height() - 95);            
        });
    });	

	$(function() {
        $('.contact').click(function(e) {
            e.preventDefault();
            var $this = $(this);
            var horizontalPadding = 30;
            var verticalPadding = 30;
            $('<iframe id="externalSite" class="externalSite" src="' + this.href + '" />').dialog({
                title: 'Contact Me',
                autoOpen: true,
                width: 660,
				minHeight: 300,
                modal: false,
                resizable: false,
                autoResize: true,
				position: ['center',15]
            }).width(660 - horizontalPadding).height(514);            
        });
    });	
	
	$("#dialog").fadeTo(0,0);

	$(function() {
		$('.work')
			.click(function() {
				$("#dialog").fadeTo(0,1);
				
				$('#dialog').dialog({
				title: 'Web Design Portfolio',
                autoOpen: true,
                width: 480,
                modal: false,
                resizable: false,
			});
		});
	});
	$("#dialog2").fadeTo(0,0);
	$(function() {
		$('.artwork')
			.click(function() {
				$("#dialog2").fadeTo(0,1);
				
				$('#dialog2').dialog({
				title: 'Artwork Portfolio',
                autoOpen: true,
                width: 480,
                modal: false,
                resizable: false,
			});
		});
	});
	$(function() {
		$('.twitter')
			.click(function() {
				$('#dialogTwitter').dialog({
				title: 'BorisKourt on Twitter',
                autoOpen: true,
                width: 480,
                modal: false,
                resizable: false,
			});
		});
	});
	$(function() {
		$('.about')
			.click(function() {
				$('#dialogAbout').dialog({
				title: 'About Me',
                autoOpen: true,
               width: 670,
		
                modal: false,
                resizable: false,
				position: [15,15]
			});
		});
	});
	$(function() {
		$('.artabout')
			.click(function() {
				$('#dialogAboutArt').dialog({
				title: 'About Me',
                autoOpen: true,
               width: 670,
                modal: false,
                resizable: false,
				position: [15,15]
			});
		});
	});
	var doFadeIn = function() {
		$('#dialog, #dialog2').css({ display:'none'});
	};
	$('body').one('mousemove',doFadeIn);
	$('#s').one('blur',doFadeIn);


$(".toolt").tooltip({

	// place tooltip on the right edge
	position: "bottom center",

	// a little tweaking of the position
	offset: [10, 0],
	delay: 0,
	predelay: 3,
	// use the built-in fadeIn/fadeOut effect
	effect: "fade",
	 effect: 'slide',

	// custom opacity setting
	opacity: 1,
	tipClass: 'tooltop'

});
$(".tooll").tooltip({

	// place tooltip on the right edge
	position: "center left",

	// a little tweaking of the position
	offset: [10, -15],
	delay: 0,
	predelay: 3,
	// use the built-in fadeIn/fadeOut effect
	effect: "fade",
	 effect: 'slide',

	// custom opacity setting
	opacity: 1

});
$(".toolr").tooltip({

	// place tooltip on the right edge
	position: "center right",

	// a little tweaking of the position
	offset: [10, 15],
	delay: 0,
	predelay: 3,
	// use the built-in fadeIn/fadeOut effect
	effect: "fade",
	 effect: 'slide',

	// custom opacity setting
	opacity: 1

});
$(".toolb").tooltip({

	// place tooltip on the right edge
	position: "bottom center",

	// a little tweaking of the position
	offset: [15, 0],
	delay: 0,
	predelay: 3,
	// use the built-in fadeIn/fadeOut effect
	effect: "fade",
	 effect: 'slide',

	// custom opacity setting
	opacity: 1

});

$('#jTweets').jTweetsAnywhere({
    username: 'boriskourt',
    count: 3,
	tweetProfileImagePresent: true
});



});
