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