(function($)
{ 
   jQuery(document).ready(function() {
      jQuery = jQuery.noConflict();
      jQuery('li.item61 ul li a').click(function()
      {
         switchStylestyle(jQuery(this).children().text());

         return false;
         
      });
  //    var c = jQuery.cookie('style');
      // if (c) switchStylestyle(c);
   });

   function switchStylestyle(styleName)
   {
      jQuery('link[@rel*=style][title]').each(function(i)
      {
         this.disabled = true;
         if (this.getAttribute('title') == styleName) this.disabled = false;
      });
         // jQuery.cookie('style', styleName, { expires: 2 });
         var newsflashheight = jQuery('#newsflashBG').height();  
         
         //Style 1
         if (newsflashheight == '476') {jQuery('#mainlevel-bg').css("margin-top","0px");}
         //Style 2
         if (newsflashheight == '708') {jQuery('#mainlevel-bg').css("margin-top","-202px");}
         //Style 3
         if (newsflashheight == '603') {jQuery('#mainlevel-bg').css("margin-top","-108px");}
         // Style 4             
         if (newsflashheight == '473') {jQuery('#mainlevel-bg').css("margin-top","0px");}
         // Style 5            
         if (newsflashheight == '542') {jQuery('#mainlevel-bg').css("margin-top","-100px");}
         // Style 6           
         if (newsflashheight == '526') {jQuery('#mainlevel-bg').css("margin-top","-82px");}
         //Style 7
         if (newsflashheight == '666') {jQuery('#mainlevel-bg').css("margin-top","-230px");}
         //Style 8
         if (newsflashheight == '708') {jQuery('#mainlevel-bg').css("margin-top","-202px");}
         //Style 9
         if (newsflashheight == '952') {jQuery('#mainlevel-bg').css("margin-top","-470px");}
         // Style 10             
         if (newsflashheight == '950') {jQuery('#mainlevel-bg').css("margin-top","-460px");}
         // Style 11            
         if (newsflashheight == '870') {jQuery('#mainlevel-bg').css("margin-top","-370px");}
         // Style 12           
         if (newsflashheight == '1286') {jQuery('#mainlevel-bg').css("margin-top","-670px");}

   }
})(jQuery); 
