tell application "iChat"
	
	activate
	
	set chat_message to {}
	
	set chat_string to ("Lass uns Big Bang " & game_name & " for Mac OS X spielen. Ich glaube, dass Du es nicht hast. Hier ist es." as string)
	
	
	set chat_message to chat_message & chat_string
	set chat_message to chat_message & "Wenn Du spielbereit bist, gebe mir Bescheid, und ich lade Dich zu einem Spiel ein."
	
	repeat with j from 1 to the number of services
		
		repeat with i from 1 to the number of accounts of item j of services
			
			if (id of item i of accounts of item j of services as string) is equal to target_id then
				
				set user_status to status of item i of accounts of item j of services
				set user_idle to idle time of item i of accounts of item j of services
				
				if user_status is available and user_idle is 0 then
					
					repeat with k from 1 to the number of items of chat_message
						send item k of chat_message to item i of accounts of item j of services
					end repeat
					
					--send ("Big Bang " & game_name & "" as string) to item i of accounts of item j of services
					
					set frontmost to true
					
					return true
					
				end if
			end if
			
		end repeat
		
	end repeat
	
	return false
end tell
