function css() {
	
	
	if($.browser.msie){
		$('input[@type="password"], input[@type="text"], textarea, a').focus(function(){ $(this).addClass('focus'); });
		$('input[@type="password"], input[@type="text"], textarea, a').blur(function(){ $(this).removeClass('focus'); });
	}
	
	$('.fotogaleria a').not('.zoom').prepend('<span></span>');

	if($('body h1').is('.hd-item') == true){
			// pobiera wartosc id naglowna h1
		var $pageID = $('body h1').attr('id');
			// dzieli wartosc id naglowna h1, separatorem jest spacja
			// z utworzonej tablicy bierze pierwszy rekord
		var $fotoID = $('body h1').attr('id').split('-')[1];
		
		var foto = new Image();
			// budowanie sciezki
		var path = 'i/foto-'+$fotoID+'.png';
		
		foto.src = path;
			// jezeli fotka jest zaladowana, wstawia ja do html
			// pobiera jej szerokosc i wysokosc...
		
		
		if (($pageID == 'hd-item3') || ($pageID == 'hd-item7')) { }
		else{
			//alert($pageID);
			$(foto).load( function() { 
				$('#strona').append('<img src="'+path+'" alt="fotosprinter foto" id="extra-'+$fotoID+'" class="extra-foto" />');
			
				var w = $('.extra-foto').width();
				var h = $('.extra-foto').height();
				
					// IE...	
					// ... zmienia src na transparentne, ustawia wymiary oraz filtr
				if($.browser.msie){
					$('.extra-foto').attr('src', 'js/transparent.gif');
					$('img.extra-foto').css({width: w, height: h, background: 'none', filter: 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+path+'",sizingMethod="scale")'});
				}
			});
		}
		
	}

	if($('form').is('#order-form') == true) { $('#Data').calendar(); }


	if($('body').is('#homepage') == true) {
		$('#homepage h1').flash({
		
			src: 'F1.swf', 
			wmode: 'transparent',
			width: 519,
			height: 429
		});
	
		$('#homepage #h2').flash({
		
			src: 'F2.swf', 
			wmode: 'transparent',
			width: 480,
			height: 230
		});	
	}
	
	
	/** 
	 * Zakładki cenowe w ofercie
	 *
	$('.oferta strong').click(function(){
		if($(this).is('.active')){
			$(this).removeClass('active');
			$(this).next('ul').hide();
		}
		else {
			$(this).addClass('active');
			$(this).next('ul').show();
		}
		
		
	
	});
	*/
}

$(document).ready(css);
