Is the South Pole of an electromagnet always at the end where current is drawn into it? I'm trying to determine in which direction a magnetic field will be produced in regards to the direction of current in an electromagnet. Will the end of the electromagnet from which current is drawn from always be the south pole? Or does it depend on the direction of coils (ie clockwise or anti-clockwise)? 
Also, are the magnetic poles in either of the pictured electromagnets in the wrong position in respect to current flow and rotation of the coil?
 A: It depends on the sense of circulation of the current in the wire of the solenoid. If you take the solenoid in your right hand so that curved fingers copy direction of current in the wires, the thumb will show direction of magnetic field inside the solenoid. It thus points to the "north pole" of the electromagnet.
This picture may help to understand this rule:
http://etc.usf.edu/clipart/35600/35671/rhrsole_35671.htm
Therefore, the direction of the magnetic field does not depend only on which end of the solenoid the current enters the solenoid, but also on whether the wire is a right-handed or left-handed helix.
A: Imagine that instead of a solenoid you have only one loop, apply Lenz law, that would give you the direction of the magnetic field lines generated by the electric current. Compare the field lines' pattern to the one which corresponds to the magnetic field lines of a natural magnet. Then change the direction of the current in the coil, and do the same analysis again.
What you should get at the end is that the poles' orientation of your electromagnet should depend on the direction of the current in the loops of a solenoid.
A: Regarding your question about a pole position error in either of the pictured electromagnets. No they are both correct. If you visualize wrapping the fingers of your right hand around those electromagnets in the direction of current flow, you will find your thumb points to N pole in both cases. You do have to look carefully at the left hand pictured electromagnet to know that the current flows over the top and down the backside. Note that it shows the wire colored tan and the lines of force blue. Look to see which color blocks the other.
