Cufon.set('textShadow', '2px 2px 0 #6f0e0f');
Cufon.set('color', '#ffffff');
Cufon.set('fontStretch', 'expanded');
Cufon('h1, h2, h3, h4');

Cufon.set('color', '#c1012e');
Cufon.set('textShadow', 'none');
Cufon('.produktBox h2, .mealBox h2, .produktBoxOther h3, h2.inneProdukty, h1.produktName, h1.mealName, h1.mealNameB, #content h2, #content h3, #content h4');

jQuery(document).ready(function(){
	jQuery('#header').flash({
		src: 'assets/templates/pudliszki/header.swf',
		width: 1094,
		height: 346,
		wmode: 'transparent'
	});

	jQuery('#topMenu').flash({
		src: 'assets/templates/pudliszki/menu.swf',
		width: 1094,
		height: 600,
		flashvars: {menuXML:'menu.html'},
		wmode: 'transparent',
		scale: 'noscale',
		align: 'top'
	});
	
	jQuery('#slider').flash({
		src: 'assets/templates/pudliszki/slider.swf',
		width: 1094,
		height: 250,
		wmode: 'transparent',
		flashvars: {xml_file:'slider.html'}
	});

jQuery('#slider2').flash({
		src: 'assets/templates/pudliszki/slider.swf',
		width: 1094,
		height: 250,
		wmode: 'transparent',
		flashvars: {xml_file:'slider2.html'}
	});
	
	jQuery('#mapaMiejsc').flash({
		src: 'assets/flash/mapa.swf',
		width: 924,
		height: 600,
		wmode: 'transparent'
	});
	
	jQuery('#gamePuzzle').flash({
		src: 'assets/flash/puzzle.swf',
		width: 924,
		height: 714,
		wmode: 'transparent'
	});
	
	jQuery('#gameMemo').flash({
		src: 'assets/flash/memo.swf',
		width: 924,
		height: 714,
		wmode: 'transparent'
	});
	
	jQuery('#gameMaluj').flash({
		src: 'assets/flash/maluj.swf',
		width: 924,
		height: 714,
		wmode: 'transparent'
	});
	
	jQuery('#gamePomidory').flash({
		src: 'assets/flash/pomidory.swf',
		width: 924,
		height: 714,
		wmode: 'transparent'
	});
	
	jQuery('#gameMalowanki').flash({
		src: 'assets/flash/ukladanka.swf',
		width: 780,
		height: 610,
		wmode: 'transparent'
	});
	
	jQuery('#toFriend').jqm({trigger: 'a.toFriendTrigger', overlay: 50, modal: true});
});

function ResizeFlash(newWidth,newHeight){
    if(newWidth){
        jQuery("#topMenu").css("width",newWidth);
    }
    if(newHeight){
        jQuery("#topMenu").css("height",newHeight);
    }	
}

jQuery(function(){
	jQuery("#printButton").click( function() {
		jQuery('#content').jqprint();
		return false;
	});

	jQuery('#header2').flash({
		src: 'assets/templates/pudliszki/header2.swf',
		width: 1094,
		height: 346,
		wmode: 'transparent'
	});

 });
