// Basic Functions
var block_arr=new Array();var minimum_top=20;var minimum_left=20;var zIndexValue=200;var timeout=100;var infoTimer=0;var divObj=0;function closeUserPopup(){if(divObj)divObj.style.display='none';}
function closeUserPopupAndTimer(){infoTimer=window.setTimeout(closeUserPopup,timeout);}
function resetUserInfoTimer(){if(infoTimer)
{window.clearTimeout(infoTimer);infoTimer=null;}}
var displayDefaultValue=function(obj,dValue){var objValue=obj.value;if(objValue=='')
obj.value=dValue;}
var clearDefaultValue=function(obj,dValue){var objValue=obj.value;objValue=objValue.toLowerCase()
if(objValue==dValue)
obj.value='';}
var checkforSearchText=function(obj,dValue,msg){clearDefaultValue(obj,dValue);var objValue=obj.value;if(objValue)
return true;alert_manual(msg,obj);return false;}
function xGetElementById(e){if(typeof(e)!='string')return e;if(document.getElementById)e=document.getElementById(e);else if(document.all)e=document.all[e];else e=null;return e;}
function createCookie(name,value,days){if(days){var exdate=new Date();exdate.setDate(exdate.getDate()+days);var expires="; expires="+exdate.toGMTString();}
else var expires="";document.cookie=name+"="+escape(value)+expires+"; path=/";}
function readCookie(c_name)
{if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function checkCookie(cookieName)
{if(cookieName!=null&&cookieName!=""){alert('Welcome again '+cookieName+'! : '+readCookie(cookieName));}else{alert('No cookie found');}}
function LTrim(str){var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(0))!=-1){var j=0,i=s.length;while(j<i&&whitespace.indexOf(s.charAt(j))!=-1)
j++;s=s.substring(j,i);}
return s;}
function RTrim(str){var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(s.length-1))!=-1){var i=s.length-1;while(i>=0&&whitespace.indexOf(s.charAt(i))!=-1)
i--;s=s.substring(0,i+1);}
return s;}
function Trim(str){return RTrim(LTrim(str));}
function getAbsoluteOffsetTopConfirmation(obj){var top=obj.offsetTop;var parent=obj.offsetParent;while(parent!=document.body)
{top+=parent.offsetTop;parent=parent.offsetParent;}
return top;}
function getAbsoluteOffsetLeftConfirmation(obj){var left=obj.offsetLeft;var parent=obj.offsetParent;while(parent!=document.body)
{left+=parent.offsetLeft;parent=parent.offsetParent;}
return left;}
function getPageSizeWithScroll(){if(window.innerHeight&&window.scrollMaxY){yWithScroll=window.innerHeight+window.scrollMaxY;xWithScroll=window.innerWidth+window.scrollMaxX;}else if(document.body.scrollHeight>document.body.offsetHeight){yWithScroll=document.body.scrollHeight;xWithScroll=document.body.scrollWidth;}else{yWithScroll=document.body.offsetHeight;xWithScroll=document.body.offsetWidth;}
arrayPageSizeWithScroll=new Array(xWithScroll,yWithScroll);return arrayPageSizeWithScroll;}
function hideAllBlocks(){var obj;var enable_frm='';if(arguments.length==1)
var enable_frm=arguments[0];if(obj=$('selAlertbox'))
obj.style.display='none';for(var i=0;i<block_arr.length;i++){if(obj=$(block_arr[i]))
{obj.style.display='none';disableAll('1',enable_frm);}}
if(obj=$('hideScreen'))
obj.style.display='none';if(obj=$('selAjaxWindow'))
obj.style.display='none';if(obj=$('selAjaxWindowInnerDiv'))
obj.innerHTML='';if((catObj=$('category'))||(sub_catObj=$('sub_category'))){br=getBrowser();if(br[0]=='msie'&&getMajorVersion(br[1])=='6'){if(catObj=$('category'))
catObj.style.display='';if(sub_catObj=$('sub_category'))
sub_catObj.style.display='';}}
return false;}
function changePosition(fromObj)
{var obj=fromObj;obj.style.display='block';if(navigator.appName=="Microsoft Internet Explorer")
{var scrolltop=document.documentElement.scrollTop;var scrollleft=document.documentElement.scrollLeft;var innerheight=document.documentElement.clientHeight;if(innerheight==0)
{innerheight=1000;}
var innerwidth=document.documentElement.clientWidth;if(innerwidth==0)
innerwidth=600;var divwidth=obj.offsetWidth;var divheight=obj.offsetHeight;}
else
{var scrolltop=window.pageYOffset;var scrollleft=window.pageXOffset;var innerheight=window.innerHeight;var innerwidth=window.innerWidth;var divwidth=obj.offsetWidth;var divheight=obj.offsetHeight;}
if(obj.style.position=='fixed')
{var movedivleft=(parseInt(innerwidth)/2)-(parseInt(divwidth)/2);var movedivtop=(parseInt(innerheight)/2)-(parseInt(divheight)/2);}
else
{var movedivleft=(parseInt(innerwidth)/2)+(parseInt(scrollleft))-(parseInt(divwidth)/2);var movedivtop=(parseInt(innerheight)/2)+(parseInt(scrolltop))-(parseInt(divheight)/2);}
obj.style.top=movedivtop+'px';obj.style.left=movedivleft+'px';obj.style.zIndex=zIndexValue;if(obj=$('hideScreen'))
{var ss=getPageSizeWithScroll();var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("msie")!=-1){obj.style.width=ss[0]+"px";}
obj.style.height=ss[1]+"px";obj.style.display='block';}
return false;}
var closLightWindow=function(){hideAllBlocks();return false;}
var alert_manual=function()
{var obj;var alert_value=arguments[0];var need_id='';if(arguments.length==2)
need_id=arguments[1];if(obj=$('selAlertMessage'))
obj.innerHTML=alert_value;if(fromObj=$('selAlertbox'))
changePosition(fromObj);if(obj=$('selAlertOkButton'))
{obj.focus();if(need_id)
obj.onclick=function(){hideAllBlocks();need_id.focus();}}
return false;}
var Confirmation=function(){var obj,inc,form_field;hideAllBlocks();var block=arguments[0];var form_name=arguments[1];var id_array=arguments[2];var value_array=arguments[3];var property_array=new Array();multiCheckValue='';if(arguments.length>=5)
property_array=arguments[4];for(inc=0;inc<value_array.length;inc++){if(!property_array[inc])
property_array[inc]='value';form_field=eval('document.'+form_name+'.'+id_array[inc]);if(form_field&&form_field[property_array[inc]]!=null)
form_field[property_array[inc]]=value_array[inc];else if(obj=$(id_array[inc]))
obj[property_array[inc]]=value_array[inc];}
if(fromObj=$(block))
{changePosition(fromObj);popupFrmObj=eval('document.'+form_name);popupFrmElementsLength=popupFrmObj.elements.length;for(inc=0;inc<popupFrmElementsLength-1;inc++){if(popupFrmObj.elements[inc].className=='clsSubmitButton')
popupFrmObj.elements[inc].focus();}}
return false;}
// SWObject
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};deconcept.PlayerVersion=function(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var _30=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();_30();};}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload();};}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){Array.prototype.push=function(_31){this[this.length]=_31;return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
// JsCommunicator
function JSFCommunicator(flashMovie)
{this.init(flashMovie);}
JSFCommunicator.prototype.init=function(flashMovie){if(flashMovie=="undefined"){var flashMovie=null;}
this.setMovie(flashMovie);this.functionToCall=null;this.functionLocationinFlash=null;this.functionArgs=null;}
JSFCommunicator.prototype.setMovie=function(flashMovie)
{this.flashMovie=flashMovie;}
JSFCommunicator.prototype.setVariable=function(propName,propValue){this.flashMovie.SetVariable(propName,propValue);}
JSFCommunicator.prototype.getVariable=function(propName){var result=this.flashMovie.GetVariable(propName);return result;}
JSFCommunicator.prototype.callFunction=function(fnLocation,fnName,fnArgs){if(this.flashMovie==null){return false;}
var flag=this.getVariable("/:triggerFn");var result=false;if(fnName==""){return false;}
if(fnLocation==""){var fnLocation="_level0";}
this.setVariable("/:fnLocation",fnLocation);this.setVariable("/:fnName",fnName);if(typeof(fnArgs)=="object"){this.setVariable("/:fnArgs",fnArgs.join("$@$$"));}else if(typeof(fnArgs)=="number"||typeof(fnArgs)=="string"){this.setVariable("/:fnArgs",fnArgs);}
this.setVariable("/:triggerFn",!flag);result=this.getVariable("triggerFnStatus");this.setVariable("/:triggerFnStatus",false);return result;}
// Browsersniff
var jsVer=-1;function getBrowser(obj){var b=new Array("unknown","unknown","unknown","unknown");(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);if(brs.search(/omniweb[\/\s]v?(\d+([\.-]\d)*)/)!=-1){b[0]="omniweb";b[1]=brs.match(/omniweb[\/\s]v?(\d+([\.-]\d)*)/)[1];(b[1]>4.5?b[2]="khtml":b[2]="omniweb");(brs.search(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/)==-1?b[3]=brs.match(/omniweb[\/\s](\d+([\.-]\d)*)/)[1]:b[3]=brs.match(/omniweb[\/\s]((\d+([\.-]\d)*)-)?v(\d+([\.-]\d)*)/)[4]);return b;}else if(brs.search(/opera[\/\s](\d+(\.?\d)*)/)!=-1){b[0]="opera";b[1]=brs.match(/opera[\/\s](\d+(\.?\d)*)/)[1];b[2]="opera";b[3]=b[1];return b;}else if(brs.search(/crazy\s?browser\s(\d+(\.?\d)*)/)!=-1){b[0]="crazy";b[1]=brs.match(/crazy\s?browser\s(\d+(\.?\d)*)/)[1];b[2]="msie";b[3]=getMSIEVersion();return b;}else if(brs.search(/myie2/)!=-1){b[0]="myie2";b[2]="msie";b[3]=brs.match(/msie\s(\d+(\.?\d)*)/)[1];return b;}else if(brs.search(/netcaptor/)!=-1){b[0]="netcaptor";b[1]=brs.match(/netcaptor\s(\d+(\.?\d)*)/)[1];b[2]="msie";b[3]=getMSIEVersion();return b;}else if(brs.search(/avant\sbrowser/)!=-1){b[0]="avantbrowser";b[2]="msie";b[3]=getMSIEVersion();return b;}else if(brs.search(/msn\s(\d+(\.?\d)*)/)!=-1){b[0]="msn";b[1]=brs.match(/msn\s(\d+(\.?\d)*)/)[1];b[2]="msie";b[3]=getMSIEVersion();return b;}else if(brs.search(/msie\s(\d+(\.?\d)*)/)!=-1){b[0]="msie";b[1]=getMSIEVersion();b[2]="msie";b[3]=b[1];return b;}else if(brs.search(/powermarks\/(\d+(\.?\d)*)/)!=-1){b[0]="powermarks";b[1]=brs.match(/powermarks\/(\d+(\.?\d)*)/)[1];b[2]="msie";try{b[3]=getMSIEVersion();}catch(e){}
return b;}else if(brs.search(/konqueror[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="konqueror";b[1]=brs.match(/konqueror[\/\s](\d+([\.-]\d)*)/)[1];b[2]="khtml";return b;}else if(brs.search(/safari\/(\d)*/)!=-1){b[0]="safari";b[1]=brs.match(/safari\/(\d+(\.?\d*)*)/)[1];b[2]="khtml";b[3]=brs.match(/applewebkit\/(\d+(\.?\d*)*)/)[1];return b;}else if(brs.search(/zyborg/)!=-1){b[0]="zyborg";b[1]=brs.match(/zyborg\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1"
return b;}else if(brs.search(/netscape6[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="netscape";b[1]=brs.match(/netscape6[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/netscape\/(7\.\d*)/)!=-1){b[0]="netscape";b[1]=brs.match(/netscape\/(7\.\d*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/galeon[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="galeon";b[1]=brs.match(/galeon[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/nautilus[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="nautilus";b[1]=brs.match(/nautilus[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/firefox[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="firefox";b[1]=brs.match(/firefox[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/k-meleon[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="kmeleon";b[1]=brs.match(/k-meleon[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/playstation\s3/)!=-1){b[0]="netfront";b[1]="2.81";b[2]="playstation3"
b[3]=brs.match(/playstation\s3;\s(\d+\.\d+)/)[1];return b;}else if(brs.search(/firebird[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="firebird";b[1]=brs.match(/firebird[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/phoenix[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="phoenix";b[1]=brs.match(/phoenix[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/camino[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="camino";b[1]=brs.match(/camino[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/epiphany[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="epiphany";b[1]=brs.match(/epiphany[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/chimera[\/\s](\d+([\.-]\d)*)/)!=-1){b[0]="chimera";b[1]=brs.match(/chimera[\/\s](\d+([\.-]\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/icab[\s\/]?(\d+(\.?\d)*)/)!=-1){b[0]="icab";b[1]=brs.match(/icab[\s\/]?(\d+(\.?\d)*)/)[1];b[2]="icab";b[3]=b[1];return b;}else if(brs.search(/netfront\/(\d+([\._]\d)*)/)!=-1){b[0]="netfront";b[1]=brs.match(/netfront\/(\d+([\._]\d)*)/)[1];b[2]="netfront";b[3]=b[1];return b;}else if(brs.search(/netscape4\/(\d+([\.-]\d)*)/)!=-1){b[0]="netscape";b[1]=brs.match(/netscape4\/(\d+([\.-]\d)*)/)[1];b[2]="mozold";b[3]=b[1];return b;}else if((brs.search(/mozilla\/(4.\d*)/)!=-1)&&(brs.search(/msie\s(\d+(\.?\d)*)/)==-1)){b[0]="netscape";b[1]=brs.match(/mozilla\/(4.\d*)/)[1];b[2]="mozold";b[3]=b[1];return b;}else if((brs.search(/mozilla\/5.0/)!=-1)&&(brs.search(/gecko\//)!=-1)){b[0]="mozsea";b[1]=brs.match(/rv\x3a(\d+(\.?\d)*)/)[1];b[2]="gecko";b[3]=getGeckoVersion();return b;}else if(brs.search(/elinks/)!=-1){b[0]="elinks";(brs.search(/elinks\/(\d+(\.?\d)*)/)==-1?b[1]=brs.match(/elinks\s\x28(\d+(\.?\d)*)/)[1]:b[1]=brs.match(/elinks\/(\d+(\.?\d)*)/)[1]);b[2]="elinks";b[3]=b[1];return b;}else if(brs.search(/w3m\/(\d+(\.?\d)*)/)!=-1){b[0]="w3m"
b[1]=brs.match(/(^w3m|\sw3m)\/(\d+(\.?\d)*)/)[2];b[2]="w3m";b[3]=b[1];return b;}else if(brs.search(/links/)!=-1){b[0]="links";(brs.search(/links\/(\d+(\.?\d)*)/)==-1?b[1]=brs.match(/links\s\x28(\d+(\.?\d)*)/)[1]:b[1]=brs.match(/links\/(\d+(\.?\d)*)/)[1]);b[2]="links";b[3]=b[1];return b;}else if(brs.search(/java[\/\s]?(\d+([\._]\d)*)/)!=-1){b[0]="java";b[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1];b[2]="java";b[3]=b[1];return b;}else if(brs.search(/lynx/)!=-1){b[0]="lynx";b[1]=brs.match(/lynx\/(\d+(\.?\d)*)/)[1];b[2]="libwww-fm";b[3]=brs.match(/libwww-fm\/(\d+(\.?\d)*)/)[1];return b;}else if(brs.search(/dillo/)!=-1){b[0]="dillo";b[1]=brs.match(/dillo\s*\/*(\d+(\.?\d)*)/)[1];b[2]="dillo";b[3]=b[1];return b;}else if(brs.search(/wget/)!=-1){b[0]="wget";b[1]=brs.match(/wget\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1"
return b;}else if(brs.search(/googlebot\-image/)!=-1){b[0]="googlebotimg";b[1]=brs.match(/googlebot\-image\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1"
return b;}else if(brs.search(/googlebot/)!=-1){b[0]="googlebot";b[1]=brs.match(/googlebot\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1"
return b;}else if(brs.search(/msnbot/)!=-1){b[0]="msnbot";b[1]=brs.match(/msnbot\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1"
return b;}else if(brs.search(/turnitinbot/)!=-1){b[0]="turnitinbot";b[1]=brs.match(/turnitinbot\/(\d+(\.?\d)*)/)[1];b[2]="robot";b[3]="-1"
return b;}else{b[0]="unknown";return b;}}
function getMajorVersion(v){return(isEmpty(v)?-1:(hasDot(v)?v:v.match(/(\d*)(\.\d*)*/)[1]))}
function getMinorVersion(v){return(!isEmpty(v)?(!hasDot(v)?v.match(/\.(\d*([-\.]\d*)*)/)[1]:0):-1)}
function getOS(obj){var os=new Array("unknown","unknown");(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);if(brs.search(/windows\sce/)!=-1){os[0]="wince";try{os[1]=brs.match(/windows\sce\/(\d+(\.?\d)*)/)[1];}catch(e){}
return os;}else if((brs.search(/windows/)!=-1)||((brs.search(/win9\d{1}/)!=-1))){os[0]="win";if(brs.search(/nt\s5\.1/)!=-1){os[1]="xp";}else if(brs.search(/nt\s5\.0/)!=-1){os[1]="2000";}else if((brs.search(/win98/)!=-1)||(brs.search(/windows\s98/)!=-1)){os[1]="98";}else if(brs.search(/windows\sme/)!=-1){os[1]="me";}else if(brs.search(/nt\s5\.2/)!=-1){os[1]="win2k3";}else if((brs.search(/windows\s95/)!=-1)||(brs.search(/win95/)!=-1)){os[1]="95";}else if((brs.search(/nt\s4\.0/)!=-1)||(brs.search(/nt4\.0/))!=-1){os[1]="nt4";}
return os;}else if(brs.search(/linux/)!=-1){os[0]="linux";try{os[1]=brs.match(/linux\s?(\d+(\.?\d)*)/)[1];}catch(e){}
return os;}else if(brs.search(/mac\sos\sx/)!=-1){os[0]="macosx";return os;}else if(brs.search(/freebsd/)!=-1){os[0]="freebsd";try{os[1]=brs.match(/freebsd\s(\d(\.\d)*)*/)[1];}catch(e){}
return os;}else if(brs.search(/sunos/)!=-1){os[0]="sunos";try{os[1]=brs.match(/sunos\s(\d(\.\d)*)*/)[1];}catch(e){}
return os;}else if(brs.search(/irix/)!=-1){os[0]="irix";try{os[1]=brs.match(/irix\s(\d(\.\d)*)*/)[1];}catch(e){}
return os;}else if(brs.search(/openbsd/)!=-1){os[0]="openbsd";try{os[1]=brs.match(/openbsd\s(\d(\.\d)*)*/)[1];}catch(e){}
return os;}else if((brs.search(/macintosh/)!=-1)||(brs.search(/mac\x5fpowerpc/)!=-1)){os[0]="macclassic";return os;}else if(brs.search(/os\/2/)!=-1){os[0]="os2";try{os[1]=brs.match(/warp\s((\d(\.\d)*)*)/)[1];}catch(e){}
return os;}else if(brs.search(/openvms/)!=-1){os[0]="openvms";try{os[1]=brs.match(/openvms\sv((\d(\.\d)*)*)/)[1];}catch(e){}
return os;}else if((brs.search(/amigaos/)!=-1)||(brs.search(/amiga/)!=-1)){os[0]="amigaos";try{os[1]=brs.match(/amigaos\s?(\d(\.\d)*)*/)[1];}catch(e){}
return os;}else if(brs.search(/hurd/)!=-1){os[0]="hurd";return os;}else if(brs.search(/hp\-ux/)!=-1){os[0]="hpux";try{os[1]=brs.match(/hp\-ux\sb\.[\/\s]?(\d+([\._]\d)*)/)[1];}catch(e){}
return os;}else if((brs.search(/unix/)!=-1)||(brs.search(/x11/)!=-1)){os[0]="unix";return os;}else if(brs.search(/cygwin/)!=-1){os[0]="cygwin";return os;}else if(brs.search(/java[\/\s]?(\d+([\._]\d)*)/)!=-1){os[0]="java";try{os[1]=brs.match(/java[\/\s]?(\d+([\._]\d)*)/)[1];}catch(e){}
return os;}else if(brs.search(/palmos/)!=-1){os[0]="palmos";return os;}else if(brs.search(/symbian\s?os\/(\d+([\._]\d)*)/)!=-1){os[0]="symbian";try{os[1]=brs.match(/symbian\s?os\/(\d+([\._]\d)*)/)[1];}catch(e){}
return os;}else{os[0]="unknown";return os;}}
function getGeckoVersion(){return brs.match(/gecko\/([0-9]+)/)[1];}
function getMSIEVersion(){return brs.match(/msie\s(\d+(\.?\d)*)/)[1];}
function getFullUAString(obj){(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);return brs;}
function hasFlashPlugin(obj){(isEmpty(obj)?brs=navigator.userAgent.toLowerCase():brs=obj);var f=new Array("0","0");var brwEng=getBrowser(obj)[2];var opSys=getOS(obj)[0];if((brwEng=="gecko")||(brwEng=="opera")||(brwEng=="khtml")||(brwEng=="mozold")||(opSys=="macosx")||(opSys=="macclassic")){if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins["Shockwave Flash"];if(x){f[0]=2;if(x.description){y=x.description;f[1]=y.charAt(y.indexOf('.')-1);}}else{f[0]=1;}
if(navigator.plugins["Shockwave Flash 2.0"]){f[0]=2;f[0]=2;}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes['application/x-shockwave-flash'];if(x&&x.enabledPlugin){f[0]=2;}else{f[0]=1;}}
return f;}else if(brwEng=="msie"){for(var i=15;i>0;i--){try{var flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);f[1]=i;break;}catch(e){}}
if(f[1]>0){f[0]=2}else{f[0]=1}
return f;}else{f[0]=0;f[1]=0;return f;}}
function popupsAllowed(){var allowed=false;var w=window.open("about:blank","","directories=no,height=1,width=1,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,left=0,top=0,location=no");if(w){allowed=true;w.close();}
return allowed;}
function _jsVersion(){document.write('<script language="JavaScript1.0">');document.write('var jsVer=1.0;');document.write('</script>');document.write('<script language="JavaScript1.1">');document.write('var jsVer=1.1;');document.write('</script>');document.write('<script language="JavaScript1.2">');document.write('var jsVer=1.2;');document.write('</script>');document.write('<script language="JavaScript1.3">');document.write('var jsVer=1.3;');document.write('</script>');document.write('<script language="JavaScript1.4">');document.write('var jsVer=1.4;');document.write('</script>');document.write('<script language="JavaScript1.5">');document.write('var jsVer=1.5;');document.write('</script>');document.write('<script language="JavaScript1.6">');document.write('var jsVer=1.6;');document.write('</script>');document.write('<script language="JavaScript1.7">');document.write('var jsVer=1.7;');document.write('</script>');document.write('<script language="JavaScript1.8">');document.write('var jsVer=1.8;');document.write('</script>');document.write('<script language="JavaScript2.0">');document.write('var jsVer=2.0;');document.write('</script>');}
function jsVersion(){_jsVersion();return jsVer;}
function isEmpty(input){return(input==null||input=="")}
function hasDot(input){return(input.search(/\./)==-1)}
