var PicLensLite={start:function(a){this.determineBrowserParams();clearTimeout(this.REMOVE_TIMER_ID);clearTimeout(this.AUTO_CLOSE_TIMER_ID);this.ARGS={};if(typeof a!=="undefined"&&a!==null){this.ARGS=a;if(a.feedUrl){this.THE_FEED_URL=a.feedUrl;if(this.checkForPluginAndLaunchIfPossible(a.feedUrl,a.guid))return;a.loadFeedInFlash?this.showFlashUI(""):this.loadViaXHR(a.feedUrl)}typeof a.feedData!=="undefined"&&this.showFlashUI(a.feedData)}else if(a=this.indexFeeds(),a.length!==0)a=a[0],this.THE_FEED_URL= a.url,this.checkForPluginAndLaunchIfPossible(a.url)||this.loadViaXHR(a.url)},isRunning:function(){return this.LITE_IS_RUNNING},hasClient:function(){return this.hasCooliris()},addCustomButton:function(a,b,c){this.CUSTOM_BUTTON={targetURL:a,labelText:b,iconImage:c}},setCallbacks:function(a){if(a.onNoPlugins)this.ON_NO_PLUGINS=a.onNoPlugins;if(a.onExit)this.ON_EXIT=a.onExit},setLiteURLs:function(a){if(!this.LITE_URL)if(a.swf)this.LITE_URL=a.swf;else if(a.lite)this.LITE_URL=a.lite+"PicLensLite.swf";if(!this.BUTTON_URL)if(a.button)this.BUTTON_URL= a.button;else if(a.lite)this.BUTTON_URL=a.lite+"NoFlash.jpg";var b="";a.lbox?b=a.lbox:a.lite&&(b=a.lite+"../lytebox/");if(!this.LBOX_CSS_URL)if(a.lboxcss)this.LBOX_CSS_URL=a.lboxcss;else if(b!="")this.LBOX_CSS_URL=b+"lytebox.css";if(!this.LBOX_JS_URL)if(a.lboxjs)this.LBOX_JS_URL=a.lboxjs;else if(b!="")this.LBOX_JS_URL=b+"lytebox.js"},ARGS:{},DEBUG_NOCLIENT:!1,DEBUG_NOFLASH:!1,HPAD:60,VPAD:20,LITE_BG_DIV:null,LITE_FG_DIV:null,LITE_URL:null,BUTTON_URL:null,LBOX_CSS_URL:null,LBOX_JS_URL:null,LBOX_COUNT:0, SHOW_LBOX:!1,OS_WIN:!1,OS_MAC:!1,BROWSER_FFX:!1,BROWSER_SAF:!1,BROWSER_IE:!1,BROWSER_IE6:!1,OLD_B_MARGIN:null,OLD_B_OVERFLOW:null,OLD_B_HEIGHT:null,OLD_H_OVERFLOW:null,OLD_H_HEIGHT:null,THE_FEED:"",THE_FEED_URL:"",LITE_IS_RUNNING:!1,piclensIsRunning_:!1,FLASH_ID_1:"pllflash1",FLASH_ID_2:"pllflash2",FLASH_VER:null,FLASH_URL:"http://www.adobe.com/go/getflashplayer",PL_URL:"http://download.piclens.com/partner/",PLC:null,LEARN_PL_URL:"http://affiliate.piclens.com/partner/",FONT:"font-family: Lucida Grande, Myriad Pro, Verdana, Helvetica, Arial, sans-serif;", KEY_HANDLERS:"",ON_NO_PLUGINS:null,ON_EXIT:null,AUTO_CLOSE_TIMER_ID:0,REMOVE_TIMER_ID:0,RESIZE_TIMER_IE6:null,RESIZE_HANDLER_EXISTS:!1,CUSTOM_BUTTON:null,addKeyHandlers:function(){var a=this;if(typeof document.onkeydown!=="undefined")this.KEY_HANDLERS=document.onkeydown;document.onkeydown=function(b){var c=a.handleKeyPress(typeof b==="undefined"||b===null?window.event.keyCode:b.which);if(typeof b!="undefined"&&b!=null)b.returnValue=c;return c}},addMouseHandlers:function(){window.addEventListener? window.addEventListener("DOMMouseScroll",this.handleMouseWheel,!1):document.attachEvent&&document.attachEvent("onmousewheel",this.handleMouseWheel);window.onmousewheel=document.onmousewheel=this.handleMouseWheel},appendElementsToDocument:function(){if(this.BROWSER_FFX&&this.OS_MAC)this.LITE_BG_DIV.style.display="none";document.body.appendChild(this.LITE_BG_DIV);document.body.appendChild(this.LITE_FG_DIV)},autoResize:function(){if(this.isRunning()){var a=this.getPageSize(),b=this.LITE_BG_DIV;if(b)b.style.height= a.h+"px",b.style.width=a.w+"px";if(this.LITE_FG_DIV)b=this.LITE_FG_DIV.style,this.resizeToPaddedBox(b),this.resizeToFitPaddedBox(b,a),this.resizeFlashToFitPaddedBox()}else clearInterval(this.RESIZE_TIMER_IE6)},checkForPluginAndLaunchIfPossible:function(a,b){if(this.hasCooliris())return typeof b!="undefined"?this.PLC.launch(a,"uid",b):this.PLC.launch(a,"",""),!0;return!1},createBackgroundOverlay:function(){var a=document.createElement("div");this.LITE_BG_DIV=a;a.id="lite_bg_div";var b=a.style;b.position= "fixed";b.width=b.height="100%";if(this.BROWSER_IE6){var c=document.body,d=c.currentStyle,g=document.documentElement,f=g.currentStyle;this.OLD_B_MARGIN=d.margin;this.OLD_B_OVERFLOW=d.overflow;this.OLD_B_HEIGHT=d.height;this.OLD_H_OVERFLOW=f.overflow;this.OLD_H_HEIGHT=f.height;this.OLD_SCROLL_Y=g.scrollTop;c.style.margin="0";c.style.overflow="auto";c.style.height="100%";g.style.overflow="auto";g.style.height="100%";b.position="absolute";c=this.getPageSize();b.height=c.h+"px";b.width=c.w+"px"}b.left= b.right=b.top=b.bottom="0";b.backgroundColor="#000";b.zIndex=1E3;b.opacity="0.5";b.filter="alpha(opacity=50)";var e=this;a.onclick=function(){e.exitPicLensLite()}},createForegroundFlashComponent:function(){var a=document.createElement("div");this.LITE_FG_DIV=a;a.id="lite_fg_div";a=a.style;a.backgroundColor="#000";a.position="fixed";a.border="2px solid #555";a.zIndex=1001;this.resizeToPaddedBox(a);if(this.BROWSER_IE6)a.position="absolute",this.resizeToFitPaddedBox(a)},closeFlashUI:function(a){var b= document;b.onkeydown=this.KEY_HANDLERS;window.onmousewheel=b.onmousewheel="";window.removeEventListener&&window.removeEventListener("DOMMouseScroll",this.handleMouseWheel,!1);b.detachEvent&&b.detachEvent("onmousewheel",this.handleMouseWheel);this.LITE_BG_DIV.style.display=this.LITE_FG_DIV.style.display="none";this.REMOVE_TIMER_ID=setTimeout(function(){PicLensLite.removeChildren()},150);if(this.BROWSER_IE6){var b=document.body,c=document.documentElement;b.style.margin=this.OLD_B_MARGIN;b.style.overflow= this.OLD_B_OVERFLOW;b.style.height=this.OLD_B_HEIGHT;c.style.overflow=this.OLD_H_OVERFLOW;c.style.height=this.OLD_H_HEIGHT;window.scrollTo(0,this.OLD_SCROLL_Y)}this.ON_EXIT!==null&&this.ON_EXIT(a);this.setRunningFlag(!1)},determineBrowserParams:function(){var a=BrowserDetect.OS,b=BrowserDetect.browser;this.OS_MAC=a=="Mac";this.OS_WIN=a=="Windows";this.BROWSER_FFX=b=="Firefox";this.BROWSER_SAF=b=="Safari";this.BROWSER_IE6=(this.BROWSER_IE=b=="Explorer")&&BrowserDetect.version=="6";this.FLASH_VER=swfobjlite.getFlashPlayerVersion()}, exitPicLensLite:function(){var a=this.getFlash();a!==null&&a.fl_exitPicLensLite?(a.fl_exitPicLensLite(),this.AUTO_CLOSE_TIMER_ID=setTimeout(function(){PicLensLite.isRunning()&&PicLensLite.closeFlashUI()},500)):this.closeFlashUI()},findScriptLocation:function(){for(var a=document.getElementsByTagName("script"),b=0;b!=a.length;++b){var c=a[b];if(c.getAttribute("type")=="text/javascript"&&(c=c.getAttribute("src"),c!==null)){var d=c.indexOf("piclens.js");if(d!=-1){this.setLiteURLs({lite:c.substring(0, d)});break}else if(d=c.indexOf("piclens_optimized.js"),d!=-1){this.setLiteURLs({lite:c.substring(0,d)});break}}}},getPageSize:function(){var a,b,c,d,g=document,f=g.body,e;window.innerHeight&&window.scrollMaxY?(a=g.scrollWidth,b=(this.isFrame?parent.innerHeight:self.innerHeight)+(this.isFrame?parent.scrollMaxY:self.scrollMaxY)):f.scrollHeight>f.offsetHeight?(a=f.scrollWidth,b=f.scrollHeight):(e=g.getElementsByTagName("html").item(0),a=e.offsetWidth,b=e.offsetHeight,a=a<f.offsetWidth?f.offsetWidth: a,b=b<f.offsetHeight?f.offsetHeight:b);e=g.documentElement;if(self.innerHeight)c=this.isFrame?parent.innerWidth:self.innerWidth,d=this.isFrame?parent.innerHeight:self.innerHeight;else if(e&&e.clientHeight)c=e.clientWidth,d=e.clientHeight;else if(f)e=g.getElementsByTagName("html").item(0),c=e.clientWidth,d=e.clientHeight,c=c==0?f.clientWidth:c,d=d==0?f.clientHeight:d;return{pw:a<c?c:a,ph:b<d?d:b,w:c,h:d}},getElementsFromXMLFeed:function(){var a;window.ActiveXObject?(a=new ActiveXObject("Microsoft.XMLDOM"), a.async=!1,a.loadXML(PicLensLite.THE_FEED)):a=(new DOMParser).parseFromString(PicLensLite.THE_FEED,"text/xml");return a.getElementsByTagName("*")},getBasicSlideShowHTML:function(){if(!this.LBOX_JS_URL||!this.LBOX_CSS_URL)return"";var a=document.getElementsByTagName("head").item(0),b=document.createElement("script");b.src=this.LBOX_JS_URL;b.type="text/javascript";a.appendChild(b);b=document.createElement("link");b.rel="stylesheet";b.href=this.LBOX_CSS_URL;b.type="text/css";b.media="screen";a.appendChild(b); var b=this.getElementsFromXMLFeed(),c,a="";for(c=0;c<b.length;c++)if(b[c].nodeName=="media:content"){var d=b[c].getAttribute("url");d.indexOf(".flv")==-1&&(a+='<a id="lboxImage" href="'+d+'" rel="lytebox[lite]"></a> ')}b="<div id='lightbox_images' align='center' style='display: none; padding-top:10px; color:#FFFFFF; font-size:.8em; "+this.FONT+" color:#999999;'>";b+='( Alternatively, <a onclick="javascript:PicLensLite.invokeLytebox();return false;" href="#" style="color:#656588">click here for a basic slideshow</a>. )'; b+=a;b+="</div><br/>";return b},generateAlternativeContent:function(){var a='<div id="altContent" style="text-align:center; margin: 0 0 0 0; padding: 0 0 0 0; background-color: #000; min-width:860px;">';a+='<div align="center" style="width: 100%; padding-top:60px; '+this.FONT+'">';var b=this.FLASH_VER,b=b.major>0?"update your Flash Player from version "+b.major+"."+b.minor+"."+b.release+" to version 9.0.28 or newer":"install the most recent Flash Player",c="";this.THE_FEED!==""&&(c=this.getBasicSlideShowHTML()); var d=this.PL_URL,g=this.LEARN_PL_URL,f=this.ARGS.pid;f?(d+=f+"/",g+=f+"/"):(d+="000000000001/",g+="000000000001/");this.SHOW_LBOX||(a+="<div style='padding:10px;'><span style='padding-left:25px; color:#C6C6C6; font-size:1.5em; font-weight: bold; "+this.FONT+"'>You're clicks away from going full screen!</span><br/><span style='padding-left:25px; color:#C6C6C6; font-size:.9em; padding-bottom: 15px; "+this.FONT+"'>You must get the <a href='"+d+"' style='color:#656588'>Cooliris</a> browser plugin, or "+ b+".</span></div>",a+=this.BUTTON_URL?'<img src="'+this.BUTTON_URL+'" alt="" border="0" usemap="#Map"><map name="Map" id="Map"><area shape="rect" coords="0,0,33,33" href="#" onclick="javascript:PicLensLite.closeFlashUI();" /><area shape="rect" coords="35,35,325,325" href="'+d+'" /><area shape="rect" coords="593,209,825,301" href="'+this.FLASH_URL+'" /><area shape="rect" coords="327,148,448,178" href="'+g+'" /></map>':'<a href="'+d+'" style="color:#ACD">Get Cooliris Now!</a>');a+="</div>";a+=c;a+= '<div align="center" style="color:#666666; font-size:11px; '+this.FONT+'">&copy; 2008 Cooliris, Inc. All trademarks are property of their respective holders.<br/><br/><br/></div>';a+="</div>";return a},generateFlashVars:function(){var a="",b=this.ARGS;typeof b.guid!=="undefined"&&(a+="&startItemGUID="+b.guid);b.loadFeedInFlash&&(a+="&feedURL="+encodeURIComponent(this.THE_FEED_URL));b.paused&&(a+="&paused="+b.paused);b.loop&&(a+="&loop="+b.loop);b.delay&&(a+="&delay="+b.delay);b.pid&&(a+="&pid="+b.pid); typeof b.maxScale!="undefined"&&(a+="&maxScale="+b.maxScale);typeof b.overlayToolbars!="undefined"&&(a+="&overlayToolbars="+b.overlayToolbars);b=this.CUSTOM_BUTTON;b!=null&&(a+="&cButtonURL="+encodeURIComponent(b.targetURL),b.labelText!=null&&(a+="&cButtonLabel="+encodeURIComponent(b.labelText)),b.iconImage!=null&&(a+="&cButtonIcon="+encodeURIComponent(b.iconImage)));a+="&swfURL="+encodeURIComponent(this.LITE_URL);return a=a.substring(1)},getFlash:function(){return this.BROWSER_SAF||this.BROWSER_IE? document.getElementById(this.FLASH_ID_1):document.getElementById(this.FLASH_ID_2)},getWindowSize:function(){var a=document.documentElement,b=document.body,c=0,d=0;if(typeof window.innerWidth=="number")c=window.innerWidth,d=window.innerHeight;else if(a&&(a.clientWidth||a.clientHeight))c=a.clientWidth,d=a.clientHeight;else if(b&&(b.clientWidth||b.clientHeight))c=b.clientWidth,d=b.clientHeight;return{w:c,h:d}},handleKeyPress:function(a){if(!this.isRunning())return!0;var b=this.getFlash();if(b!=null&& b.fl_keyPressed)b.fl_keyPressed(a);else if(a==27)return this.closeFlashUI(),!1;if(a==9||a==13)return!1;return!0},handleMouseWheel:function(a){var b=0;if(!a)a=window.event;if(a.wheelDelta)b=a.wheelDelta/120,window.opera&&(b=-b);else if(a.detail)b=a.detail,b=Math.abs(b)<3?-b:-b/3;b&&PicLensLite.sendMouseScrollToFlash(b);a.preventDefault&&a.preventDefault();return a.returnValue=!1},hasPicLensClient:function(){return this.hasCooliris()},hasCooliris:function(){if(this.DEBUG_NOCLIENT)return!1;var a=!1; if(this.PLC)a=!0;else if(window.piclens&&window.piclens.launch)this.PLC=window.piclens,a=!0;else{var b=null;if(typeof PicLensContext!="undefined")b=new PicLensContext;else try{b=new ActiveXObject("PicLens.Context")}catch(c){navigator.mimeTypes["application/x-cooliris"]?(b=document.createElement("object"),b.style.height="0px",b.style.width="0px",b.type="application/x-cooliris",document.documentElement.appendChild(b)):b=null}(this.PLC=b)&&(a=!0)}if(a){if(this.BROWSER_SAF)return!0;var d;try{d=this.PLC.version}catch(g){return!1}a= d.split(".");if(a[0]>1)return!0;else if(a[0]==1)if(a[1]>6)return!0;else if(a[1]==6)if(a[2]>0)return!0;else if(a[2]==0&&a[3]>=824)return!0}return!1},invokeLytebox:function(){this.SHOW_LBOX=!0;myLytebox.start(document.getElementById("lboxImage"),!1,!1);this.closeFlashUI()},showLyteboxLink:function(){myLytebox.updateLyteboxItems();myLytebox.doAnimations=!1;var a=document.getElementById("lightbox_images");if(a!=null)a.style.display="block",this.SHOW_LBOX&&this.getFlash()==null&&this.invokeLytebox()}, startLytebox:function(){typeof myLytebox!="undefined"?this.showLyteboxLink():typeof initLytebox!="undefined"?(initLytebox(),this.showLyteboxLink()):this.LBOX_COUNT>=4||(setTimeout(function(){PicLensLite.startLytebox()},150),this.LBOX_COUNT++)},injectFlashPlayer:function(){var a=this.LITE_FG_DIV,b,c;b=c="100%";this.BROWSER_IE6&&(b=c="0");var d=this.generateFlashVars(),g=this.generateAlternativeContent();this.meetsReqs()?a.innerHTML='<object id="'+this.FLASH_ID_1+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+ this.LITE_URL+'" /><param name="quality" value="high"/> <param name="bgcolor" value="#000000"/> <param name="allowScriptAccess" value="always"/> <param name="FlashVars" value="'+d+'"/> <param name="allowFullScreen" value="true"/> <param name="wmode" value="window"/> <param name="scale" value="noscale"/> <object type="application/x-shockwave-flash" data="'+this.LITE_URL+'" width="'+b+'" height="'+c+'" quality="high" bgcolor="#000000" id="'+this.FLASH_ID_2+'" quality="high" FlashVars="'+d+'" allowFullScreen="true" scale="noscale" wmode="window" allowScriptAccess="always">'+ g+"</object></object>":this.ON_NO_PLUGINS?this.ON_NO_PLUGINS():(a.innerHTML=g,a.style.minWidth="860px",a.style.minHeight="550px");this.BROWSER_SAF&&this.resizeUI()},indexFeeds:function(){for(var a=document.getElementsByTagName("link"),b=[],c=0;c!=a.length;++c){var d=a[c],g=d.getAttribute("type");(g=="application/rss+xml"||g=="text/xml")&&b.push({title:d.getAttribute("title"),url:d.getAttribute("href")})}return b},loadViaXHR:function(a){var b=this,c=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0"); try{c.open("GET",a,!0),c.onreadystatechange=function(){c.readyState==4&&(c.status==200||c.status==0?c.responseText&&b.showFlashUI(c.responseText):console&&console.log("PicLens Lite could not load the RSS Feed: "+a))},c.send("")}catch(d){this.ARGS.loadFeedInFlash=!0,this.showFlashUI("")}},meetsReqs:function(){if(this.DEBUG_NOFLASH)return!1;var a=this.FLASH_VER.major==0&&this.BROWSER_IE;return swfobjlite.hasFlashPlayerVersion("9.0.28")||a},removeChildren:function(){this.REMOVE_TIMER_ID=0;if(this.LITE_BG_DIV!== null)document.body.removeChild(this.LITE_BG_DIV),this.LITE_BG_DIV=null;if(this.LITE_FG_DIV!==null)document.body.removeChild(this.LITE_FG_DIV),this.LITE_FG_DIV=null},resizeFlashToFitPaddedBox:function(){var a=this.getFlash();if(a){var b=this.getPageSize(),c=b.w-this.HPAD*2,b=b.h-this.VPAD*2;a.style.width=c;a.style.height=b;a.width=c;a.height=b}},resizeToFitPaddedBox:function(a,b){typeof b=="undefined"&&(b=this.getPageSize());a.width=b.w-this.HPAD*2+"px";a.height=b.h-this.VPAD*2+"px"},resizeToPaddedBox:function(a){a.left= a.right=this.HPAD+"px";a.top=a.bottom=this.VPAD+"px"},resizeUI:function(){if(this.LITE_FG_DIV){var a=this.LITE_FG_DIV.style;this.resizeToPaddedBox(a);this.resizeToFitPaddedBox(a);this.resizeFlashToFitPaddedBox()}},setRunningFlag:function(a){this.piclensIsRunning_=this.LITE_IS_RUNNING=a},setResizeHandler:function(){if(!this.RESIZE_HANDLER_EXISTS&&this.BROWSER_SAF){var a=this;window.addEventListener("resize",function(){a.resizeUI()},!1);this.RESIZE_HANDLER_EXISTS=!0}},setResizeTimer:function(){if(this.BROWSER_IE6)this.RESIZE_TIMER_IE6= setInterval(function(){PicLensLite.autoResize()},1E3)},showFlashUI:function(a){this.THE_FEED=a;this.findScriptLocation();this.createBackgroundOverlay();this.createForegroundFlashComponent();this.BROWSER_IE&&this.appendElementsToDocument();this.injectFlashPlayer();this.BROWSER_IE||this.appendElementsToDocument();this.addKeyHandlers();this.addMouseHandlers();this.setRunningFlag(!0);this.setResizeTimer();this.setResizeHandler();this.startLytebox()},sendMouseScrollToFlash:function(a){if(this.isRunning()){var b= this.getFlash();b!=null&&b.fl_mouseMoved&&b.fl_mouseMoved(a)}}},swfobjlite=function(){var a=window,b=document,c=navigator,d=function(){var d=typeof b.getElementById!="undefined"&&typeof b.getElementsByTagName!="undefined"&&typeof b.createElement!="undefined"&&typeof b.appendChild!="undefined"&&typeof b.replaceChild!="undefined"&&typeof b.removeChild!="undefined"&&typeof b.cloneNode!="undefined",f=[0,0,0],e=null;if(typeof c.plugins!="undefined"&&typeof c.plugins["Shockwave Flash"]=="object"){if(e= c.plugins["Shockwave Flash"].description)e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=parseInt(e.replace(/^(.*)\..*$/,"$1"),10),f[1]=parseInt(e.replace(/^.*\.(.*)\s.*$/,"$1"),10),f[2]=/r/.test(e)?parseInt(e.replace(/^.*r(.*)$/,"$1"),10):0}else if(typeof a.ActiveXObject!="undefined"){var i=null,h=!1;try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(k){try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),f=[6,0,21],i.AllowScriptAccess="always"}catch(l){f[0]==6&&(h=!0)}if(!h)try{i= new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}if(!h&&i)try{if(e=i.GetVariable("$version"))e=e.split(" ")[1].split(","),f=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}catch(n){}}var h=c.userAgent.toLowerCase(),j=c.platform.toLowerCase(),e=/webkit/.test(h)?parseFloat(h.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,i=j?/win/.test(j):/win/.test(h),h=j?/mac/.test(j):/mac/.test(h);return{w3cdom:d,pv:f,webkit:e,ie:!1,win:i,mac:h}}();return{hasFlashPlayerVersion:function(a){var b= d.pv,a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10);a[2]=parseInt(a[2],10);return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?!0:!1},getFlashPlayerVersion:function(){return{major:d.pv[0],minor:d.pv[1],release:d.pv[2]}}}}(),BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"Unknown Browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown Version";this.OS=this.searchString(this.dataOS)|| "Unknown OS"},searchString:function(a){for(var b=0;b<a.length;b++){var c=a[b].string,d=a[b].prop;this.versionSearchString=a[b].versionSearch||a[b].identity;if(c){if(c.indexOf(a[b].subString)!=-1)return a[b].identity}else if(d)return a[b].identity}},searchVersion:function(a){var b=a.indexOf(this.versionSearchString);if(b!=-1)return parseFloat(a.substring(b+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();
