<window 
	name="Creditsmain"
	default_size="Credits.psd|chassis"
	hitstyle="drag"  
	transparent="true" 
	shape="creditsmain_shape"
	>

	
			<dock_point type="Slave" name="Remote_UL" alignment="lowerleft" /> 
			<dock_point type="Slave" name="Remote_UR" alignment="lowerright" /> 
			<dock_point type="Slave" name="Remote_LL" alignment="upperleft" /> 
			<dock_point type="Slave" name="Remote_LR" alignment="upperright" /> 
			
			<dock_point type="slave" name="Frame_UR" alignment="upperleft" />
			<dock_point type="slave" name="Frame_UL" alignment="upperright" /> 
			<dock_point type="slave" name="Frame_LL" alignment="lowerright" /> 
			<dock_point type="slave" name="Frame_LR" alignment="lowerleft" /> 
		
			<dock_point type="slave" name="MonitorUL" alignment="upperleft" /> 
			<dock_point type="slave" name="MonitorUR" alignment="upperright" /> 
			<dock_point type="slave" name="MonitorLL" alignment="lowerleft" /> 
			<dock_point type="slave" name="MonitorLR" alignment="lowerright" /> 
	
	<imagestyle name="background">
		<raster 
			source="Credits.psd|chassis" opacity="1"
		/>
	</imagestyle>
	<shape name="creditsmain_shape">
		<shape_raster source="Credits.psd|chassis" alignment="entire" />
	</shape>

	<? include menu.mml ?>	

			
<?macrodef creditbutton 
	<window 
		name="$(name)" 
		type="button" 
		offset="Credits.psd|$(name) @ Credits.psd|chassis" 
		transparent="true"
		hitstyle="active"
		shape="$(name)_shape"
	>

		<shape name="$(name)_shape">
			<shape_raster source="Credits.psd|$(name)" />
		</shape>

		<property hover="true" hoverhint="$(hint)" />

		<imagestyle name="state0">
			<raster 
				source="Credits.psd|$(name)" 
				alignment="entire"
				blendmode="PS_NORMAL" 
				state="normal"
				opacity="0.90"
			/>
			<raster 
				source="Credits.psd|$(name)" 
				alignment="entire"
				blendmode="PS_LIGHTEN" 
				state="hover"
				opacity="1"
			/>
			<raster 
				source="Credits.psd|$(name)" 
				alignment="entire"
				blendmode="PS_HARDLIGHT" 
				state="hit"
				opacity="1"
			/>
		</imagestyle>
		<?macroins $(extra) ?$>

	</window>
?>	



<?macrodef wleft_script
	<script name=OnMouseOver> 
		:sonique.Status("Scroll Left"); 
	</script> 
	<script name="OnClick">
		if (clickerstate==0){
			HideSlides();
			Thanks.Show();	
			clickerstate=1;
		}else if (clickerstate==1){
			HideSlides();
			Hotkeys1.Show();
			clickerstate=2;
		}else if (clickerstate==2){
			HideSlides();
			Hotkeys2.Show();
			clickerstate=3;
		}else if (clickerstate==3){
			HideSlides();
			Why1.Show();
			clickerstate=4;
		
		}else {	HideSlides();
			Why2.Show();
			clickerstate=0;
		}
		
	</script> 
?>

<?macrodef wright_script
	<script name=OnMouseOver> 
		:sonique.Status("Scroll Right"); 
	</script> 
	<script name="OnClick">
		if (clickerstate==0){
			HideSlides();
			Thanks.Show();	
			clickerstate=1;
		}else if (clickerstate==1){
			HideSlides();
			Hotkeys1.Show();
			clickerstate=2;
		}else if (clickerstate==2){
			HideSlides();
			Hotkeys2.Show();
			clickerstate=3;
		}else if (clickerstate==3){
			HideSlides();
			Why1.Show();
			clickerstate=4;
		
		}else {	HideSlides();
			Why2.Show();
			clickerstate=0;
		}
		
	</script> 
?>

	<window 
		name="Hotkeys1"
		type="generic"
		offset="Credits.psd|hotkeys1 @ Credits.psd|chassis"
		hitstyle="none"
		transparent="true"
		shape="hotkeys1_shape"
	>
		<shape name="hotkeys1_shape">
			<shape_raster source="Credits.psd|hotkeys1" />
		</shape>
		<imagestyle name="background">
			<raster source="Credits.psd|hotkeys1" blendmode="PS_Normal" />
		</imagestyle>
	</window>
	
	<window 
		name="Hotkeys2"
		type="generic"
		offset="Credits.psd|hotkeys2 @ Credits.psd|chassis"
		hitstyle="none"
		transparent="true"
		shape="hotkeys2_shape"
	>
		<shape name="hotkeys2_shape">
			<shape_raster source="Credits.psd|hotkeys2" />
		</shape>
		<imagestyle name="background">
			<raster source="Credits.psd|hotkeys2" blendmode="PS_Normal" />
		</imagestyle>
	</window>
	
	<window 
		name="Thanks"
		type="generic"
		offset="Credits.psd|thanks @ Credits.psd|chassis"
		hitstyle="none"
		transparent="true"
		shape="thanks_shape"
	>
		<shape name="thanks_shape">
			<shape_raster source="Credits.psd|thanks" />
		</shape>
		<imagestyle name="background">
			<raster source="Credits.psd|thanks" blendmode="PS_Normal" />
		</imagestyle>
	</window>

	<window 
		name="Why1"
		type="generic"
		offset="Credits.psd|why1 @ Credits.psd|chassis"
		hitstyle="none"
		transparent="true"
		shape="why1_shape"
	>
		<shape name="why1_shape">
			<shape_raster source="Credits.psd|why1" />
		</shape>
		<imagestyle name="background">
			<raster source="Credits.psd|why1" blendmode="PS_Normal" />
		</imagestyle>
	</window>

	<window 
		name="Why2"
		type="generic"
		offset="Credits.psd|why2 @ Credits.psd|chassis"
		hitstyle="none"
		transparent="true"
		shape="why2_shape"
	>
		<shape name="why2_shape">
			<shape_raster source="Credits.psd|why2" />
		</shape>
		<imagestyle name="background">
			<raster source="Credits.psd|why2" blendmode="PS_Normal" />
		</imagestyle>
	</window>

	<window 
		name="Creditslabel"
		type="generic"
		offset="Credits.psd|creditslabel @ Credits.psd|chassis"
		hitstyle="none"
		transparent="true"
		shape="creditslabel_shape"
	>
		<shape name="creditslabel_shape">
			<shape_raster source="Credits.psd|creditslabel" />
		</shape>
		<imagestyle name="background">
			<raster source="Credits.psd|creditslabel" blendmode="PS_Normal" />
		</imagestyle>
	</window>
	
	<?macroins creditbutton name="minimize" hint="Minimize"  extra="minimize_script" ?>
	<?macroins creditbutton name="close" hint="Close"  extra="close_script" ?>
	<?macroins creditbutton name="menu" hint="Show Menu"  extra="menu_script" ?>
	<?macroins creditbutton name="left" hint="Left"  extra="wleft_script" ?>
	<?macroins creditbutton name="right" hint="Right"  extra="wright_script" ?>


	<script name="OnInit">
		HideSlides();
		Thanks.Show();
		clickerstate=1;	
		if ( :sonique.prefs.DoesSectionExist("Winampish") ) {
				$posx = :sonique.prefs.GetString( "Winampish", "PosX" );
				$posy = :sonique.prefs.GetString( "Winampish", "PosY" );
				SetLocation( {$posx,$posy}, 0, 0, "linear", false, false );
		}
		if( :sonique.prefs.DoesSectionExist("Universal") == false )
		{
			:sonique.prefs.CreateSection("Universal");
		}
		:sonique.prefs.PrepString("Universal","AlwaysOnTop","false");
	</script>

	<script name="HideSlides">
		Hotkeys1.Hide();
		Hotkeys2.Hide();
		Thanks.Hide();
		Why1.Hide();
		Why2.Hide();
	</script>

	<script name="OnRightButtonDown" >
		revilmenu.Show();
  	</script>	
	
	<script name="OnLeftButtonUp">
		revilmenu.Hide();
		men=0;   
	</script>
	
</window>