
var strOverlayId='newoverlay';var strResultsId='newresults';var objForm0='';var arrImages=new Array();function imgPreload(strPath){var objImg=new Image();arrImages.src=strPath;arrImages.push(objImg);}
validEmail=function(strEmail){if(strEmail.match(/^[\w\.\-]+@([\w\-]+\.)+[a-zA-Z]+$/)){return true;}
return false;}
validate=function(objInput,objLabel){if(objInput.value.strip()==''){return'Please fill in your '+objLabel.innerHTML.toLowerCase().replace(/:/,'');}else if(Element.hasClassName(objLabel,'requiredEmail')&&!validEmail(objInput.value)){return'Please supply a valid email address';}
if(Element.hasClassName(objLabel,'requiredPassword')){var arrPass=new Array();var objForm=Element.up(objLabel,'form');var arrInputs=objForm.getInputs('password');for(var i=0;i<arrInputs.length;i++){arrPass.push(arrInputs[i].value);}
if(arrPass.uniq().length!=1){var arrInputs=objForm.getInputs('password');for(var i=0;i<arrInputs.length;i++){arrInputs[i].value='';}
arrInputs[0].focus();return'Your passwords do not match!';}}}
removeError=function(objLabel){var arrErr=Element.getElementsByClassName(objLabel.parentNode,'errorNotice');if(arrErr.length>0){objLabel.parentNode.removeChild(arrErr[0]);};}
writeCorrection=function(objLabel,strText,blnCorrect){var objInput=document.getElementById(objLabel.htmlFor);var objImage=objLabel.parentNode.getElementsByTagName('img')[0];if(!strText){if(objImage!=null){}
Element.removeClassName(objInput,'correctionText');removeError(objLabel);}else{if(objImage==null){var objImg=Builder.node('img',{className:'correctionIcon'});}
removeError(objLabel);var objP=Builder.node('p',{className:'correctionText'},strText);objInput.parentNode.appendChild(objP);Element.addClassName(objInput,'correctionInput');}
return true;}
checkValidity=function(){var strErrorText=null;var objLabel=Element.getElementsBySelector(this.parentNode,'label')[0];strErrorText=validate(this,objLabel);if(strErrorText!=null){writeCorrection(objLabel,strErrorText);}else{writeCorrection(objLabel);}}
addLiveCorrect=function(objInput){if(objInput.nodeName.toLowerCase()=='input'&&(objInput.getAttribute('type')=='text'||objInput.getAttribute('type')=='password')){objInput.onkeyup=checkValidity;}else if(objInput.nodeName.toLowerCase()=='textarea'){objInput.onkeyup=checkValidity;}else if(objInput.nodeName.toLowerCase()=="select"){objInput.onchange=checkValidity;}else if(objInput.nodeName.toLowerCase()=='input'&&(objInput.getAttribute('type')=='file')){objInput.onchange=checkValidity;}}
function checkForm(objForm){var blnError=false;var objFirst=null;var arrLabels=objForm.getElementsByTagName('label');for(var i=0;i<arrLabels.length;i++){if(Element.hasClassName(arrLabels[i],'required')){var objInput=document.getElementById(arrLabels[i].htmlFor);var strErrorText=null;if(objInput!=null){strErrorText=validate(objInput,arrLabels[i]);if(strErrorText!=null){if(objFirst==null){objFirst=objInput;}
blnError=true;writeCorrection(arrLabels[i],strErrorText);addLiveCorrect(objInput);}else{writeCorrection(arrLabels[i]);}}}}
if(blnError){objFirst.focus();return false;}else{return true;}}
frmDeleteItem=function(strPage,strParams){var blnConfirm=confirm('Are you sure you want to permanently delete this record.');if(blnConfirm){new Ajax.Request(strPage,{method:'post',parameters:strParams,onSuccess:frmSubmitCallBack,onFailure:frmSubmitFailure});}}
var tmEffectsHandler={toggleDisplay:function(strId,strA){var objA=$(strA);if($(strId).style.display=='none'){objA.rel=objA.innerHTML;objA.innerHTML='Click to hide';}else{objA.innerHTML=objA.rel;}
$(strId).getElementsBySelector('div').each(function(obj){if(obj.style.overflow=='auto'){obj.style.overflow='hidden';}else{obj.style.overflow='auto';}});new Effect.toggle(strId,'blind');return false;}}
var tmFormHandler={deleteObj:function(strParams,strPath,strMsg){if(!(strParams&&strPath)){return false;}
if(!strMsg){strMsg='Are you sure you want to permanently delete this record.'}
var blnConfirm=confirm(strMsg);if(blnConfirm){new Ajax.Request(strPath,{method:'post',parameters:strParams,onSuccess:frmSubmitCallBack,onFailure:this._submitFailure});}
return false;},sendRequest:function(strParams,strPath){if(!(strParams&&strPath)){return false;}
new Ajax.Request(strPath,{method:'post',parameters:strParams,onSuccess:this._submitCallBack,onFailure:this._submitFailure});},_submitCallBack:function(strData){var objJson=strData.responseText.evalJSON(true);},_submitFailure:function(){alert('We\'re sorry, but we are temporarily unable to connect to our server. Please wait a moment and try again.');}}
function frmSubmitFailure(){alert('An error occurred while submitting this form. Please wait a few minutes and try again. If you continue to see this message, please contact webmaster@slgreen.com. Thanks!');new Effect.Fade(strOverlayId,{duration:0.1});}
function frmSubmitCallBack(strResponse){var objResponse=strResponse.responseText.evalJSON(true);if(objResponse.result==true){var arrErrObjs=Element.getElementsByClassName(objForm0,'correctionText');for(var i=0;i<arrErrObjs.length;i++){arrErrObjs[i].parentNode.firstChild.style.border='1px solid #ccc';arrErrObjs[i].parentNode.removeChild(arrErrObjs[i]);}
if(objResponse.callback){switch(objResponse.callback){case'emailupdate':hideEmailUpdate();break;}}
if(objResponse.hide==true){var objP=Builder.node('p',{className:'response success',style:'display:none;position:absolute:top:0;left:0;'});objP.innerHTML='<strong>'+objResponse.message+'</strong>';objForm0.parentNode.appendChild(objP);new Effect.Fade(objForm0,{duration:1.0,afterFinish:function(){new Effect.Appear(objP,{duration:1.0,delay:0.3});}});}else if(objResponse.message){var objP=Builder.node('p',{className:'response success',style:'display:none;position:absolute:top:0;left:0;'});objP.innerHTML=objResponse.message;objForm0.parentNode.appendChild(objP);new Effect.Appear(objP,{duration:0.5});}
if(objResponse.redirect){lnkJumpNav(objResponse.redirect);}
if(objResponse.reset){objForm0.reset();}
if(objResponse.table){switch(objResponse.action){case'add':var objTable=$(objResponse.table);var objTbody=$(objTable.tBodies[0]);if(objTbody){var objFirstRow=$(objTbody.rows[0]);}
switch(objResponse.action){case'add':var objRow=Builder.node('tr',{id:objResponse.id});for(var i=0;i<objResponse.row.length;i++){var arrTemp=objResponse.row[i].split('|');var objCell=Builder.node('td',{headers:arrTemp[0]});objCell.innerHTML=arrTemp[1];objRow.appendChild(objCell);}
if(objTbody){objTbody.appendChild(objRow);}
new Effect.Pulsate(objRow);break;}
break;case'delete':var objRow=$(objResponse.id);new Effect.Fade(objRow,{duration:0.5,afterFinish:function(obj){var objRow=obj.element;objRow.parentNode.removeChild(objRow);}});break;}}}else{var arrErrObjs=Element.getElementsByClassName(objForm0,'correctionText');for(var i=0;i<arrErrObjs.length;i++){$(arrErrObjs[i].parentNode).down().style.border='1px solid #ccc';arrErrObjs[i].parentNode.removeChild(arrErrObjs[i]);}
if(objResponse.errorfields){var arrErrFields=(objResponse.errorfields.split('|'));var arrErr=(objResponse.error.split('|'));for(var i=0;i<arrErrFields.length;i++){var objErr=Builder.node('span',{className:'correctionText'},arrErr[i]);var objErrField=$(arrErrFields[i]);objErrField.style.border='1px solid #ff0000';objErrField.parentNode.appendChild(objErr);}}
if(objResponse.error&&!(objResponse.errorfields)){$(strResultsId).innerHTML='<span>'+objResponse.error+'</span>';}}
new Effect.Fade(strOverlayId,{duration:0.1});modalProblemTags('show');new Effect.BlindDown(strResultsId,{duration:1.0});}
function frmAjax(strPage,objForm,strParams){objForm=$(objForm);if(strParams){strParams=objForm.serialize(false)+'&'+strParams;}else{strParams=objForm.serialize(true);}
new Ajax.Request(strPage,{method:'post',parameters:strParams,onSuccess:frmSubmitCallBack,onFailure:frmSubmitFailure});}
function frmSubmitHandler(objForm,strPage,strParams){if(Ajax){objForm0=$(objForm);if($(strResultsId)){new Effect.Fade(strResultsId,{duration:0.1});}else{var objResults=Builder.node('div',{id:strResultsId,style:'display:none;',className:'response'});objForm.parentNode.appendChild(objResults);}
frmAjax(strPage,objForm,strParams);if(!$(strOverlayId)){var objOverlay=Builder.node('div',{id:strOverlayId,className:'overlay_form',style:'display:none;height:100%;width:100%;'});objForm.appendChild(objOverlay);}else{var objOverlay=$(strOverlayId);}
if(BrowserDetect.browser=='Explorer'&&BrowserDetect.version=='6'){var objDim=Element.getDimensions(objForm);objOverlay.style.height=objDim.height+'px';objOverlay.style.height=objDim.width+'px';}
modalProblemTags('hide');new Effect.Appear(strOverlayId,{duration:0.4,from:0.0,to:0.6});return false;}else{return true;}}
function eventSelectors(){$$('select.text').each(function(ele){Event.observe(ele,'mouseover',function(event){Element.addClassName(ele,'activetext');ele.focus();});});$$('input.text').each(function(ele){Event.observe(ele,'mouseover',function(event){ele.focus();});Event.observe(ele,'focus',function(event){Element.removeClassName(ele,'hinttext');Element.addClassName(ele,'activetext');if(ele.value=='Search...'||ele.value=='Username'||ele.value=='Password'||ele.value=='Your address, city, state'){ele.setAttribute('defaultval',ele.value);ele.value='';}else{ele.select();}});Event.observe(ele,'blur',function(event){Element.removeClassName(ele,'activetext');if(ele.getAttribute('defaultval')){if(ele.value==""){Element.addClassName(ele,'hinttext');ele.value=ele.getAttribute('defaultval');}}});});$$('input.smalltext').each(function(ele){Event.observe(ele,'mouseover',function(event){ele.focus();});Event.observe(ele,'focus',function(event){Element.removeClassName(ele,'hinttext');Element.addClassName(ele,'activetext');if(ele.value=='Search...'||ele.value=='Username'||ele.value=='Password'){ele.setAttribute('defaultval',ele.value);ele.value='';}else{ele.select();}});Event.observe(ele,'blur',function(event){Element.removeClassName(ele,'activetext');if(ele.getAttribute('defaultval')){if(ele.value==""){Element.addClassName(ele,'hinttext');ele.value=ele.getAttribute('defaultval');}}});});$$('select','textarea').each(function(ele){Event.observe(ele,'focus',function(event){Element.addClassName(ele,'activeinput');})})
$$('select','textarea').each(function(ele){Event.observe(ele,'blur',function(event){Element.removeClassName(ele,'activeinput');})})}
createOverlay=function(){var objBody=document.body;var objOverlay=Builder.node('div',{id:'overlay',style:'display:none;min-width:1051px;'});objBody.appendChild(objOverlay);}
modalProblemTags=function(strAction){var arrDisplay=new Array(3);if(strAction=='hide'){arrDisplay[0]='hidden';arrDisplay[1]='hidden';arrDisplay[2]='hidden';}else if(strAction=='show'){arrDisplay[0]='auto';arrDisplay[1]='visible';arrDisplay[2]='visible';}else{return false;}
$$('textarea').each(function(obj){if(!obj.hasClassName('scrollOK')){obj.style.overflow=arrDisplay[0];}});$$('object, embed').each(function(obj){if(!obj.hasClassName('viewOK')){obj.style.visibility=arrDisplay[1];}});if(BrowserDetect.browser=='Explorer'){$$('select').each(function(obj){obj.style.visibility=arrDisplay[2];});}}
var multiWindow=false;var CurrentModalWindow='none';showLogIn=function(strId){if($('newresults')){$('newresults').style.display='none';}
new Effect.toggle(strId,'blind',{duration:0.5,afterFinish:function(obj){new Effect.toggle(obj.element.down('form'),'appear',{duration:0.3});}});}
showHide=function(strId,objTest){if($('newresults')){$('newresults').style.display='none';}
new Effect.toggle(strId,'blind',{duration:0.5});}
populateModal=function(strData){if(strData){$('modalcontent').innerHTML=strData.responseText;return true;}else{return false;}}
openModalWindow=function(selectorId,strUrl,strParams){if(!strParams){strParams='';}
if(strUrl){new Ajax.Request(strUrl,{method:'get',parameters:strParams,onSuccess:populateModal});}
var overlayID='overlay';var objOverlay=$(overlayID);var objDim=Position.getPageSize();modalProblemTags('hide');if(CurrentModalWindow!='none'){multiWindow=true;}
objOverlay.style.height=objDim.page.height+'px';objOverlay.style.width=objDim.page.width+'px';new Effect.Appear(overlayID,{duration:0.2,fps:80,from:0,to:0.70});CurrentModalWindow=selectorId;initModalElements();}
initModalElements=function(){var objDim=Position.getPageSize();var objMask=$('sendPageMask');if(objMask){objMask.style.display='block';objMask.style.width=objDim.page.width+'px';var objTemp=$('sendPageMask');objTemp.position='absolute';objTemp.top='40%';objTemp.height='4px';var objTemp=$('sendPageContent');objTemp.style.height='3px';objTemp.style.width=objDim.page.width+'px';Element.setOpacity(objMask,0.70);$('sendPage').style.display='block';new Effect.modalOpen(objMask);}}
resetModalWindow=function(){var objDim=Position.getPageSize();Element.setOpacity('sendPageMask',1.00);var objTemp=$('sendPageMask').style;objTemp.backgroundColor='#00386c';objTemp.border='none';objTemp.display='none';objTemp.height='4px';objTemp.left='0';objTemp.padding='0';objTemp.position='absolute';objTemp.top='40%';objTemp.zIndex='3000';var objTemp=$('sendPage').style;objTemp.backgroundColor='#fff';objTemp.border='none';objTemp.display='none';objTemp.height='3px';objTemp.padding='0';objTemp.position='absolute';objTemp.top='40%';objTemp.width=objDim.page.width+'px';objTemp.zIndex='2000';var objTemp=$('sendPageContentChild').style.display='none';var objTemp=$('sendPageTop').style
objTemp.height='1px';objTemp.visibility='hidden';var objTemp=$('sendPageBottom').style
objTemp.height='1px';objTemp.visibility='hidden';}
closeModalWindow=function(selectorId){if(multiWindow!=true){CurrentModalWindow='none';var overlayID='overlay';new Effect.modalClose(selectorId);new Effect.Fade(overlayID,{delay:1.0,duration:0.3,from:0.70,to:0.0,afterFinish:function(){}});}else{multiWindow=false;}}
Effect.modalClose=function(element){element=$(element);new Effect.Fade('sendPageContentChild',{delay:0.1,duration:0.5});new Effect.Parallel([new Effect.Scale('sendPageTop',0,{sync:true,scaleX:false,scaleY:true,scaleFromBottom:true}),new Effect.Scale('sendPageBottom',0,{sync:true,scaleX:false,scaleY:true,scaleFromCenter:false})],{delay:0.2,duration:0.5,afterFinish:function(obj){new Effect.Scale('sendPageContent',0,{delay:0.1,duration:0.5,scaleX:false,scaleY:true,scaleContent:false,scaleFromCenter:true,afterFinish:function(){resetModalWindow();modalProblemTags('show');}})}});}
Effect.modalOpen=function(element){element=$(element);var objDim=Position.getPageSize();var intWidth=objDim.page.width;var intPercent=((intWidth)/10)*100;Position.absolutize(element);var objContent=$('sendPageContent');Position.absolutize(objContent);objContent.style.width='100%';new Effect.Scale(element,0,{duration:0.5,scaleX:true,scaleY:false,scaleContent:false,scaleFromCenter:true,afterFinish:function(obj){new Effect.Scale('sendPageContent',7000,{delay:0.1,scaleX:false,scaleY:true,scaleContent:false,scaleFromCenter:true,afterFinish:function(obj){var objHead=$('sendPageTop');Position.absolutize(objHead);objHead.style.width=objDim.page.width+'px';objHead.style.top='-133px';Element.setOpacity(objHead,0.5);objHead.style.visibility='visible';var objFoot=$('sendPageBottom');Position.absolutize(objFoot);objFoot.style.width=objDim.page.width+'px';objFoot.style.top='115px';Element.setOpacity(objFoot,0.5);objFoot.style.visibility='visible';new Effect.Appear('sendPageContentChild',{delay:0.1,duration:2.0});new Effect.Parallel([new Effect.Scale('sendPageTop',15000,{sync:true,scaleX:false,scaleY:true,scaleFromBottom:true}),new Effect.Scale('sendPageBottom',10000,{sync:true,scaleX:false,scaleY:true,scaleFromCenter:false})],{delay:0.2});}});}});}
initializeNavigation=function(){if(document.getElementById){navRoot=$('topnav');for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=='LI'){node.onmouseover=function(){this.addClassName('over');var objA=$(this.firstChild);objA.addClassName('over');}
node.onmouseout=function(){this.removeClassName('over');var objA=$(this.firstChild);objA.removeClassName('over');}}}}}
function lnkExternalPrep(){if(!document.getElementsByTagName){return false;}
$$('a').each(function(obj){if(obj.getAttribute('href')&&obj.getAttribute('rel')=='external'){obj.onclick=function(){lnkExternalLaunch(obj.getAttribute('href'));return false;}}});}
lnkExternalLaunch=function(strHref){var objNewWin=window.open(strHref,'newwin');objNewWin.focus();}
lnkJumpNav=function(strHref){if(strHref){window.location.href=strHref;}}
function updateValue(strValue,strId){$(strId).style.display='none';var objForm=$('frmEdit'+strId.substring(3,99));objForm.style.display='block';objForm.txtExistingListValue.value=strValue;}
function viewTable(strId){$(strId).style.display='table';$('frmEdit'+strId.substring(3,99)).style.display='none';}
String.prototype.addClass=function(theClass){if(this!=""){if(!this.classExists(theClass)){return this+" "+theClass;}}else{return theClass;}
return this;}
String.prototype.classExists=function(theClass){var regString="(^| )"+theClass+"\W*";var regExpression=new RegExp(regString);if(regExpression.test(this))
{return true;}
return false;}
String.prototype.removeClass=function(theClass){var regString="(^| )"+theClass+"\W*";var regExpression=new RegExp(regString);return this.replace(regExpression,"");}
String.prototype.validEmail=function(){if(this.match(/^[\w\.\-]+@([\w\-]+\.)+[a-zA-Z]+$/)){return true;}
return false;}
function login(){openModalWindow('sendPage','/modalwindows/login.php');}
function logout(){if(Ajax){new Ajax.Request('/logout.php',{method:'post',onSuccess:function(){if(window.location.href.indexOf('/myaccount/')>-1||window.location.href.indexOf('/admin/')>-1){window.location.href='/';}else{new Effect.Parallel([new Effect.Fade($('btnMyAccount'),{sync:true}),new Effect.Fade($('btnLogout'),{sync:true})],{duration:0.5,afterFinish:function(){new Effect.Appear($('btnLogin'),{delay:0.2,duration:0.5});}});}},onFailure:function(){}});}}
function addToFavoriteFail(){var objBtn=$('btnFavorites');objBtn.style.backgroundImage='url(/images/buttons/favorite.png)';}
function deleteFromFavoriteCb(strData){var objJson=strData.responseText.evalJSON(true);if(objJson.result){var objBtn=$('btnFavorites');objBtn.style.backgroundImage='url(/images/buttons/favorite.png)';objBtn.title='Add to favorites';}}
function addToFavoriteCb(strData){if(strData.responseText.isJSON()){var objJson=strData.responseText.evalJSON(true);if(objJson.result){var objBtn=$('btnFavorites');objBtn.style.backgroundImage='url(/images/buttons/checkBox.png)';objBtn.title='This page has been marked as a favorite.';objBtn.onclick=function(){return false;}}else{if(objJson.error){if(objJson.error='You\'ve already marked this as a favorite.'){if(confirm('Are you sure you want to permanently delete this favorite?')){var strParams='action=delete&favorite='+objJson.favorite;new Ajax.Request('/myaccount/favorites_process.php',{method:'post',parameters:strParams,onSuccess:deleteFromFavoriteCb,onFailure:addToFavoriteFail});}}else{alert(objJson.error);}}}}else{openModalWindow('sendPage','/modalwindows/addToFavorite.php');}}
function addToFavorite(strUrl,strTitle){var strParams='action=add&url='+strUrl+'&title='+encodeURI(strTitle);new Ajax.Request('/myaccount/favorites_process.php',{method:'post',parameters:strParams,onSuccess:addToFavoriteCb,onFailure:addToFavoriteFail});var objBtn=$('btnFavorites');return false;}
function pgInit(){lnkExternalPrep();eventSelectors();createOverlay();if(document.getElementById){if(document.getElementById('btnLogout')){Event.observe($('btnLogout'),'click',logout,false);}
if(Element.hasClassName(document.body,'interior')){if(document.getElementById('btnLogin')){Event.observe($('btnLogin'),'click',login,false);}}}}
Event.observe(window,'load',pgInit,false);Event.observe(window,'load',createOverlay);Position.getPageSize=function()
{var xScroll,yScroll,scrollOffsetY;if(window.innerHeight&&window.scrollMaxY)
{xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}
else if(document.body.scrollHeight>document.body.offsetHeight)
{xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}
else
{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
if(self.pageYOffset)
{scrollOffsetY=self.pageYOffset;}
else if(document.documentElement&&document.documentElement.scrollTop)
{scrollOffsetY=document.documentElement.scrollTop;}
else if(document.body)
{scrollOffsetY=document.body.scrollTop;}
var windowWidth,windowHeight;if(self.innerHeight)
{windowWidth=self.innerWidth;windowHeight=self.innerHeight;}
else if(document.documentElement&&document.documentElement.clientHeight)
{windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}
else if(document.body)
{windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
pageHeight=Math.max(windowHeight,yScroll);pageWidth=Math.max(windowWidth,xScroll);return{page:{width:pageWidth,height:pageHeight},window:{width:windowWidth,height:windowHeight},scroll:{top:scrollOffsetY}};}
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}
else if(dataProp)
return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();