/* Delay plugin */
	$.fn.delay = function( time, name ) {

	    return this.queue( ( name || "fx" ), function() {
	        var self = this;
	        setTimeout(function() { $.dequeue(self); } , time );
	    } );
	
	};


/* Start jQuery stuff: */

$(function() {

// Use rel="external" on links to open in a new window
    $('a[rel=external]').click(function(){
		window.open(this.href);
		return false;
	});


// a quick & dirty <hr> fix for IE6
	if($.browser.msie && $.browser.version < 7) {
		$("hr").wrap('<div class="ieHrFix"></div>');
	}


// Create the ToolTips

	$('p a[title], li a[title], p a[rel]').qtip({ 
		style: { 
			name: 'dark', 
			tip: 'bottomLeft',
			background: '#000000',
			border: {
				width: 7,
				color: '#000000'
			}
		},
		position: {
		  corner: {
		     target: 'topRight',
		     tooltip: 'bottomLeft'
		  }
		}

	});

});



/* Start Shadowbox, keep this out of the jquery load above */

Shadowbox.init({
	language: 'en',
    players:    ['img', 'html', 'iframe']
});

