/*
Auto Maximize Window Script- By Nick Lowe (nicklowe@ukonline.co.uk)
For full source code, 100's more free DHTML scripts, and Terms Of Use
Visit http://www.dynamicdrive.com
*/
		top.window.moveTo(0,0);
		if (document.all) {
			top.window.resizeTo(screen.availWidth,screen.availHeight);
		}
		else if (document.layers||document.getElementById) {
			if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
				top.window.outerHeight = screen.availHeight;
				top.window.outerWidth = screen.availWidth;
			}
		}

//FLASH checking
		var MM_contentVersion = 6;
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if ( plugin ) {
				var words = navigator.plugins["Shockwave Flash"].description.split(" ");
				for (var i = 0; i < words.length; ++i)
				{
				if (isNaN(parseInt(words[i])))
				continue;
				var MM_PluginVersion = words[i]; 
				}
			var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
		}
		else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
		   && (navigator.appVersion.indexOf("Win") != -1)) {
			document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); 
			//FS hide this from IE4.5 Mac by splitting the tag
			document.write('on error resume next \n');
			document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
			document.write('</SCR' + 'IPT\> \n');
		}
		if ( MM_FlashCanPlay==0 ) {
			top.location.href='errorflash.html';
		} 

//PRELOADER
		// You may modify the following:
			var locationAfterPreload = "" // URL of the page after preload finishes
			var lengthOfPreloadBar = 340 // Length of preload bar (in pixels)
			var heightOfPreloadBar = 17 // Height of preload bar (in pixels)
			// Put the URLs of images that you want to preload below (as many as you want)
			var yourImages = new Array("trendy\baleyage.jpg","trendy\color.jpg","trendy\cut.jpg","trendy\odzywianie.jpg","trendy\prostowanie.jpg","trendy\trwala.jpg","images\czesanie.jpg","images\widok.gif")

		// Do not modify anything beyond this point!
		if (document.images) {
			var dots = new Array() 
			dots[0] = new Image(1,1)
			dots[0].src = "" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
			dots[1] = new Image(17,17)
			dots[1].src = "" // color of bar as preloading progresses (same note as above)
			var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
			var loaded = new Array(),i,covered,timerID
			var leftOverWidth = lengthOfPreloadBar%coverage
		}
		function loadImages() { 
			for (i = 0; i < yourImages.length; i++) { 
				preImages[i] = new Image()
				preImages[i].src = yourImages[i]
			}
			for (i = 0; i < preImages.length; i++) { 
				loaded[i] = false
			}
			checkLoad()
		}
		function checkLoad() {
			if (currCount == preImages.length) { 
				return
			}
			for (i = 0; i <= preImages.length; i++) {
				if (loaded[i] == false && preImages[i].complete) {
					loaded[i] = true
					eval("document.img" + currCount + ".src=dots[1].src")
					currCount++
				}
			}
			timerID = setTimeout("checkLoad()",10) 
		}





		// It is recommended that you put a link to the target URL just in case if the visitor wants to skip preloading
		// for some reason, or his browser doesn't support JavaScript image object.
		if (document.images) {
			loadImages()
		}

