document.ID = document.getElementById;
document.getElementById = function (id) {
var elem = document.ID(id);
if (elem.attributes['id'] && elem.attributes['id'].value == id) 
return elem;
else 
for (var i = 1; i < document.all[id].length; i++) 
if (document.all[id][i].attributes['id'] && document.all[id][i].attributes['id'].value == id)
return document.all[id][i];}
yum = function(a){ 
O = document.getElementById(a);	
O.html = function(ht){
if (ht)
O.innerHTML = ht;
else
return O.innerHTML;
};
O.sO = function (b){
if (!document.all)
this.style.opacity = b;
else
this.style.filter = 'alpha(opacity=' + b * 100 + ')';
return b;
};
O.gO = function (){
if (!document.all)
try {
o = this.style.opacity;
}
catch(e){ o = 1} 
else
try {
o = this.style.filter(alpha(opacity))/100;
}
catch(e){ o = .5}
if (!o) o = .5; 
return o;
};
O.fT = function(v,p,s,C){
if (typeof g=='undefined') g = new Array();
this.C = C;
this.n = p *.01;
if (s == 0 ) s =.1;
this.z = s;
this.s = 0;
O.sO.call(this,s);
this.i = 0;
this.c=(s-v)/this.n;
fd = function(){
for (var B in g){
g[B].i++;
g[B].z = Math.round(1000*(g[B].z -  g[B].c))/1000;
O.sO.call(g[B],g[B].z);
if ( g[B].i >= g[B].n ) {
try {
g[B].C.call();
} catch(e) {}
g.splice(B,1);
if (g.length <= 0)
clearInterval(T1);
}
}
}
if (g.length <=0){
T1 = setInterval("fd()",100);
}
g.push(this);
};
O.flash = function (s, w, h, p) {
var o = '<object' + ((window.ActiveXObject) ? ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' : '');
o += ' width="' + w + '"';
o += ' height="' + h + '"';
o += '>';
pr = '<param';
pr += ' name="movie"';
pr += ' value="' + s + '"';
pr += '>';
pr += '';
var eP = '';
var ea = '';
for (var i in p) {
eP += '<param name="' + i + '" value="' + p[i] + '">';
ea += ' ' + i + '="' + p[i] + '"';
}
if (!document.all) {
var em = '<embed src="' + s + '" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '"';
var bE = ea + '></embed>';
}
var oE = '</object>';
O.html(o + pr + eP + em + bE + oE);
};
O.ajax = function(ph,prm,c,m){
og = '';
for (i in prm){
if (og != '') og +='&';
og +=i+'='+prm[i];
}
var aj;
try{
aj = new XMLHttpRequest();
} catch (e){
try{
aj = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
aj = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
return false;
}
}
}
aj.onreadystatechange = function(){
if(aj.readyState == 4 && aj.status >= 200){
}
}
if (og.length >= 2 || m) m ='POST'; else m = 'GET';
aj.open('GET', ph+'?'+og, true);
aj.setRequestHeader("Content-type","application/x-www-form-urlencoded");
aj.send(); 
};
return O
};
wb = function getBrowserWidth(){
  if (window.innerWidth){
        return window.innerWidth;}  
    else if (document.documentElement && document.documentElement.clientWidth != 0){
        return document.documentElement.clientWidth;    }
    else if (document.body){return document.body.clientWidth;} 
	else if (document.body.offsetWidth){
		return document.body.offsetWidth;}  
        return 0;
}

wd=wb();



