var _uli, _pnlo, _mpnlo, _pl=true, _mod, _cbp = false, ig_C = false, ig_D = false;
var _table = null, _tabs = null;
var ig_ = {};
var ig_ra = {domload : 1, xsetpdone : 1, moduledragstart : 1, moduledragend : 1, moduletitleclick : 1, moduleedit : 1, modulecanceledit : 1, moduledelete : 1, moduleundelete : 1, modulezip : 1, moduleunzip : 1, load : 1, unload : 1, resize : 1};
var ig_sa = {dragstart : 1, dragend : 1, titleclick : 1, edit : 1, canceledit : 1, "delete" : 1, undelete : 1, zip : 1, unzip : 1};
var ig_a = {Ma : 0, b : {}, D : {}, Sa : ig_ra, Ta : ig_sa};

_old_html = false;

ig_.Aa = function(){
   if(ig_.z){
      var a = ig_.z.getElementsByTagName("LI");
      if(_old_html){
         a = ig_.z.tBodies[0].rows[0].cells
      }
      for(var b = 0; b < a.length; b ++ ){
         var c = a[b];
         if(c.className.indexOf("unselectedtab") < 0)continue;
         if(c.style.display == "none")continue;
         c.isDraggableTo = true;
         c.pagePosLeft = ig_.f(c, true);
         c.pagePosRight = c.pagePosLeft + c.offsetWidth;
         c.pagePosTop = ig_.f(c, false);
         c.pagePosBottom = c.pagePosTop + c.offsetHeight
      }
   }
};
ig_.Ra = function(){
   var a = "";
   for(var b = 0; b < ig_.q.length; b ++ ){
      var c = ig_.q[b];
      for(var d = 0; d < c.childNodes.length - 1; d ++ ){
         var e = c.childNodes[d];
         if(e.tagName == "DIV"){
            a += a != "" ? ":" : "";
            a += e.id.substring(2) + "_" + c.id.substring(2)
         }
      }
   }
};
ig_.ca = navigator.userAgent;
ig_.U = ig_.ca.indexOf("Gecko") != - 1;
ig_.V = ig_.ca.indexOf("Opera") != - 1;
ig_.f = function(a, b){
   var c = 0, d = 0;
   if(a && a.offsetParent && a.offsetParent.id){
      if(b){
         a = a.offsetParent
      }
      else{
         var e = a.offsetParent.getElementsByTagName(a.tagName);
         if(e && e[0]){
            d = e[0].offsetTop
         }
      }
   }
   while(a){
      c += a["offset" + (b ? "Left" : "Top")];
      a = a.offsetParent
   }
   return c - d
};
ig_.fa = "IG_moduleDivMaskId";
ig_.ha = "IG_pageDivMaskId";
ig_.i = function(a, b){
   return function(){
      return a[b].apply(a, arguments)
   }
};
ig_.ia = function(a){
   ig_.$();
   var b = document.createElement("DIV");
   b.id = ig_.ha;
   b.innerHTML = "&nbsp;";
   b.style.position = "absolute";
   b.style.width = "100%";
   b.style.height = document.body.offsetHeight + "px";
   b.style.left = "0px";
   b.style.top = "0px";
   b.style.backgroundImage = "url(http://www.google.com/ig/images/cleardot.gif)";
   b.style.zIndex = "9999";
   document.body.appendChild(b);
   if(a.La){
      b = b.cloneNode(true);
      b.id = ig_.fa;
      b.style.height = a.a.offsetHeight - a.d.offsetHeight + "px";
      b.style.top = a.d.offsetHeight + "px";
      a.a.appendChild(b)
   }
};
ig_.o = null;
ig_.oa = ig_.ca.indexOf("Safari") != - 1;
ig_.s = function(){								// Move box area
   if( ! ig_.o){
      ig_.o = document.createElement("DIV");
      ig_.o.className = "modbox";
      ig_.o.backgroundColor = "";
      ig_.o.style.border = "2px dashed #aaa";
      ig_.o.innerHTML = "&nbsp;"
   }
   return ig_.o
};
ig_.za = function(a){
   for(var b = 0; b < ig_.k.length; b ++ ){
      var c = ig_.k[b];
      c.a.pagePosLeft = ig_.f(c.a, true);
      c.a.pagePosTop = ig_.f(c.a, false)
   }
   var d = a.a.nextSibling;
   while(d){
      d.pagePosTop -= a.a.offsetHeight;
      d = d.nextSibling
   }
};
ig_.$ = function(){
   var a = [ig_.fa, ig_.ha];
   for(var b = 0; b < a.length; b ++ ){
      var c = _gel(a[b]);
      if(c){
         c.parentNode.removeChild(c);
         c = null
      }
   }
};

var _IG_initDrag = function(a, b){
   ig_.w = a;
   ig_.z = b;
   ig_.q = ig_7a(ig_.w, "div", "yui-u");
   if(_old_html){
      ig_.sa = ig_.w.tBodies[0].rows[0];
      ig_.q = ig_.sa.cells
   }
   ig_.k = [];
   var c = 0;
   for(var d = 0; d < ig_.q.length; d ++ ){
      var e = ig_.q[d];
      for(var f = 0; f < e.childNodes.length; f ++ ){
         var g = e.childNodes[f];
         if(g.tagName == "DIV"){
            ig_.k[c] = g.className != "dm" ? new ig_L(g) : new ig_T(g);
            c ++
         }
      }
   }
};
var ig_c = {obj : null, init : function(a, b){
      a.onmousedown = ig_c.start;
      a.obj = b;
      if(isNaN(parseInt(b.style.left, 10)))b.style.left = "0px";
      if(isNaN(parseInt(b.style.top, 10)))b.style.top = "0px";
      b.onDragStart = new Function;
      b.onDragEnd = new Function;
      b.onDrag = new Function
   }, uninit : function(a, b){
      window.clearInterval(b.ta);
      a.onmousedown = null;
      a.obj = null;
      b.onDragStart = null;
      b.onDragEnd = null;
      b.onDrag = null
   }, start : function(a){
      var b = ig_c.obj = this.obj;
      a = ig_c.fixE(a);
      if(a.which != 1){
         return true
      }
      b.onDragStart(a);
      b.lastMouseX = a.clientX;
      b.lastMouseY = a.clientY;
      if(ig_.oa){
         b.lastMouseY -= document.body.scrollTop
      }
      b.ta = window.setInterval(ig_0a(b, ig_8a()), 10);
      document.onmouseup = ig_c.end;
      document.onmousemove = ig_c.drag;
      return false
   }, drag : function(a){
      a = ig_c.fixE(a);
      if(a.which == 0){
         return ig_c.end()
      }
      var b = ig_c.obj, c = a.clientY;
      if(ig_.oa){
         c -= document.body.scrollTop
      }
      var d = a.clientX;
      if(b.lastMouseX == d && b.lastMouseY == c){
         return false
      }
      var e = parseInt(b.style.top, 10), f = parseInt(b.style.left, 10), g, h;
      g = f + d - b.lastMouseX;
      h = e + c - b.lastMouseY;
      b.style.left = g + "px";
      b.style.top = h + "px";
      b.lastMouseX = d;
      b.lastMouseY = c;
      b.onDrag(g, h);
      return false
   }, end : function(a){
      a = ig_c.fixE(a);
      document.onmousemove = null;
      document.onmouseup = null;
      window.clearInterval(ig_c.obj.ta);
      var b = ig_c.obj.onDragEnd();
      ig_c.obj = null;
      return b
   }, fixE : function(a){
      if(typeof a == "undefined")a = window.event;
      if(typeof a.layerX == "undefined")a.layerX = a.offsetX;
      if(typeof a.layerY == "undefined")a.layerY = a.offsetY;
      if(typeof a.which == "undefined")a.which = a.button;
      return a
   }
};
function _del(a){
   var f = _gel("m_" + a);
   if(f) f.style.display = "none";
   return false;
}
function _gel(a){
   return document.getElementById ? document.getElementById(a) : null;
}
function decheading()
{
	var x=document.getElementsByTagName('h1');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "x-large"; 
  	}
	var x=document.getElementsByTagName('h2');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "large"; 
  	}
	var x=document.getElementsByTagName('h3');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "medium"; 
  	}
	var x=document.getElementsByTagName('h4');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "small"; 
  	}
}
function incheading()
{
	var x=document.getElementsByTagName('h1');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "xx-large"; 
  	}
	var x=document.getElementsByTagName('h2');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "x-large"; 
  	}
	var x=document.getElementsByTagName('h3');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "large"; 
  	}
	var x=document.getElementsByTagName('h4');
	for (i=0;i<x.length;i++)
  	{
  		x[i].style.fontSize = "medium"; 
  	}
}
function resizeimage()
{
	aFields = document.getElementsByName('resizeimg');
	for (x = 0; x < aFields.length; x++)
	{ 
	aFields[x].height=aFields[x].height/10;
	aFields[x].width=aFields[x].width/10;
	}
	decheading();
}
function _rm(a, f){
   var b = _gel("c_" + a);
   var c = _gel("m_" + a + "_b");
   if(b){
      var d = b.style.width != "98%";
      b.style.width = d ? "98%" : "30%";
      var e = _gel("m_" + a + "_rest");
   	  var g = _gel("m_" + f + "_rest");
   	  var h = _gel("c_2");
	  aFields = document.getElementsByName('resizeimg');
	  h.style.width = "30%";
      if(e){
         if(d){
            e.className = e.className.replace(/mxmbox/,"restbox");
            g.className = g.className.replace(/mxmbox/,"restbox");
			h.style.marginLeft = "0%";
			for (x = 0; x < aFields.length; x++)
			{ 
				aFields[x].height=aFields[x].height*10;
				aFields[x].width=aFields[x].width*10;
			}			
			incheading();
         } else {
            e.className = e.className.replace(/restbox/, "mxmbox");
            g.className = g.className.replace(/restbox/, "mxmbox");
			h.style.marginLeft = "1%";
			for (x = 0; x < aFields.length; x++)
			{ 
				aFields[x].height=aFields[x].height/10;
				aFields[x].width=aFields[x].width/10;
			}
			decheading();
         }
      }
   }
   return true;
}
function _upc(){
   var a = [];
   if( ! _cbp){
      a[a.length] = ["medit", "display", _uli ? "" : "none"]
   }
   a[a.length] = ["panelo", "display", _pnlo ? "" : "none"];
   a[a.length] = ["panelc", "display", _pnlo ? "none" : ""];
   if(_mod){
      a[a.length] = ["unmod", "display", "none"];
      a[a.length] = ["mod", "display", ""]
   } else {
      a[a.length] = ["mod", "display", "none"];
      a[a.length] = ["unmod", "display", ""]
   }
   if(_pl){
      if(_cbp || _uli){
         if( ! ig_C && ! _mpnlo){
            _IG_initDrag(_table, _tabs);
            ig_C = true
         } else if( ! ig_D && _mpnlo) {
            //_IG_initMobileDrag(_table);
            ig_D = true
         }
      }
   }
}
function _zm(a){
   var c = _gel("m_" + a + "_b");
   if(c){
      var d = c.style.display != "none";
      c.style.display = d ? "none" : "block";
      var e = _gel("m_" + a + "_zippy");
      if(e){
         if(d){
            e.className = e.className.replace(/minbox/, "maxbox");
         } else {
            e.className = e.className.replace(/maxbox/,"minbox");
         }
      }
   }
   return false;
}
function ig_0a(a, b){
   return function(){
      var c = ig_6a(), d = ig_B(), e = d[1], f = 4, g = 0.05 * c, h = e, i = a.offsetTop;
      if(a.lastMouseY <= g){
         i = a.offsetTop - f;
         h = e - f
      } else if(a.lastMouseY >= c - g){
         i = Math.min(b - a.offsetHeight, a.offsetTop + f);
         h = Math.min(b - c, e + f)
      }
      var j = h - e;
      if(j != 0){
         window.scrollBy(0, j);
         a.style.top = i + "px"
      }
   }
}
function ig_6a(){
   var a;
   if(window.innerHeight){
      a = window.innerHeight
   }
   else if(document.documentElement && document.documentElement.clientHeight){
      a = document.documentElement.clientHeight
   } else{
      a = document.body.offsetHeight
   }
   if(a < document.body.clientHeight){
      return a
   }
   return document.body.clientHeight
}
function ig_7a(a, b, c){
   var d = b == "*" && a.all ? a.all : a.getElementsByTagName(b), e = [];
   c = c.replace(/\-/g, "\\-");
   var f = new RegExp("(^|\\s)" + c + "(\\s|$)"), g;
   for(var h = 0; h < d.length; h ++ ){
      g = d[h];
      if(f.test(g.className)){
         e.push(g)
      }
   }
   return e
}
function ig_8a(){
   if(document.body.scrollHeight > document.documentElement.clientHeight){
      return document.body.scrollHeight
   } else{
      return document.documentElement.clientHeight
   }
};
function ig_B(){
   var a = 0, b = 0;
   if(typeof window.pageYOffset == "number"){
      a = window.pageXOffset;
      b = window.pageYOffset
   }
   else if(document.body && (document.body.scrollLeft || document.body.scrollTop)){
      a = document.body.scrollLeft;
      b = document.body.scrollTop
   }
   else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)){
      a = document.documentElement.scrollLeft;
      b = document.documentElement.scrollTop
   }
   return[a, b]
}
// Disable drag block
function ig_L(a){
/*
   this._dragStart = ig_O;
   this._drag = ig_M;
   this._dragEnd = ig_N;
   this.Q = ig_s;
   this.h = false;
   this.a = a;
   this.d = _gel(a.id + "_h");
   this.c = _gel(a.id + "_url");
   this.La = this.a.getElementsByTagName("IFRAME").length > 0;
   this.a.DND_Module = this;
   if(this.d){
      this.d.style.cursor = "move";
      ig_c.init(this.d, this.a);
      this.a.onDragStart = ig_.i(this, "_dragStart");
      this.a.onDrag = ig_.i(this, "_drag");
      this.a.onDragEnd = ig_.i(this, "_dragEnd");
      if(this.c){
         this.c.style.cursor = "pointer";
         if(ig_.U){
            this.c.onmousedown = ig_.i(this, "_urlMouseDown");
            this.c.onclick = ig_.i(this, "_urlClick")
         } else{
            this.c.onmouseup = ig_.i(this, "_urlMouseUp")
         }
      }
   }
*/
}
function ig_M(a, b){
   if( ! this.h){
      this.a.style.filter = "alpha(opacity=50)";
      this.a.style.opacity = 0.5;
      this.h = true;
   }
   var c = null, d = 100000000;
   for(var e = 0; e < ig_.k.length; e ++ ){
      var f = ig_.k[e], g = a;
      if(document.body.dir == "rtl" && f.a.offsetWidth == 1){
         g += this.a.offsetWidth
      }
      var h = Math.sqrt(Math.pow(g - f.a.pagePosLeft, 2) + Math.pow(b - f.a.pagePosTop, 2));
      if(f == this)continue;
      if(isNaN(h))continue;
      if(h < d){
         d = h;
         c = f
      }
   }
   this.m = null;
   if(ig_.z){
      var i = ig_.z.getElementsByTagName("LI");
      if(_old_html){
         i = ig_.z.tBodies[0].rows[0].cells
      }
      for(var e = 0; e < i.length; e ++ ){
         var f = i[e];
         if( ! f.isDraggableTo)continue;
         var j = ig_B();
         if(this.a.lastMouseX >= f.pagePosLeft && this.a.lastMouseX <= f.pagePosRight && this.a.lastMouseY + j[1] >= f.pagePosTop && this.a.lastMouseY + j[1] <= f.pagePosBottom){
            this.m = f;
            var k = ig_.s();
            if(k.parentNode != null){
               k.parentNode.removeChild(k)
            }
            break
         }
      }
      for(var e = 0; e < i.length; e ++ ){
         var f = i[e];
         if(f.id.indexOf("view") >= 0){
            if(f == this.m){
               if(f.className.indexOf(" tab_hover") < 0){
                  f.className += " tab_hover"
               }
            } else{
               f.className = f.className.replace(/ tab_hover/g, "")
            }
         }
      }
   }
   var k = ig_.s();
   if(this.m == null && c != null && k.nextSibling != c.a){
      c.a.parentNode.insertBefore(k, c.a); if(ig_.V){
         document.body.style.display = "none";
         document.body.style.display = ""
      }
   }
}
function ig_N(){
   ig_.$();
   if(this.Q()){
      ig_.Ra()
   }
   if(this.m){
      var a = this.m.id.match(/tab(\d+)_/)[1],
      b = this.a.id.match(/m_(\d+)/)[1];
      this.a.style.display = "none";
      this.m.className = this.m.className.replace(/ tab_hover/g, "")
   }
   return true
}
function ig_O(a){
   ig_.za(this);
   ig_.Aa();
   this.origNextSibling = this.a.nextSibling;
   var b = ig_.s(), c = this.a.offsetHeight;
   c -= parseInt(b.style.borderTopWidth, 10) * 2;
   var d = this.a.offsetWidth,
   e = ig_.f(this.a, true), f = ig_.f(this.a, false);
   this.a.style.width = d + "px";
   b.style.height = c + "px";
   this.a.parentNode.insertBefore(b, this.a.nextSibling); this.a.style.position = "absolute";
   this.a.style.zIndex = 10000;
   this.a.style.left = e + "px";
   this.a.style.top = f + "px";
   ig_.ia(this);
   this.h = false;
   return false
}
function ig_T(a){
   this.C = ig_U;
   this.a = a;
   this.a.innerHTML = "<br />"
}
function ig_U(){
   this.a = null
}
function ig_s(){
   var a = false;
   this.a.style.position = "";
   this.a.style.width = "";
   this.a.style.zIndex = "";
   this.a.style.filter = "";
   this.a.style.opacity = "";
   window.scrollBy(0, 0);
   var b = ig_.s();
   if(b.parentNode != null){
      if(b.nextSibling != this.origNextSibling){
         b.parentNode.insertBefore(this.a, b.nextSibling); a = true
      }
      b.parentNode.removeChild(b)
   }
   if(ig_.V){
      document.body.style.display = "none";
      document.body.style.display = ""
   }
   return a
}
_cbp = true;