var SiteClass = new Class({

	b_href: null, // http z domeną (np. http://www.heban.net/)
	l_href: null, // adres strony (bez http i domeny, np. dla-ciebie/aktualnosci)
	h_href: null, // kotwica, czyli to co jest po #
	
	initialize: function(b_href){
		
		var href = document.location.href.split("#");
		this.b_href = b_href;
		this.l_href = href[0].substr(this.b_href.length);
		this.h_href = href[1];
		if(!this.h_href && this.l_href) document.location.href = this.b_href + '#/' + this.l_href;

		hs.lang.cssDirection = lang.cssDirection;
		hs.lang.loadingText = lang.loadingText;
		hs.lang.loadingTitle = lang.loadingTitle;
		hs.lang.focusTitle = lang.focusTitle;
		hs.lang.fullExpandTitle = lang.fullExpandTitle;
		hs.lang.previousText = lang.previousText;
		hs.lang.nextText = lang.nextText;
		hs.lang.moveText = lang.moveText;
		hs.lang.closeText = lang.closeText;
		hs.lang.closeTitle = lang.closeTitle;
		hs.lang.resizeTitle = lang.resizeTitle;
		hs.lang.playText = lang.playText;
		hs.lang.playTitle = lang.playTitle;
		hs.lang.pauseText = lang.pauseText;
		hs.lang.pauseTitle = lang.pauseTitle;
		hs.lang.previousTitle = lang.previousTitle;
		hs.lang.nextTitle = lang.nextTitle;
		hs.lang.moveTitle = lang.moveTitle;
		hs.lang.fullExpandText = lang.fullExpandText;
		hs.lang.number = lang.number;
		hs.lang.restoreTitle = lang.restoreTitle;
		hs.graphicsDir = '/public/gfx/highslide/';
		hs.align = 'center';
		hs.transitions = ['expand', 'crossfade'];
		hs.outlineType = 'rounded-white';
		hs.fadeInOut = true;
		hs.dimmingOpacity = 0.3;
		hs.dimmingDuration = 250;

		hs.addSlideshow({
			//slideshowGroup: 'group1',
			interval: 5000,
			repeat: false,
			useControls: false,
			fixedControls: 'fit',
			overlayOptions: {
				opacity: .75,
				position: 'bottom center',
				hideOnMouseOut: true
			}
		});
	
	}, // initialize

	domReady: function() {

		var params = {
			quality: "high",
			scale: "noscale",
			wmode: "transparent",
			allowscriptaccess: "always",
			bgcolor: "#000000"
		};
		var flashvars = {};
		var attributes = {id: "flash"};
		swfobject.embedSWF("main.swf?key="+window.googlekey, "flash", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);		
		
		$('body').setStyle('display', 'none');
		/*
		var version = deconcept.SWFObjectUtil.getPlayerVersion();
		if (document.getElementById('flash') && version["major"] < 9) {
			
		} else {
			var so = new SWFObject("/public/flash/main.swf", "main_flash", "100%", "100%", "9", "#000000");
			so.addParam("scale", "noscale");
			so.addParam("wmode", "window");
			so.addParam("quality", "high");
			so.addParam("allowscriptaccess", "always");
			so.write("flash");
		}
		*/
	} // domReady

});

