var archerLightItalic = { src: '/sitefiles/33/js/sifr/archer-light-italic.swf' };
var archerMedium = { src: '/sitefiles/33/js/sifr/archer-medium.swf' };
var archerMediumItalic = { src: '/sitefiles/33/js/sifr/archer-medium-italic.swf' };
var archerSemibold = { src: '/sitefiles/33/js/sifr/archer-semibold.swf' };
var archerBold = { src: '/sitefiles/33/js/sifr/archer-bold.swf' };
var archerBookItalic = { src: '/sitefiles/33/js/sifr/archer-book-italic.swf' };	

var HalogenSifr = function() {}

HalogenSifr.prototype = 
{
	activate: function()
	{
		sIFR.activate(archerLightItalic, archerMedium, archerMediumItalic, archerSemibold, archerBold, archerBookItalic);
		
		sIFR.replace(archerSemibold,
		{
			selector: '.generic-content #third-level-menu h2',
			css:
			[
				'.sIFR-root { color: #B13026; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: 'h1.main-title',
			css:
			[
				'.sIFR-root { color: #B13026; }',
				'.sIFR-root a { color: #B13026; text-decoration: none; }',
				'.sIFR-root a:hover { color: #B13026; text-decoration: underline; }'
			],
			wmode: 'opaque'
		});
		
		/*sIFR.replace(archerMedium,
		{
			selector: '.generic-content p.excerpt strong',
			css:
			[
				'.sIFR-root { color: #B13026; }'
			],
			wmode: 'opaque',
			tuneHeight: -8,
			offsetLeft: -1
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '.generic-content h2',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque',
			fitExactly: true,
			useDomLoaded: false
		});*/

		sIFR.replace(archerMedium,
		{
			selector: '#comments h2',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '#project #intro div h2',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '.employees .employee .info h2',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque',
			forceWidth: true
		});

		sIFR.replace(archerMedium,
		{
			selector: '#employee .top-content .text h1',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque',
			forceWidth: true,
			tuneHeight: -4
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '.news-archive li.recent h2',
			css:
			[
				'.sIFR-root { color: #555555; }',
				'.sIFR-root a { color: #555555; text-decoration: none; }',
				'.sIFR-root a:hover { color: #B13026; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '.blog-entries li h2',
			css:
			[
				'.sIFR-root { color: #555555; }',
				'.sIFR-root a { color: #555555; text-decoration: none; }',
				'.sIFR-root a:hover { color: #B13026; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '#blog-entry .the-entry h2',
			css:
			[
				'.sIFR-root { color: #555555; }',
				'.sIFR-root a { color: #555555; text-decoration: none; }',
				'.sIFR-root a:hover { color: #B13026; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '.projects h2',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '.customers h2',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerLightItalic,
		{
			selector: '#container #top #header em',
			css:
			[
				'.sIFR-root { color: #777777; text-align: right; }',
				'.sIFR-root a { color: #777777; text-decoration: none; }',
				'.sIFR-root a:hover { color: #555555; text-decoration: underline; }'
			],
			wmode: 'opaque',
			useDomLoaded: false,
			fitExactly: true,
			tuneWidth: 3,
			forceSingleLine: true
		});
		
		sIFR.replace(archerMediumItalic,
		{
			selector: '#project #process-glimpses h2',
			css:
			[
				'.sIFR-root { color: #B13026; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerBookItalic,
		{
			selector: '.contact-form h2',
			css:
			[
				'.sIFR-root { color: #B13026; }'
			],
			wmode: 'transparent',
			fitExactly: true,
			useDomLoaded: false,
			tuneWidth: 3
		});
		
		sIFR.replace(archerMediumItalic,
		{
			selector: '#project #process-glimpses ul li h3',
			css:
			[
				'.sIFR-root { color: #B13026; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerMediumItalic,
		{
			selector: '#front-recent .fourth h1',
			css:
			[
				'.sIFR-root { color: #B13026; }',
				'.sIFR-root a { color: #B13026; text-decoration: none; }',
				'.sIFR-root a:hover { color: #B13026; text-decoration: none; }'
			],
			wmode: 'opaque'
		});
		
		sIFR.replace(archerBookItalic,
		{
			selector: '.generic-content blockquote p',
			css:
			[
				'.sIFR-root { color: #B13026; leading: 2; }'
			],
			wmode: 'opaque',
			fitExactly: true,
			useDomLoaded: false
		});
		
		sIFR.replace(archerMedium,
		{
			selector: '#sitemap .col h1',
			css:
			[
				'.sIFR-root { color: #FFFFFF; background-color: #B13026; }',
				'.sIFR-root a { color: #FFFFFF; text-decoration: none; }',
				'.sIFR-root a:hover { color: #FFFFFF; text-decoration: none; }'
			],
			wmode: 'opaque',
			sharpness: 100,
			thickness: -100
		});
		
		sIFR.replace(archerBold,
		{
			selector: '#signup #signup-intro h2',
			css:
			[
				'.sIFR-root { color: #B13026; }'
			],
			wmode: 'transparent'
		});
		
		Event.observe(window, 'load', function()
		{
			if($$('.employees')[0])
			{
				var employeeH2s = $$('.employees .employee h2');
				var employeeAnchors = $$('.employees .employee a.img');
				var anchor = [];

				employeeH2s.each(function(elem, i)
				{
					anchor[i] = new Element('a', { 'class': 'touch-me sIFR-overlay', 'rel': employeeAnchors[i].rel, 'onclick': 'return false;', 'href': employeeAnchors[i].href.replace(/http:\/\/www.halogen.no/g, '') });
					elem.appendChild(anchor[i]);
				});
			}
		});
	}
};

var lightboxsIFR = function() {}

lightboxsIFR.prototype = {
	activate: function()
	{
		sIFR.activate(archerLightItalic, archerMedium, archerMediumItalic, archerSemibold, archerBold, archerBookItalic);
		sIFR.replace(archerMedium,
		{
			selector: '#employee .top-content .text h1',
			css:
			[
				'.sIFR-root { color: #555555; }'
			],
			wmode: 'opaque',
			forceWidth: true
		});
	}
};

var CurrentsIFR = new HalogenSifr();
CurrentsIFR.activate();
var lightboxsIFRes = new lightboxsIFR();