/**
 * Theme JS
 */

jQuery(document).ready(function(){

	// Scrollpane
	jQuery('#main').jScrollPane();
	
	// Trailer
	if (navigator.appName!="Microsoft Internet Explorer") {

		jQuery('a.trailerlink').colorbox({
			speed:200,
			/*initialWidth: 800,
			initialHeight: 600,*/
			innerWidth: 800,
			innerHeight: 600,
			scrolling: false
		});

	}

	// Share This
/*	jQuery('a.sharethis').colorbox({
		speed:200,
		initialWidth: 500,
		initialHeight: 400,
		innerWidth: 500,
		innerHeight: 400,
		scrolling: false,
		onComplete:function(){
			Cufon.replace('h2, h3, h4', {
				hover: true
			});

		}
	});*/


	// Remove title rollovers
	jQuery('a').removeAttr('title');
	jQuery('img').removeAttr('title');



	// Popup gallery
	/*jQuery( ".popup_gallery a" ).each(function( intIndex ){
		 
		jQuery( this ).bind ("click", function(){
											   
			// skal passe et array ID i stedet, bare intindex, så kan next prev osse virke
			showImage(jQuery(this).parent('li').children('span').html());

			return false;

		});
		 
	});*/
	
	jQuery('a.colorbox').colorbox({
	});








});


// Cufon
Cufon.replace('#top .widget_pages a, #main h1, #main h2, #main h3, #main h4', {
	hover: true
});
















