
function getCookie(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 0;
}


function SetCookie(c_name,value,expiredays)
{
 var exdate = new Date();
 exdate.setDate(exdate.getDate() + expiredays);
 document.cookie = c_name + "=" + escape(value) +
 ((expiredays==null) ? "" : ";expires=" + exdate.toGMTString()) + '; path=/';
}

function checkCookie()
{
mlang=getCookie('mlang');
langswitch_lang=getCookie('wordpress_langswitch_lang');
if (mlang!=null && mlang!="")
  {
  
  }
else
  {
      SetCookie('mlang',langswitch_lang,1);
    
  }
}



function GetBrowser()

{

    var agt=navigator.userAgent.toLowerCase();

    if( ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) )

        return "IE";

    else if( ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)

            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)

            && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)) )

        return "Netscape";

    else

        return "unknown";

}


 var br = GetBrowser();
 	if(br=="Netscape")
 		{
 			SetCookie('br','1');
 		} else {
 			SetCookie('br','0');
 }
 
 


/* PluginDetect v0.7.0 by Eric Gerds www.pinlady.net/PluginDetect [ onWindowLoaded isMinVersion getVersion onDetectionDone beforeInstantiate WMP Silverlight ] */var PluginDetect={handler:function(c,b,a){return function(){c(b,a)}},isDefined:function(b){return typeof b!="undefined"},isArray:function(b){return(b&&b.constructor===Array)},isFunc:function(b){return typeof b=="function"},isString:function(b){return typeof b=="string"},num:function(a){return(this.isString(a)&&(/\d/).test(a))},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(b,c){var d=this,a=d.num(b)?(d.isDefined(c)?new RegExp(c):d.getNumRegx).exec(b):null;return a?a[0].replace(d.splitNumRegx,","):null},compareNums:function(h,f,d){var e=this,c,b,a,g=parseInt;if(e.num(h)&&e.num(f)){if(e.isDefined(d)&&d.compareNums){return d.compareNums(h,f)}c=h.split(e.splitNumRegx);b=f.split(e.splitNumRegx);for(a=0;a<Math.min(c.length,b.length);a++){if(g(c[a],10)>g(b[a],10)){return 1}if(g(c[a],10)<g(b[a],10)){return -1}}}return 0},formatNum:function(b){var c=this,a,d;if(!c.num(b)){return null}d=b.replace(/\s/g,"").split(c.splitNumRegx).concat(["0","0","0","0"]);for(a=0;a<4;a++){if(/^(0+)(.+)$/.test(d[a])){d[a]=RegExp.$2}}if(!(/\d/).test(d[0])){d[0]="0"}return d.slice(0,4).join(",")},$$hasMimeType:function(a){return function(d){if(!a.isIE){var c,b,e,f=a.isString(d)?[d]:d;for(e=0;e<f.length;e++){c=navigator.mimeTypes[f[e]];if(c&&(b=c.enabledPlugin)){if(b.name||b.description){return c}}}}return null}},findNavPlugin:function(g,d){var a=this.isString(g)?g:g.join(".*"),e=d===false?"":"\\d",b,c=new RegExp(a+".*"+e+"|"+e+".*"+a,"i"),f=navigator.plugins;for(b=0;b<f.length;b++){if(c.test(f[b].description)||c.test(f[b].name)){return f[b]}}return null},AXO:window.ActiveXObject,getAXO:function(b,a){var g=null,f,d=false,c=this;try{g=new c.AXO(b);d=true}catch(f){}if(c.isDefined(a)){delete g;return d}return g},convertFuncs:function(f){var a,g,d,b=/^[\$][\$]/,c={};for(a in f){if(b.test(a)){c[a]=1}}for(a in c){try{g=a.slice(2);if(g.length>0&&!f[g]){f[g]=f[a](f)}}catch(d){}}},initScript:function(){var $=this,nav=navigator,userAgent=(nav&&$.isString(nav.userAgent)?nav.userAgent:""),vendor=(nav&&$.isString(nav.vendor)?nav.vendor:"");$.convertFuncs($);$.isIE=/*@cc_on!@*/false;$.IEver=$.isIE&&((/MSIE\s*(\d\.?\d*)/i).exec(userAgent))?parseFloat(RegExp.$1,10):-1;$.ActiveXEnabled=false;if($.isIE){var x,progid=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(x=0;x<progid.length;x++){if($.getAXO(progid[x],1)){$.ActiveXEnabled=true;break}}$.head=$.isDefined(document.getElementsByTagName)?document.getElementsByTagName("head")[0]:null}$.isGecko=!$.isIE&&$.isString(navigator.product)&&(/Gecko/i).test(navigator.product)&&(/Gecko\s*\/\s*\d/i).test(userAgent);$.GeckoRV=$.isGecko?$.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(userAgent)?RegExp.$1:"0.9"):null;$.isSafari=!$.isIE&&(/Safari\s*\/\s*\d/i).test(userAgent)&&(/Apple/i).test(vendor);$.isChrome=!$.isIE&&(/Chrome\s*\/\s*\d/i).test(userAgent);$.isOpera=!$.isIE&&(/Opera\s*[\/]?\s*\d/i).test(userAgent);$.addWinEvent("load",$.handler($.runWLfuncs,$))},init:function(d,a){var c=this,b;if(!c.isString(d)){return -3}if(d.length==1){c.getVersionDelimiter=d;return -3}d=d.toLowerCase().replace(/\s/g,"");if(!c.isDefined(c[d])){return -3}b=c[d];c.plugin=b;if(!c.isDefined(b.installed)||a==true){b.installed=b.version=b.version0=b.getVersionDone=null;b.$=c}c.garbage=false;if(c.isIE&&!c.ActiveXEnabled){if(b!==c.java){return -2}}return 1},fPush:function(b,a){var c=this;if(c.isArray(a)&&(c.isFunc(b)||(c.isArray(b)&&b.length>0&&c.isFunc(b[0])))){a[a.length]=b}},callArray:function(b){var c=this,a;if(c.isArray(b)){for(a=0;a<b.length;a++){if(b[a]===null){return}c.call(b[a]);b[a]=null}}},call:function(c){var b=this,a=b.isArray(c)?c.length:-1;if(a>0&&b.isFunc(c[0])){c[0](b,a>1?c[1]:0,a>2?c[2]:0,a>3?c[3]:0)}else{if(b.isFunc(c)){c(b)}}},$$isMinVersion:function(a){return function(h,g,d,c){var e=a.init(h),f,b=-1;if(e<0){return e}f=a.plugin;g=a.formatNum(typeof g=="number"?g.toString():(a.isString(g)?a.getNum(g):"0"));if(!a.num(g)){return -3}if(f.getVersionDone!=1){f.getVersion(d,c);if(f.getVersionDone===null){f.getVersionDone=1}}a.cleanup();if(f.installed!==null){b=f.installed<=0.5?f.installed:(f.version===null?0:(a.compareNums(f.version,g,f)>=0?1:-1))}return b}},getVersionDelimiter:",",$$getVersion:function(a){return function(g,d,c){var e=a.init(g),f,b;if(e<0){return null}f=a.plugin;if(f.getVersionDone!=1){f.getVersion(d,c);if(f.getVersionDone===null){f.getVersionDone=1}}a.cleanup();b=(f.version||f.version0);return b?b.replace(a.splitNumRegx,a.getVersionDelimiter):b}},cleanup:function(){},addWinEvent:function(d,c){var e=this,a=window,b;if(e.isFunc(c)){if(a.addEventListener){a.addEventListener(d,c,false)}else{if(a.attachEvent){a.attachEvent("on"+d,c)}else{b=a["on"+d];a["on"+d]=e.winHandler(c,b)}}}},winHandler:function(d,c){return function(){d();if(typeof c=="function"){c()}}},WLfuncs:[0],runWLfuncs:function(a){a.winLoaded=true;a.callArray(a.WLfuncs);if(a.onDoneEmptyDiv){a.onDoneEmptyDiv()}},winLoaded:false,$$onWindowLoaded:function(a){return function(b){if(a.winLoaded){a.call(b)}else{a.fPush(b,a.WLfuncs)}}},$$beforeInstantiate:function(a){return function(e,d){var b=a.init(e),c=a.plugin;if(b==-3){return}if(!a.isArray(c.BIfuncs)){c.BIfuncs=[]}a.fPush(d,c.BIfuncs)}},$$onDetectionDone:function(a){return function(h,g,e,b){var c=a.init(h),j,d;if(c==-3){return -1}d=a.plugin;if(d.getVersionDone!=1){j=a.isMinVersion?a.isMinVersion(h,"0",e,b):a.getVersion(h,e,b)}if(d.installed!=-0.5&&d.installed!=0.5){a.call(g);return 1}if(d!==a.java){return 1};return 1}},div:null,divWidth:50,pluginSize:1,emptyDiv:function(){var c=this,a,d,b;if(c.div&&c.div.childNodes){for(a=c.div.childNodes.length-1;a>=0;a--){b=c.div.childNodes[a];if(b&&b.childNodes){for(d=b.childNodes.length-1;d>=0;d--){b.removeChild(b.childNodes[d])}c.div.removeChild(b)}}}},onDoneEmptyDiv:function(){var a=this;if(!a.winLoaded){return}if(a.WLfuncs&&a.WLfuncs.length>0&&a.isFunc(a.WLfuncs[a.WLfuncs.length-1])){return}if(a.java){if(a.java.OTF==3){return}if(a.java.funcs&&a.java.funcs.length>0&&a.isFunc(a.java.funcs[a.java.funcs.length-1])){return}}a.emptyDiv()},getObject:function(c,a){var g,d=this,f=null,b=d.getContainer(c);try{if(b&&b.firstChild){f=b.firstChild}if(a&&f){f.focus()}}catch(g){}return f},getContainer:function(a){return(a&&a[0]?a[0]:null)},instantiate:function(i,c,f,a,j){var l,m=document,h=this,q,p=m.createElement("span"),o,g,n="/";var k=function(s,r){var u=s.style,d,t;if(!u){return}u.outline="none";u.border="none";u.padding="0px";u.margin="0px";u.visibility="visible";if(h.isArray(r)){for(d=0;d<r.length;d=d+2){try{u[r[d]]=r[d+1]}catch(t){}}return}},b=function(){var s,t="pd33993399",r=null,d=(m.getElementsByTagName("body")[0]||m.body);if(!d){try{m.write('<div id="'+t+'">o<'+n+"div>");r=m.getElementById(t)}catch(s){}}d=(m.getElementsByTagName("body")[0]||m.body);if(d){if(d.firstChild&&h.isDefined(d.insertBefore)){d.insertBefore(h.div,d.firstChild)}else{d.appendChild(h.div)}if(r){d.removeChild(r)}}else{}};if(!h.isDefined(a)){a=""}if(h.isString(i)&&(/[^\s]/).test(i)){q="<"+i+' width="'+h.pluginSize+'" height="'+h.pluginSize+'" ';for(o=0;o<c.length;o=o+2){if(/[^\s]/.test(c[o+1])){q+=c[o]+'="'+c[o+1]+'" '}}q+=">";for(o=0;o<f.length;o=o+2){if(/[^\s]/.test(f[o+1])){q+='<param name="'+f[o]+'" value="'+f[o+1]+'" />'}}q+=a+"<"+n+i+">"}else{q=a}if(!h.div){h.div=m.createElement("div");g=m.getElementById("plugindetect");if(g){h.div=g}else{h.div.id="plugindetect";b()}k(h.div,["width",h.divWidth+"px","height",(h.pluginSize+3)+"px","fontSize",(h.pluginSize+3)+"px","lineHeight",(h.pluginSize+3)+"px","verticalAlign","baseline","display","block"]);if(!g){k(h.div,["position","absolute","right","0px","top","0px"])}}if(h.div&&h.div.parentNode){h.div.appendChild(p);k(p,["fontSize",(h.pluginSize+3)+"px","lineHeight",(h.pluginSize+3)+"px","verticalAlign","baseline","display","inline"]);if(j&&j.BIfuncs){h.callArray(j.BIfuncs)};try{if(p&&p.parentNode){p.focus()}}catch(l){}try{p.innerHTML=q}catch(l){}if(p.childNodes.length==1){k(p.childNodes[0],["display","inline"])}return[p]}return[null]},windowsmediaplayer:{mimeType:["application/x-mplayer2","application/asx"],progID:"wmplayer.ocx",classID:"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6",getVersion:function(){var a=null,e=this.$,b=null;this.installed=-1;if(!e.isIE){if(e.hasMimeType(this.mimeType)){if(e.findNavPlugin(["Windows","Media","(Plug-in|Plugin)"],false)||e.findNavPlugin(["Flip4Mac","Windows","Media"],false)){this.installed=0}var d=e.isGecko&&e.compareNums(e.GeckoRV,e.formatNum("1.8"))<0;if(!d&&e.findNavPlugin(["Windows","Media","Firefox Plugin"],false)){var c=e.instantiate("object",["type",this.mimeType[0]],[],"",this),f=e.getObject(c);if(f){a=f.versionInfo}}}}else{b=e.getAXO(this.progID);if(b){a=b.versionInfo}}if(a){this.installed=1}this.version=e.formatNum(a)}},silverlight:{mimeType:"application/x-silverlight",progID:"AgControl.AgControl",digits:[9,20,9,12,31],getVersion:function(){var e=this.$,j=document,i=null,c=null,h=false,b=[1,0,1,1,1],r=[1,0,1,1,1],k=function(d){return(d<10?"0":"")+d.toString()},n=function(s,d,u,v,t){return(s+"."+d+"."+u+k(v)+k(t)+".0")},o=function(d,s){return q((d==0?s:r[0]),(d==1?s:r[1]),(d==2?s:r[2]),(d==3?s:r[3]),(d==4?s:r[4]))},q=function(t,s,w,v,u){var u;try{return c.IsVersionSupported(n(t,s,w,v,u))}catch(u){}return false};if(!e.isIE){var a=[null,null],f=e.findNavPlugin("Silverlight Plug-in",false),g=e.isGecko&&e.compareNums(e.GeckoRV,e.formatNum("1.6"))<=0;if(f&&e.hasMimeType(this.mimeType)){i=e.formatNum(f.description);if(i){r=i.split(e.splitNumRegx);if(parseInt(r[2],10)>=30226&&parseInt(r[0],10)<2){r[0]="2"}i=r.join(",")}if(e.isGecko&&!g){h=true}if(!h&&!g&&i){a=e.instantiate("object",["type",this.mimeType],[],"",this);c=e.getObject(a);if(c){if(q(b[0],b[1],b[2],b[3],b[4])){h=true}if(!h){c.data="data:"+this.mimeType+",";if(q(b[0],b[1],b[2],b[3],b[4])){h=true}}}}}}else{c=e.getAXO(this.progID);var m,l,p;if(c&&q(b[0],b[1],b[2],b[3],b[4])){for(m=0;m<this.digits.length;m++){p=r[m];for(l=p+(m==0?0:1);l<=this.digits[m];l++){if(o(m,l)){h=true;r[m]=l}else{break}}if(!h){break}}if(h){i=n(r[0],r[1],r[2],r[3],r[4])}}}this.installed=h&&i?1:(i?-0.2:-1);this.version=e.formatNum(i)}},zz:0};PluginDetect.initScript();

function svcookie()
{
svplayer=getCookie('svplayer');
if (svplayer!=null && svplayer!="" )
  {
  
  }
else
  {
    SetCookie('svplayer','true');
    window.document.location.reload(true);
    }
}

function wmvcookie()
{
svplayer=getCookie('svplayer');
if (svplayer!=null && svplayer!="")
  {

  }
else
  {
    SetCookie('svplayer','false');
    window.document.location.reload(true);
    }
}