// JavaScript Document

	i= 0;
	deg2rad = Math.PI * 2 / 360;

	function SetRotation(deg)
	{
    	rad = deg * deg2rad;

	    costheta = Math.cos(rad);
    	sintheta = Math.sin(rad);

	    vertical.filters.item(0).M11 = costheta;
	    vertical.filters.item(0).M12 = -sintheta;
	    vertical.filters.item(0).M21 = sintheta;
	    vertical.filters.item(0).M22 = costheta;
	}
	function GetCurrentMatrix()
	{
	    M11.value = vertical.filters.item(0).M11;
	    M12.value = vertical.filters.item(0).M12;
	    DX.value  = vertical.filters.item(0).DX;
	    M21.value = vertical.filters.item(0).M21;
	    M22.value = vertical.filters.item(0).M22;
	    DY.value  = vertical.filters.item(0).DY;
	}

/*JQUERY CAROUSEL*/
stepcarousel.setup({
	galleryid: 'carousel', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:true, moveby:1, pause:3000},
	panelbehavior: {speed:150, wraparound:false, persist:true},
	defaultbuttons:{enable:false},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})
