var globalleft=0; 

		$(function () {

			var msie6 = $.browser == 'msie' && $.browser.version <= 7;

		   if (!msie6) {

			 var top = $('#left').offset().top - parseFloat($('#left').css('margin-top').replace(/auto/, 0));

			$(window).scroll(function (event) {

			  // what the y position of the scroll is

			  var y = $(this).scrollTop();

			   // whether that's below the form

			  if (y >= top) {

				// if so, ad the fixed class

				$('#left').addClass('fixed');

				margintop=0;

					var high= $('#left').height();

				if($.browser.msie==true && $.browser.version=='7.0' )//browser is IE7

				{

					newleft=globalleft+85;

					margintop=-183;

					high=high-50;

				}

				else

				{

				margintop=-183;

					newleft=globalleft+97;

							high=high-50;

				}

		

		/*		$('#headermenu').css("left",(newleft-96)+"px");

		

		*//*$('#left.fixed').css("top","-223px");*/

		

		/*		$('#left').css("z-index","1000000000");

		

		*/

				var high= $('left').height();

				  } else {

				// otherwise remove it

				$('#left').removeClass('fixed');

			  }

			});

			 $(window).load(function (event) {

			  var y = $(this).scrollTop();

			   // whether that's below the form

			  if (y >= top) {

				// if so, ad the fixed class

				$('#left').addClass('fixed');

				margintop=0;

					var high= $('#left').height();

				if($.browser.msie==true && $.browser.version=='7.0' )//browser is IE7

				{

					newleft=globalleft+85;

					margintop=-173;

					high=high-50;

				}

				else

				{

					newleft=globalleft+97;

					margintop=-173;

					high=high-50;

				}

		

				var high= $('#left').height();

		

		/*		$('#headermenu').css("left",(newleft-96)+"px");

		

		*//*$('#left.fixed').css("top","-223px");*/

		

		/*		$('#left').css("z-index","1000000000");

		

		*/	     } else {

		

				// otherwise remove it

		

				$('#left').removeClass('fixed');

		

				/*$('#left').css("marginTop",(0)+"px");*/

		

			  }

			});

		  }  

		});

		$(function () {

  		  var msie6 = $.browser == 'msie' && $.browser.version <= 7;

  			 if (!msie6) {

			 var top = $('#headermenu').offset().top - parseFloat($('#headermenu').css('margin-top').replace(/auto/, 0));

   			 $(window).scroll(function (event) {

      // what the y position of the scroll is

     		 var y = $(this).scrollTop();

       // whether that's below the form

   			   if (y >= top) {

        // if so, ad the fixed class

				$('#headermenu').addClass('fixed');

				margintop=0;

				if($.browser.msie==true && $.browser.version=='7.0' )//browser is IE7

				{

				newleft=globalleft+85;

				margintop=55;

				}

				else

				{

				newleft=globalleft+97;

				}

/*		$('#headermenu').css("left",(newleft-96)+"px");

*/

				$('#headermenu').css("z-index","1000000000");

    			  } else {

        // otherwise remove it

				$('#headermenu').removeClass('fixed');

     			 }

   			 });

				 $(window).load(function (event) {

      // what the y position of the scroll is

   			    var y = $(this).scrollTop();

       // whether that's below the form

      			if (y >= top) {

        // if so, ad the fixed class

				$('#headermenu').addClass('fixed');

				margintop=0;

				if($.browser.msie==true && $.browser.version=='7.0' )//browser is IE7

				{

					newleft=globalleft+85;

					margintop=43;

				}

				else

				{

					newleft=globalleft+97;

				}

		/*		$('#headermenu').css("left",(newleft-96)+"px");

		*/

				$('#headermenu').css("z-index","1000000000");

				 } else {

				// otherwise remove it

				$('#headermenu').removeClass('fixed');

			  }

			});

		  }  

		});





