/*
  banner
*/
function createPopupPainting(src){
			  var popup;
			  var popupCaption;
			  var unescapedSRC;
			  
			  var titleText, sizeText;
			  
    		// first replace until last /
			unescapedSRC = unescape(src);
			
			titleText = (unescapedSRC.substr(unescapedSRC.lastIndexOf('/')+1)).replace('.jpg','');
			
			/*titleText = (unescapedSRC.substr(unescapedSRC.lastIndexOf('/')+1)).replace('].jpg','');
			titleText = titleText.replace(titleText.substr(titleText.lastIndexOf('[')),'');
			sizeText = (unescapedSRC.substr(unescapedSRC.lastIndexOf('[')+1)).replace('].jpg','');*/
			
			sizeText = ''
			
			// replace ].jpg by nothing
			//get first part until [
			
			
			
			  if(document.getElementById('popup')){
							popup = document.getElementById('popup');
							popupCaption = document.getElementById('popupCaption');
							while (popupCaption.hasChildNodes()) {
  								popupCaption.removeChild(popupCaption.firstChild);
							}
							popupCaptionTitle = document.createElement('div');
							popupCaptionTitle.setAttribute('class', 'popupCaptionTitle');
							popupCaptionTitleText = document.createTextNode(titleText);
							popupCaptionTitle.appendChild(popupCaptionTitleText);
							popupCaptionSize = document.createElement('div');
							popupCaptionSize.setAttribute('class', 'popupCaptionSize');
							popupCaptionSizeText = document.createTextNode(sizeText);
							popupCaptionSize.appendChild(popupCaptionSizeText);
							
							popupCaption.appendChild(popupCaptionTitle);
							popupCaption.appendChild(popupCaptionSize);
							
			  } else {
							popup = document.createElement('div');

							popup.setAttribute('id', 'popup');
							var popupHeader = document.createElement('div');
							popupHeader.setAttribute('id', 'popupHeader');
							
							var popupCloseLink = document.createElement('a');
							popupCloseLink.href = '';
							popupCloseLink.onclick = function(){ switchShadowOverlay('off'); document.getElementById('popup').style.display = 'none'; return false; }
							popupHeader.appendChild(popupCloseLink);
							popup.appendChild(popupHeader);
							
							var popupImageContainer = document.createElement('div');
							popupImageContainer.setAttribute('id', 'popupImageContainer');
							popup.appendChild(popupImageContainer);
							
							// create caption
							popupCaption = document.createElement('div');
							popupCaption.setAttribute('id', 'popupCaption');
							
							popupCaptionTitle = document.createElement('div');
							popupCaptionTitle.setAttribute('class', 'popupCaptionTitle');
							popupCaptionTitleText = document.createTextNode(titleText);
							popupCaptionTitle.appendChild(popupCaptionTitleText);
							popupCaptionSize = document.createElement('div');
							popupCaptionSize.setAttribute('class', 'popupCaptionSize');
							popupCaptionSizeText = document.createTextNode(sizeText);
							popupCaptionSize.appendChild(popupCaptionSizeText);
							
							popupCaption.appendChild(popupCaptionTitle);
							popupCaption.appendChild(popupCaptionSize);
							
							
							popup.appendChild(popupCaption);
							
							// append popup
							document.body.appendChild(popup);

			  }

			 document.getElementById('popupImageContainer').style.backgroundImage = "url('"+unescape(src)+ "')";
			 popup.style.display = 'block'; 

			sIFR.replaceElement(named({sSelector:".popupCaptionTitle", sFlashSrc:"/scripts/impact.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#ffffff", sHoverColor:"", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=center", sCase:"", sWmode:"transparent"}));
			sIFR.replaceElement(named({sSelector:".popupCaptionSize", sFlashSrc:"/scripts/impact.swf", sColor:"#000000", sLinkColor:"#000000", sBgColor:"#ffffff", sHoverColor:"", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=center", sCase:"", sWmode:"transparent"}));
						
				
			  
}

function initBanner(){
	var listItems = document.getElementById('banner').getElementsByTagName('div');
	// for every list item, get anchor and specifiy the onclick event to be createpopup (a.src) 
	
	if(listItems.length) {
		listItems = listItems[0].getElementsByTagName('ul');
		if(listItems.length) {
			listItems = listItems[0].getElementsByTagName('li')
			for(var i=0; i<listItems.length; i++) {
				var currentLink = listItems[i].getElementsByTagName('a');
				if (currentLink.length) {
					currentLink[0].onclick = function(){switchShadowOverlay('on');createPopupPainting(this.href); return false;}
				}
			}
		}
	}
} /*
  general functions
*/
var aPopups = new Array();
var aModalPopups = new Array();

window.onfocus = function()
{
	if(aModalPopups.length != 0)
	{
		aModalPopups[0].focus();
	}
}


var sDefaultFeatures = 'channelmode=0, fullscreen=0, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=0, toolbar=0';

// create popup
function createPopup(URL, name, features, width, height)
{
	var left	= (screen.availWidth - width) / 2;
	var top		= (screen.availHeight - height) / 2;
	
	return window.open(URL, name, features + ', width=' + width + ', height=' + height + ', left=' + left + ', top=' + top);
	
	left = null;
	top = null;
}

// zoomlinks
function initZoom(){
	var zoom = getCookie('zoom');
	
	if(zoom == null){
		document.getElementsByTagName('body')[0].className += ' normal';
	}else{
		document.getElementsByTagName('body')[0].className += ' ' + zoom;
	}
}

function zoom(factor){
	var className = document.getElementsByTagName('body')[0].className;
	className = className.replace(' big', '');
	className = className.replace('big', '');
	className = className.replace(' normal', '');
	className = className.replace('normal', '');
	className = className.replace(' small', '');
	className = className.replace('small', '');
	className += ' ' + factor;
	
	document.cookie = 'zoom=' + factor + '; path=/';
	document.getElementsByTagName('body')[0].className = className;
}

// getcookie
function getCookie(sName){
	var aCookie = document.cookie.split("; ");
	
	for (var i=0; i < aCookie.length; i++){
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]){
			return unescape(aCrumb[1]);
		}
	}
	
	return null;
}

/*
	
*/
document.getElementsByClassName = function (needle){
    var s = [document.documentElement || document.body], i = 0, r = [], l = 0, e;
    var re = new RegExp('(^|\\s)' + needle + '(\\s|$)');

    do{
        e = s[i];

        while (e){
            if (e.nodeType == 1){
                if (e.className && re.test(e.className)) r[l++] = e;

                s[i++] = e.firstChild;
            }

            e = e.nextSibling;
        }
    }
	
    while (i--);

    return r;
} //
// getPageSize()
// Returns array with page width, height and window width, height
// Core code from - quirksmode.org
// Edit for Firefox by pHaez
//
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}


function switchShadowOverlay(onoff) {
var objOverlay = document.getElementById('overlay');
	var arrayPageSize =getPageSize(); 
	switch(onoff) {
		case 'on':
			objOverlay.style.height = (arrayPageSize[1] + 'px');
			objOverlay.style.display = 'block';
			break;
		default:
			objOverlay.style.display = 'none';	
	}
}

function initShadowOverlay() {
var objBody = document.getElementsByTagName("body").item(0);
	
	// create overlay div and hardcode some functional styles (aesthetic styles are in CSS file)
	var objOverlay = document.createElement("div");
	objOverlay.setAttribute('id','overlay');
	objOverlay.onclick = function () {document.getElementById('popup').style.display = 'none';switchShadowOverlay('off'); return false;}
	objOverlay.style.display = 'none';
	objOverlay.style.position = 'absolute';
	objOverlay.style.top = '0';
	objOverlay.style.left = '0';
	objOverlay.style.zIndex = '90';
 	objOverlay.style.width = '100%';
	objBody.insertBefore(objOverlay, objBody.firstChild);
}
 /*
  handleBodyLoad
*/
function handleBodyLoad(){
  markLinks();
  initBanner();
  initShadowOverlay();
  					
  if(typeof sIFR == "function"){
    sIFR.replaceElement(named({sSelector:".content h2", 
      sFlashSrc:"/scripts/impact.swf", 
      sColor:"#0099A0", 
      sLinkColor:"#000000", 
      sBgColor:"#ffffff", 
      sHoverColor:"", 
      nPaddingTop:0, 
      nPaddingBottom:0, 
      sFlashVars:"", 
      sCase:"", 
      sWmode:"transparent"}));
  }
} /*
  init thumbnails
*/
function initThumbnails(){
	var thumbnailLists = document.getElementsByTagName('ul');
	var thumbnailList;
	var thumbnails;
	var thumbnail;
	var forward, reverse;
	
	for(var i = 0; i < thumbnailLists.length; i++){
		thumbnailList = thumbnailLists[i];
	
		if(((thumbnailList.parentNode.className.indexOf('thumbnails') != -1) || (thumbnailList.parentNode.className.indexOf('bannerThumbs') != -1)) && (thumbnailList.className.toLowerCase().indexOf('parsed') == -1)){
			thumbnailList.className = thumbnailList.className + ' parsed';
			
			
			thumbnailList.setAttribute('previous', 0);
			thumbnailList.setAttribute('next', 7);
			
			// forward and backward buttons
			forward = document.createElement('li');
			reverse = document.createElement('li');
			
			
			thumbnailList.appendChild(forward);
			thumbnailList.appendChild(reverse);
			
			forward.className = 'forward';
			reverse.className = 'reverse';
			
			
			// forward
			forward.onclick = function(){
				var iNext 		= parseInt(this.parentNode.getAttribute('next'));
				var iPrevious 	= parseInt(this.parentNode.getAttribute('previous'));
				
				if((iNext + 3) < this.parentNode.getElementsByTagName('li').length){
					this.parentNode.getElementsByTagName('li')[(iNext + 1)].style.display = 'block';
					this.parentNode.getElementsByTagName('li')[(iPrevious)].style.display = 'none';
					
					this.parentNode.setAttribute('next', (iNext + 1));
					this.parentNode.setAttribute('previous', (iPrevious + 1));
				}
			}
			
			// reverse
			reverse.onclick = function(){
				var iNext 		= parseInt(this.parentNode.getAttribute('next'));
				var iPrevious 	= parseInt(this.parentNode.getAttribute('previous'));
				
				if(iPrevious > 0){
					this.parentNode.getElementsByTagName('li')[(iNext)].style.display = 'none';
					this.parentNode.getElementsByTagName('li')[(iPrevious - 1)].style.display = 'block';
					
					this.parentNode.setAttribute('next', (iNext - 1));
					this.parentNode.setAttribute('previous', (iPrevious - 1));
				}
			}
			
			
			thumbnails = thumbnailLists[i].getElementsByTagName('img');
			
			for(var ii = 0; ii < thumbnails.length; ii++)	{
				thumbnail = thumbnails[ii];
				
				if(ii < 8){
					thumbnail.parentNode.parentNode.style.display = 'block';
				}else{
					thumbnail.parentNode.parentNode.style.display = 'none';
				}
				thumbnail.parentNode.onclick = function(){switchShadowOverlay('on');createPopupPainting(this.href); return false;}
			}
			
			
		}
	}
}
 /*
  mark links
*/
function markLinks(){
	var links = document.getElementsByTagName('a');
	var link, href, mark;
	
	for(var i = 0; i < links.length; i++){
		link = links[i];
		
			
		switch(link.getAttribute('rel')){
			case 'ext': case 'external':
				link.className += ' external';
				link.target = '_blank';
				
				
				if(link.getElementsByTagName('img').length == 0){
					href = link.getAttribute('href').toLowerCase();
					href = href.substring((href.length - 4), (href.length));
					switch(href){
						case '.pdf':
							link.className += ' pdf';
							mark = document.createElement('img');
							mark.src = '/data/link-icons/pdf.png';
							link.insertBefore(mark , (link.firstChild));
							break;
						
						case '.xls':
							link.className += ' pdf';
							mark = document.createElement('img');
							mark.src = '/data/link-icons/xls.png';
							link.insertBefore(mark , (link.firstChild));
							break;
							
						case '.doc':
							link.className += ' pdf';
							mark = document.createElement('img');
							mark.src = '/data/link-icons/doc.png';
							link.insertBefore(mark , (link.firstChild));
							break;
							
						case '.ppt':
							link.className += ' pdf';
							mark = document.createElement('img');
							mark.src = '/data/link-icons/ppt.png';
							link.insertBefore(mark , (link.firstChild));
							break;
							
						default:
							mark = document.createElement('img');
							mark.src = '/data/link-icons/external.png';
							link.appendChild(mark);
							break;
				}
			}
		}
	}
	
	links = document.getElementById('content').getElementsByTagName('a');
	
	for(var i = 0; i < links.length; i++){
		if(links[i].getAttribute('href')){
			href = document.createElement('span');
				href.className = 'print';
				href.appendChild((document.createTextNode(' [' + links[i].href + ']')));
			
			links[i].appendChild(href);
		}
	}
	
	mark = null;
	href = null;
	link = null;
	links = null;
} /*	sIFR 2.0.2
	Copyright 2004 - 2006 Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben

	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/

var hasFlash=function(){var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;return parseInt(b.charAt(b.indexOf(".")-1))>=a}return false}();String.prototype.normalize=function(){return this.replace(/\s+/g," ")};if(Array.prototype.push==null){Array.prototype.push=function(){var i=0,a=this.length,b=arguments.length;while(i<b){this[a++]=arguments[i++]}return this.length}}if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[];var d,e;if(!a)a=window;if(!b)b=[];for(var i=0;i<b.length;i++){c[i]="b["+i+"]"}e="a.__applyTemp__("+c.join(",")+");";a.__applyTemp__=this;d=eval(e);a.__applyTemp__=null;return d}}function named(a){return new named.Arguments(a)}named.Arguments=function(a){this.oArgs=a};named.Arguments.prototype.constructor=named.Arguments;named.extract=function(a,b){var c,d;var i=a.length;while(i--){d=a[i];if(d!=null&&d.constructor!=null&&d.constructor==named.Arguments){c=a[i].oArgs;break}}if(c==null)return;for(e in c)if(b[e]!=null)b[e](c[e]);return};var parseSelector=function(){var a=/^([^#.>`]*)(#|\.|\>|\`)(.+)$/;function r(s,t){var u=s.split(/\s*\,\s*/);var v=[];for(var i=0;i<u.length;i++)v=v.concat(b(u[i],t));return v}function b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,i,j,k,n;var l=[];if(f==null)f=[c,c];if(f[1]=="")f[1]="*";if(e==null)e="`";if(d==null)d=document;switch(f[2]){case "#":k=f[3].match(a);if(k==null)k=[null,f[3]];g=document.getElementById(k[1]);if(g==null||(f[1]!="*"&&!o(g,f[1])))return l;if(k.length==2){l.push(g);return l}return b(k[3],g,k[2]);case ".":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;k=f[3].match(a);if(k!=null){if(g.className==null||g.className.match("(\\s|^)"+k[1]+"(\\s|$)")==null)continue;j=b(k[3],g,k[2]);l=l.concat(j)}else if(g.className!=null&&g.className.match("(\\s|^)"+f[3]+"(\\s|$)")!=null)l.push(g)}return l;case ">":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;j=b(f[3],g,">");l=l.concat(j)}return l;case "`":h=m(d,f[1]);for(i=0,n=h.length;i<n;i++){g=h[i];j=b(f[3],g,"`");l=l.concat(j)}return l;default:if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(!o(g,f[1]))continue;l.push(g)}return l}}function m(d,o){if(o=="*"&&d.all!=null)return d.all;return d.getElementsByTagName(o)}function o(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:", "")==q.toLowerCase()}return r}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];var al=document;var ak=al.documentElement;var am=window;var au=al.addEventListener;var av=am.addEventListener;var f=function(){var g=navigator.userAgent.toLowerCase();var f={a:g.indexOf("applewebkit")>-1,b:g.indexOf("safari")>-1,c:navigator.product!=null&&navigator.product.toLowerCase().indexOf("konqueror")>-1,d:g.indexOf("opera")>-1,e:al.contentType!=null&&al.contentType.indexOf("xml")>-1,f:true,g:true,h:null,i:null,j:null,k:null};f.l=f.a||f.c;f.m=!f.a&&navigator.product!=null&&navigator.product.toLowerCase()=="gecko";if(f.m&&g.match(/.*gecko\/(\d{8}).*/))f.j=new Number(g.match(/.*gecko\/(\d{8}).*/)[1]);f.n=g.indexOf("msie")>-1&&!f.d&&!f.l&&!f.m;f.o=f.n&&g.match(/.*mac.*/)!=null;if(f.d&&g.match(/.*opera(\s|\/)(\d+\.\d+)/))f.i=new Number(g.match(/.*opera(\s|\/)(\d+\.\d+)/)[2]);if(f.n||(f.d&&f.i<7.6))f.g=false;if(f.a&&g.match(/.*applewebkit\/(\d+).*/))f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(am.hasFlash&&(!f.n||f.o)){var aj=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;f.h=parseInt(aj.charAt(aj.indexOf(".")-1))}if(g.match(/.*(windows|mac).*/)==null||f.o||f.c||(f.d&&(g.match(/.*mac.*/)!=null||f.i<7.6))||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<312)||(f.m&&f.j<20020523))f.f=false;if(!f.o&&!f.m&&al.createElementNS)try{al.createElementNS(a,"i").innerHTML=""}catch(e){f.e=true}f.p=f.c||(f.a&&f.k<312);return f}();function at(){return{bIsWebKit:f.a,bIsSafari:f.b,bIsKonq:f.c,bIsOpera:f.d,bIsXML:f.e,bHasTransparencySupport:f.f,bUseDOM:f.g,nFlashVersion:f.h,nOperaVersion:f.i,nGeckoBuildDate:f.j,nWebKitVersion:f.k,bIsKHTML:f.l,bIsGecko:f.m,bIsIE:f.n,bIsIEMac:f.o,bUseInnerHTMLHack:f.p}}if(am.hasFlash==false||!al.getElementsByTagName||!al.getElementById||(f.e&&(f.p||f.n)))return{UA:at()};function af(e){if((!k.bAutoInit&&(am.event||e)!=null)||!l(e))return;b=true;for(var i=0,h=ah.length;i<h;i++)j.apply(null,ah[i]);ah=[]}var k=af;function l(e){if(c==false||k.bIsDisabled==true||((f.e&&f.m||f.l)&&e==null&&b==false)||(al.body==null||al.getElementsByTagName("body").length==0))return false;return true}function m(n){if(f.n)return n.replace(new RegExp("%\d{0}","g"),"%25");return n.replace(new RegExp("%(?!\d)","g"),"%25")}function as(p,q){return q=="*"?true:p.nodeName.toLowerCase().replace("html:", "")==q.toLowerCase()}function o(p,q,r,s,t){var u="";var v=p.firstChild;var w,x,y,z;if(s==null)s=0;if(t==null)t="";while(v){if(v.nodeType==3){z=v.nodeValue.replace("<","&lt;");switch(r){case "lower":u+=z.toLowerCase();break;case "upper":u+=z.toUpperCase();break;default:u+=z}}else if(v.nodeType==1){if(as(v,"a")&&!v.getAttribute("href")==false){if(v.getAttribute("target"))t+="&sifr_url_"+s+"_target="+v.getAttribute("target");t+="&sifr_url_"+s+"="+m(v.getAttribute("href")).replace(/&/g,"%26");u+='<a href="asfunction:_root.launchURL,'+s+'">';s++}else if(as(v,"br"))u+="<br/>";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(as(v,"a"))u+="</a>"}w=v;v=v.nextSibling;if(q!=null){x=w.parentNode.removeChild(w);q.appendChild(x)}}return{"u":u,"s":s,"t":t}}function A(B){if(al.createElementNS&&f.g)return al.createElementNS(a,B);return al.createElement(B)}function C(D,E,z){var p=A("param");p.setAttribute("name",E);p.setAttribute("value",z);D.appendChild(p)}function F(p,G){var H=p.className;if(H==null)H=G;else H=H.normalize()+(H==""?"":" ")+G;p.className=H}function aq(ar){var a=ak;if(k.bHideBrowserText==false)a=al.getElementsByTagName("body")[0];if((k.bHideBrowserText==false||ar)&&a)if(a.className==null||a.className.match(/\bsIFR\-hasFlash\b/)==null)F(a, "sIFR-hasFlash")}function j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);aq();named.extract(arguments,{sSelector:function(ap){I=ap},sFlashSrc:function(ap){J=ap},sColor:function(ap){K=ap},sLinkColor:function(ap){L=ap},sHoverColor:function(ap){M=ap},sBgColor:function(ap){N=ap},nPaddingTop:function(ap){O=ap},nPaddingRight:function(ap){P=ap},nPaddingBottom:function(ap){Q=ap},nPaddingLeft:function(ap){R=ap},sFlashVars:function(ap){S=ap},sCase:function(ap){r=ap},sWmode:function(ap){T=ap}});var U=parseSelector(I);if(U.length==0)return false;if(S!=null)S="&"+S.normalize();else S="";if(K!=null)S+="&textcolor="+K;if(M!=null)S+="&hovercolor="+M;if(M!=null||L!=null)S+="&linkcolor="+(L||K);if(O==null)O=0;if(P==null)P=0;if(Q==null)Q=0;if(R==null)R=0;if(N==null)N="#FFFFFF";if(T=="transparent")if(!f.f)T="opaque";else N="transparent";if(T==null)T="";var p,V,W,X,Y,Z,aa,ab,ac;var ad=null;for(var i=0,h=U.length;i<h;i++){p=U[i];if(p.className!=null&&p.className.match(/\bsIFR\-replaced\b/)!=null)continue;V=p.offsetWidth-R-P;W=p.offsetHeight-O-Q;aa=A("span");aa.className="sIFR-alternate";ac=o(p,aa,r);Z="txt="+m(ac.u).replace(/\+/g,"%2B").replace(/&/g,"%26").replace(/\"/g, "%22").normalize() + S + "&w=" + V + "&h=" + W + ac.t;F(p,"sIFR-replaced");if(ad==null||!f.g){if(!f.g){if(!f.n)p.innerHTML=['<embed class="sIFR-flash" type="application/x-shockwave-flash" src="',J,'" quality="best" wmode="',T,'" bgcolor="',N,'" flashvars="',Z,'" width="',V,'" height="',W,'" sifr="true"></embed>'].join("");else p.innerHTML=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" sifr="true" width="',V,'" height="',W,'" class="sIFR-flash"><param name="movie" value="',J,"?",Z,'"></param><param name="quality" value="best"></param><param name="wmode" value="',T,'"></param><param name="bgcolor" value="',N,'"></param> </object>'].join('')}else{if(f.d){ab=A("object");ab.setAttribute("data",J);C(ab,"quality","best");C(ab,"wmode",T);C(ab,"bgcolor",N)}else{ab=A("embed");ab.setAttribute("src",J);ab.setAttribute("quality","best");ab.setAttribute("flashvars",Z);ab.setAttribute("wmode",T);ab.setAttribute("bgcolor",N)}ab.setAttribute("sifr","true");ab.setAttribute("type","application/x-shockwave-flash");ab.className="sIFR-flash";if(!f.l||!f.e)ad=ab.cloneNode(true)}}else ab=ad.cloneNode(true);if(f.g){if(f.d)C(ab,"flashvars",Z);else ab.setAttribute("flashvars",Z);ab.setAttribute("width",V);ab.setAttribute("height",W);ab.style.width=V+"px";ab.style.height=W+"px";p.appendChild(ab)}p.appendChild(aa);if(f.p)p.innerHTML+=""}if(f.n&&k.bFixFragIdBug)setTimeout(function(){al.title=d},0)}function ai(){d=al.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(k.bHideBrowserText)aq(true);if(am.attachEvent)am.attachEvent("onload",af);else if(!f.c&&(al.addEventListener||am.addEventListener)){if(f.a&&f.k>=132&&am.addEventListener)am.addEventListener("load",function(){setTimeout("sIFR({})",1)},false);else{if(al.addEventListener)al.addEventListener("load",af,false);if(am.addEventListener)am.addEventListener("load",af,false)}}else if(typeof am.onload=="function"){var ag=am.onload;am.onload=function(){ag();af()}}else am.onload=af;if(!f.n||am.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA=at();k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.appendToClassName=F;k.setup=ae;k.debug=function(){aq(true)};k.debug.replaceNow=function(){ae();k()};k.bIsDisabled=false;k.bHideBrowserText=true;return k}();

if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac){
	sIFR.setup();
}; /*
	zebra tables
*/
function zebraTables(){

	var rows = document.getElementsByTagName('tr');

	for(var i = 0; i< rows.length; i++){

		if((i % 2) == 0){

			rows[i].className += ' odd';

		}else{

			rows[i].className += ' even';

		}
	}
}

