﻿jQuery(document).ready(function() {

	$("a.form").fancybox({
	    'titleShow'     : false,
	});
	
    $("div.thumb_handle a").fancybox({ 
		'padding'       : 0,
		'titlePosition' : 'over'
    });

    $("div.thumb_handle_big a").fancybox({ 
		'padding'       : 0,
		'titlePosition' : 'over'
    });
	
	$("a[rel=vks]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Attēls ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		}
	});
	
	$("a[rel=handle]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'padding'           : 0,
	});
	
	$("a[rel=apd]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
	});
	
	$("a[rel=mod]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
	});

	$("a[rel=glass]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
	});
			
    $("a.forma").fancybox({
      'width'         : 580,
      'height'        : 520,
      'autoScale'     : false,
      'transitionIn'  : 'none',
      'transitionOut' : 'none',
      'type'          : 'iframe'
    });
	
    $("a#buy").fancybox({
      'width'         : 580,
      'height'        : 520,
      'autoScale'     : false,
      'transitionIn'  : 'none',
      'transitionOut' : 'none',
      'type'          : 'iframe'
    });

$(document).ready(function(){
    $("#download").corner();
    });
});

