If Else Statements in jQuery - *issues*

If Else Statements in jQuery - *issues*

Ok so I am attempting to make an image fader, it has two arrows that appear when you mouse over the right or left had side parts of the image. 

When you click the right arrow, I want the image to fade into the next one, so I wrote up this code:

  1.   $('#rightclick').click(
  2.   function(){
  3.     if('#linkone'.opacity="1") {
  4.   $('#linktwo').animate({"opacity": "1"}, (500));
  5.   $('#linkone').animate({"opacity": "0"}, (250));
  6.   } else if('#linktwo'.opacity="1"){
  7.       $('#linkthree').animate({"opacity": "1"}, (500));
  8.   $('#linktwo').animate({"opacity": "0"}, (250));
  9.   } else if('#linkthree'.opacity="1"){
  10.   $('#linkfour').animate({"opacity": "1"}, (500));
  11.   $('#linkthree').animate({"opacity": "0"}, (250));
  12.   } else if('#linkfour'.opacity="1"){
  13.   $('#linkone').animate({"opacity": "1"}, (500));
  14.   $('#linkfour').animate({"opacity": "0"}, (250));
  15.   }
  16.   });
It works for the first slide, but none after that. Has anyone ever had this issue and solved it or does anyone have any ideas on how to do so?

(Progress can be viewed here: http://benjaminpotter.org/Simak/