
function doSearchResultsAlpha(Alpha) {
	document.frmResults.Alpha.value = Alpha;
	document.frmResults.submit();
	return false;
}

function validateFtrEmail(f) {
	if (!emailCheck(f.Email.value)) {
		alert('Please provide a valid return e-mail address');
		return false;
	}
	return true;
}


function validateNumeric() {
	var obj = event.srcElement;
	if (isNaN(obj.value)) {
		ov = new String(obj.value);
		obj.value = ov.substring(0,ov.length -1);
	}
}

function openWin(url,name,features) {
	var win = window.open(url,name,features,name);
}


/*
#########################################################################################
#########################################################################################
#################														#################
#################	EMAIL CHECK FUNCTION [function emailCheck()]		#################
#################														#################
#########################################################################################
#########################################################################################
*/

			function emailCheck (emailStr) {
			/* The following pattern is used to check if the entered e-mail address
			   fits the user@domain format.  It also is used to separate the username
			   from the domain. */
			var emailPat=/^(.+)@(.+)$/
			/* The following string represents the pattern for matching all special
			   characters.  We don't want to allow special characters in the address. 
			   These characters include ( ) < > @ , ; : \ " . [ ]    */
			var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
			/* The following string represents the range of characters allowed in a 
			   username or domainname.  It really states which chars aren't allowed. */
			var validChars="\[^\\s" + specialChars + "\]"
			/* The following pattern applies if the "user" is a quoted string (in
			   which case, there are no rules about which characters are allowed
			   and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
			   is a legal e-mail address. */
			var quotedUser="(\"[^\"]*\")"
			/* The following pattern applies for domains that are IP addresses,
			   rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
			   e-mail address. NOTE: The square brackets are required. */
			var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
			/* The following string represents an atom (basically a series of
			   non-special characters.) */
			var atom=validChars + '+'
			/* The following string represents one word in the typical username.
			   For example, in john.doe@somewhere.com, john and doe are words.
			   Basically, a word is either an atom or quoted string. */
			var word="(" + atom + "|" + quotedUser + ")"
			// The following pattern describes the structure of the user
			var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
			/* The following pattern describes the structure of a normal symbolic
			   domain, as opposed to ipDomainPat, shown above. */
			var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")


			/* Finally, let's start trying to figure out if the supplied address is
			   valid. */

			/* Begin with the coarse pattern to simply break up user@domain into
			   different pieces that are easy to analyze. */
			var matchArray=emailStr.match(emailPat)
			if (matchArray==null) {
			  /* Too many/few @'s or something; basically, this address doesn't
			     even fit the general mould of a valid e-mail address. */
				return false
			}
			var user=matchArray[1]
			var domain=matchArray[2]

			// See if "user" is valid 
			if (user.match(userPat)==null) {
			    // user is not valid
			    return false
			}

			/* if the e-mail address is at an IP address (as opposed to a symbolic
			   host name) make sure the IP address is valid. */
			var IPArray=domain.match(ipDomainPat)
			if (IPArray!=null) {
			    // this is an IP address
				  for (var i=1;i<=4;i++) {
				    if (IPArray[i]>255) {
					return false
				    }
			    }
			    return true
			}

			// Domain is symbolic name
			var domainArray=domain.match(domainPat)
			if (domainArray==null) {
			    return false
			}

			/* domain name seems valid, but now make sure that it ends in a
			   three-letter word (like com, edu, gov) or a two-letter word,
			   representing country (uk, nl), and that there's a hostname preceding 
			   the domain or country. */

			/* Now we need to break up the domain to get a count of how many atoms
			   it consists of. */
			var atomPat=new RegExp(atom,"g")
			var domArr=domain.match(atomPat)
			var len=domArr.length
			if (domArr[domArr.length-1].length<2 || 
			    domArr[domArr.length-1].length>3) {
			   // the address must end in a two letter or three letter word.
			   return false
			}

			// Make sure there's a host name preceding the domain.
			if (len<2) {
			   var errStr="This address is missing a hostname!"
			   
			   return false
			}

				// If we've gotten this far, everything's valid!
				return true;
			}

function createAdValidate(f) {
	var re = new RegExp('\\w+');
	if(!validTextInput(f.F34,10,'Profile Title')) { return false; }
	if(!validTextInput(f.F35,10,'Profile Narrative')) { return false;}
	if(!validSelect(f.S2,'Gender')) {return false;}
	if(!validSelect(f.S0,'Height')) {return false;}
	if(!validSelect(f.S3,'Eye Color')) { return false;}
	if(!validSelect(f.S1,'Hair Color')) { return false;}
	if(!validSelect(f.S4,'Body Type')) { return false;}

	if(f.B0.checked == 0 && f.B1.checked == 0 && f.B2.checked == 0 && f.B3.checked == 0 && f.B4.checked == 0 && f.B5.checked == 0 && f.B6.checked == 0 && f.B7.checked == 0) {
		alert('Please tell us what you\'re looking for');
		return false; 
	}
	return true;
}

function validSelect(obj,friendlyname) {
	if(obj.selectedIndex == 0) {
		alert('Please select a value for ' + friendlyname);
		return false;
	}
	return true;
}


function validTextInput(obj,minLen,friendlyname) {
	var re = new RegExp('\\w+');
	
	if(!re.test(obj.value)) {
		alert('Please provide a value for ' + friendlyname);
		return false;
	} else {
		var s = new String(obj.value);
		if(s.length < minLen) {
			alert(friendlyname + ' must be at least ' + minLen + ' characters long');
			return false;
		}
	}
	return true;	
}

function doAddImageWin(ParentID,ImgTypeID,PG) {
	var w = 200;
	var h = 200;
	var x = (screen.width-w)/2;
	var y = (screen.height-h)/2;
	var ImgWin = window.open('/img_upload_step1.asp?ParentID=' + ParentID + '&ImgTypeID=' + ImgTypeID + '&PG=' + PG,'ImgWin','width=' + w + ',height=' + h + ',left=' + x + ',top=' + y + ',toolbar=no,resizable=no,scrollbars=no','ImgWn').focus();
}


function doDeletePersImage(f,UserImageID) {
	f.UserImageID.value = UserImageID;
	f.MODE.value = 'DI';
	f.submit();
	return false;
}

function doPersCoverImage(f,UserImageID) {
	f.UserImageID.value = UserImageID;
	f.MODE.value = 'CI';
	f.submit();
	return false;
}

function verifyAgeRange(f) {
	var ageUpper = f.AgeUpper.selectedIndex;
	var ageLower = f.AgeLower.selectedIndex;
	if(ageUpper < ageLower) {alert('The age range you\'ve selected is incorrect.  Please check it and try again');return false;}
	return true;
}


function doDeleteClsImage(f,UserImageID) {
	f.UserImageID.value = UserImageID;
	f.MODE.value = 'DI';
	f.submit();
	return false;
}

function doClsCoverImage(f,UserImageID) {
	f.UserImageID.value = UserImageID;
	f.MODE.value = 'CI';
	f.submit();
	return false;
}

function whichBrs() {
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie") != -1) return 'Internet Explorer';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}


function getClsTypes(ClsCatID) {
	var tmp = '' 
	+ '<select name="TMP" style="width:150px;background-color:white;">'
	+ '<option value="">-Loading-</option>'
	+ '</select>';
	document.all.CLSTYPELIST.innerHTML = tmp;
	
	fmeProcessData.location.href = '/inc/process_loadClassTypes.asp?ClsCatID=' + ClsCatID;
}


function ClsAdVerify() {	
	var f = document.frmClsAd;
	var pg = new String(location.href);
	var mode = f.MODE.value;
	var re = new RegExp('\\w+');
	
	
	if(mode == 'DI' || mode == 'CI') { return true;}

	if(!re.test(f.ItemTitle.value)) {alert('Please provide a Title for your classified ad'); return false;}
	if(!re.test(f.ItemDesc.value)) {alert('Please provide a Description for your classified ad'); return false;}
	
	
	if (pg.indexOf('autos') != -1) {
		if(!re.test(f.F0.value)) {alert('Please provide the Vehicle Make for your classified ad'); return false;}
		if(!re.test(f.F1.value)) {alert('Please provide the Vehicle Model for your classified ad'); return false;}
		if(!re.test(f.F4.value)) {alert('Please provide the Vehicle Mileage for your classified ad'); return false;}
		if(!re.test(f.Price.value)) {alert('Please provide the Vehicle Asking Price for your classified ad'); return false;}
	}
	
	if(pg.indexOf('livingspace') != -1) {
	
	}
	
	if(pg.indexOf('network') != -1) {
	
	}
	
	if(pg.indexOf('localmarket') != -1) {
	
	}

	if(!re.test(f.ContactName.value)) {alert('Please provide a Contact Name for your classified ad'); return false;}
	if(!re.test(f.ContactPhone.value)) {alert('Please provide a Contact Phone Number for your classified ad'); return false;}
	if(!emailCheck(f.ContactEmail.value)) {alert('Please provide a valid return contact e-mail for your classified ad'); return false;}


	
	return true;
}

function messageWin(name,subj) {
	var w = 500;
	var h = 450;
	var x = (screen.width-w)/2;
	var y = (screen.height-h)/2;
	var msgWin = window.open('/forum/message.asp?name=' + name + '&NOBUDDIES=1&Subject=' + subj,'msgWin','width=' + w + ',height=' + h + ',left=' + x + ',top=' + y + ',scrollbars=no,toolbar=no,resizable=no','msgWin');
}

function SwapImg(idx, img) 
{
   document.images[idx].src = img;
}

function eventwin() {
	var w = 996;
	var h = 556;
	var l = (screen.width-w)/2;
	var t = (screen.height-h)/2;
	var gallery = window.open('/events/main.asp','eventWin','width=' + w + ',height=' + h + ',left=' + l + ',top=' + t + ',resizable=no,scrollbars=no,toolbar=no,statusbar=0','eventWin');
	return false;
}
	

function doPollWin(LookupCode) {
	var w = 600;
	var h = 400;
	var l = (screen.width-w)/2;
	var t = (screen.height-h)/2;
	var pollWin = window.open('/pollWin.asp?LookupCode=' + LookupCode,'pollWin','width=' + w + ',height=' + h + ',left=' + l + ',top=' + t + ',resizable=no,scrollbars=yes,toolbar=no','pollWin');
	return false;
}
	
/*	sIFR v2.0 RC4
	Copyright 2004 - 2005 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<a){this[b++]=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 b(c,d,e){c=c.normalize().replace(" ","`");var f=c.match(a);var g,h,j,k;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]!="*"&&g.nodeName.toLowerCase()!=f[1].toLowerCase()))return l;if(k.length==2){l.push(g);return l}return b(k[3],g,"#");case ".":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(var 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("\\b"+k[1]+"\\b")==null)continue;j=b(k[3],g,k[2]);l=l.concat(j);}else if(g.className!=null&&g.className.match("\\b"+f[3]+"\\b")!=null)l.push(g);}return l;case ">":if(e!=">")h=m(d,f[1]);else h=d.childNodes;for(var i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(g.nodeName.toLowerCase()!=f[1].toLowerCase())continue;j=b(f[3],g,">");l=l.concat(j);}return l;case "`":h=m(d,f[1]);for(var 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(var i=0,n=h.length;i<n;i++){g=h[i];if(g.nodeType!=1)continue;if(g.nodeName.toLowerCase()!=f[1].toLowerCase())continue;l.push(g);}return l;}}function m(d,o){if(o=="*"&&d.all!=null)return d.all;return d.getElementsByTagName(o);}return b;}();var sIFR=function(){var a="http://www.w3.org/1999/xhtml";var b=false;var c=false;var d;var ah=[];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:document.contentType!=null&&document.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)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)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)f.k=new Number(g.match(/.*applewebkit\/(\d+).*/)[1]);if(window.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&&f.i<7.6)||(f.b&&f.h<7)||(!f.b&&f.a&&f.k<124)||(f.m&&f.j<20020523))f.f=false;return f;}();if(window.hasFlash==false||!document.getElementsByTagName||!document.getElementById||(f.e&&(f.n||f.l)))return{UA:f};function af(e){if((!k.bAutoInit&&(window.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)||(document.body==null||document.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 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(v.nodeName.toLowerCase()=="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(v.nodeName.toLowerCase()=="br")u+="<br/>";if(v.hasChildNodes()){y=o(v,null,r,s,t);u+=y.u;s=y.s;t=y.t}if(v.nodeName.toLowerCase()=="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(document.createElementNS&&f.g)return document.createElementNS(a,B);return document.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 j(I,J,K,L,M,N,O,P,Q,R,S,r,T){if(!l())return ah.push(arguments);named.extract(arguments,{sSelector:function(value){I=value},sFlashSrc:function(value){J=value},sColor:function(value){K=value},sLinkColor:function(value){L=value},sHoverColor:function(value){M=value},sBgColor:function(value){N=value},nPaddingTop:function(value){O=value},nPaddingRight:function(value){P=value},nPaddingBottom:function(value){Q=value},nPaddingLeft:function(value){R=value},sFlashVars:function(value){S=value},sCase:function(value){r=value},sWmode:function(value){T=value}});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(L!=null)S+="&linkcolor="+L;if(M!=null)S+="&hovercolor="+M;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)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{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";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.l||f.n)p.innerHTML+="";}if(f.n&&k.bFixFragIdBug)setTimeout(function(){document.title=d},0);}function ai(){d=document.title}function ae(){if(k.bIsDisabled==true)return;c=true;if(document.documentElement)F(document.documentElement,"sIFR-hasFlash");if(window.attachEvent)window.attachEvent("onload",af);else if(!f.c&&(document.addEventListener||window.addEventListener)){if(document.addEventListener)document.addEventListener("load",af,false);if(window.addEventListener)window.addEventListener("load",af,false);}else if(typeof window.onload=="function"){var ag=window.onload;window.onload=function(){ag();af();}}else window.onload=af;if(!f.n||window.location.hash=="")k.bFixFragIdBug=false;else ai()}k.UA={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};k.bAutoInit=true;k.bFixFragIdBug=true;k.replaceElement=j;k.updateDocumentTitle=ai;k.setup=ae;k.bIsDisabled=false;return k;}();

if(typeof sIFR == "function" && !sIFR.UA.bIsIEMac){
	sIFR.setup();
};	
/*	sIFR v2.0 Official Add-ons v1.0
	Copyright 2005 Mark Wubben

	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/

if(typeof sIFR=="function"){sIFR.preferenceManager={storage:{sCookieId:"sifr",set:function(a){var b=new Date();b.setFullYear(b.getFullYear()+3);document.cookie=[this.sCookieId,"=",a,";expires=",b.toGMTString(),";path=/"].join("");},get:function(){var a=document.cookie.match(new RegExp(";?"+this.sCookieId+"=([^;]+);?"));if(a!=null&&a[1]=="false")return false;else return true;},reset:function(){var a=new Date();a.setFullYear(a.getFullYear()-1);document.cookie=[this.sCookieId,"=true;expires=",a.toGMTString(),";path=/"].join("");}},disable:function(){this.storage.set(false);},enable:function(){this.storage.set(true);},test:function(){return this.storage.get();}};if(sIFR.preferenceManager.test()==false){sIFR.bIsDisabled=true;if(document.documentElement&&document.documentElement.className!=null)document.documentElement.className=document.documentElement.className.replace(/\bsIFR\-hasFlash\b/,"");}sIFR.rollback=function(){function a(b){var c,d,e,f,g;var i=document.getElementsByTagName(b).length-1;while(i>=0){c=document.getElementsByTagName(b)[i];d=c.parentNode;if(c.getAttribute("sifr")=="true"){e=c.nextSibling;while(e!=null&&e.className!="sIFR-alternate")e=e.nextSibling;if(e!=null){f=e.firstChild;while(f!=null){g=f.nextSibling;d.appendChild(e.removeChild(f));f=g}d.removeChild(e);}d.removeChild(c);if(sIFR.UA.bIsKHTML||sIFR.UA.bIsIE)d.innerHTML+="";d.className=d.className.replace(/\bsIFR\-replaced\b/,"");}i--;}}return function(){if(document.documentElement&&document.documentElement.className!=null)document.documentElement.className=document.documentElement.className.replace(/\bsIFR\-hasFlash\b/,"");a("embed");a("object");}}();}
