//<![CDATA[


$().ready(function()
		{
    
// See which font size the user wants
		$(".fontResizer a").click(function() {
			switch ($(this).attr("class")) {
				case 'small'	: setFontSize(.8);	break;
				case 'large'	: setFontSize(1.2);	break;
				default			: setFontSize(1);	break;
			}
			$(".fontResizer a").removeClass('actual_size');
			$(this).addClass('actual_size');
			return false;
		});

		// Set the font size and set a cookie
		function setFontSize(size) {
            $("div.text_area").animate({fontSize: size+"em"}, 500).fadeIn("slow");
			createCookie(size);
		}

		// Create and read coookies
		// Code functions by: Peter-Paul Koch
		// http://www.quirksmode.org/js/cookies.html
		function createCookie(value) {
			var date = new Date();
			date.setTime(date.getTime()+(30*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
			document.cookie = "font_size="+value+expires+"; path=/";
		}

		function readCookie() {
			var nameEQ = "font_size=";
			var ca = document.cookie.split(';');
			for(var i=0;i < ca.length;i++) {
				var c = ca[i];
				while (c.charAt(0)==' ') c = c.substring(1,c.length);
				if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
			}
			return 1;
		}
			
 $("table tr:nth-child(2n+1)").addClass("grey_td");    
      
        $("div.thumb").hover(function() {

	$(this).css({'z-index' : '500'}); /*Add a higher z-index value so this image stays on top*/ 
	$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
		.animate({
		
			top: '-50px',
			left: '100px',
			width: '300px', /* Set new width */
		
			padding: '20px'
		}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */

	} , function() {
	$(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
	$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
		.animate({
			marginTop: '0', /* Set alignment back to default */
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '160px',
		
			padding: '5px'
		}, 400);
});          
      
      
      });
          //]]>
          
/*Fragment - powiekszanie obrazkow*/

          
          
   var startZoom = 14;

var map;


function addMarker(latitude, longitude, description) {
var marker = new GMarker(new GLatLng(latitude, longitude));
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(description);
}
);
map.addOverlay(marker);
}    
function load() {
var centerLongitude = '51.221819333890465'; 
var centerLatitude = '22.573803663253784';

var markers = [
{
'latitude': '51.221819333890465', 
'longitude': '22.573803663253784',  
'name': 'BioMaxima Spółka Akcyjna<br /> ul. Mireckiego 29-31, 20-460 Lublin'
}
];


if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("articleMap"));
map.addControl(new GLargeMapControl()); 
         var MapTypes = map.getMapTypes(); 
            
          
         MapTypes[0].getName= function() { return "Mapa";} 
         MapTypes[1].getName = function() { return "Satelitarna";} 
         MapTypes[2].getName = function() { return "Hybrydowa";} 
         map.addControl(new GMapTypeControl()); 
map.setCenter(new GLatLng(centerLongitude,centerLatitude), startZoom);
  for(id = 0; id < markers.length; id++) {
  addMarker(markers[id].latitude, markers[id].longitude, markers[id].name);
  }
}
}

