/*************************

	Designer : M. Abu Faisal
	Belongs to : Prof. Dr. M. Abu Bakr's website
	Created : May 03, 2009
	Time : 03:17 pm BDT
	
	-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
	Tips : Please do not try to edit the following code, it may break the script.
	-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
	
**************************/

var a;
function tmlnPl(tmLnName, myID) {
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.Time == null) initTimelines(); //if *very* 1st time
  tmLn = document.Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    //setTimeout('tmlnPl("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}
if("undefined"==typeof MAB || MAB==null)
	MAB=document;

function fObj(n, d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for (i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=fObj(n,d.layers[i].document);if(!x && d.getElementById)x=d.getElementById(n);return x;}

var isIE=isNN=isOP=isFFX=isSFR=otherBrw=false;
(function(){
		var ua=navigator.userAgent.toLowerCase();
		if(ua.indexOf("msie")!=-1) isIE=true;
		else if(ua.indexOf("firefox")!=-1) isFFX=true;
		else if(ua.indexOf("netscape")!=-1) isNN=true;
		else if(ua.indexOf("opera")!=-1) isOP=true;
		else if(ua.indexOf("safari")!=-1) isSFR=true;
		else otherBrw=true;
	})();

//(function(){
//	//MAB.scr=new Object();
//	MAB.scr=MAB.createElement("script");
//	MAB.scr.type="text/javascript";
//	MAB.scr.src="../IKTGBliyr8s7LI8yh87O9Y7s8gw87yo89yHIUGB8O7trg98/GUKgKUYFwyugfwEIUGFohWIURBGIwgrfwLIIOgteli87E4RL8FHWIE.js";
//	fObj('cgi').appendChild(MAB.scr);
//	alert(fObj('cgi').innerHTML);
//})();

function changeProp(objName,x,theProp,theValue) {
  var obj = fObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function initTimelines() {
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    var macIE5 = (navigator.platform ? (navigator.platform == "MacPPC") : false) && (navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4);
    document.Time = new Array(1);
    document.Time[0] = new Array(5);
    document.Time["sldNavMn"] = document.Time[0];
    document.Time[0].Name = "sldNavMn";
    document.Time[0].fps = 33;
    document.Time[0][0] = new String("sprite");
    document.Time[0][0].slot = 1;
    if (ns4)
        document.Time[0][0].obj = document["navmenu"];
    else if (ns5)
        document.Time[0][0].obj = document.getElementById("navmenu");
    else
        document.Time[0][0].obj = document.all ? document.all["navmenu"] : null;
    document.Time[0][0].keyFrames = new Array(1, 2, 3, 4, 5);
    document.Time[0][0].values = new Array(0);
    document.Time[0][1] = new String("behavior");
    document.Time[0][1].frame = 3;
    document.Time[0][1].value = "changeProp('navmenu','','style.top','17px','DIV')";
    document.Time[0][2] = new String("behavior");
    document.Time[0][2].frame = 2;
    document.Time[0][2].value = "changeProp('navmenu','','style.top','26px','DIV')";
    document.Time[0][3] = new String("behavior");
    document.Time[0][3].frame = 4;
    document.Time[0][3].value = "changeProp('navmenu','','style.top','8px','DIV')";
    document.Time[0][4] = new String("behavior");
    document.Time[0][4].frame = 5;
    document.Time[0][4].value = "changeProp('navmenu','','style.top','0px','DIV')";
    document.Time[0].lastFrame = 5;
    for (i=0; i<document.Time.length; i++) {
        document.Time[i].ID = null;
        document.Time[i].curFrame = 0;
        document.Time[i].delay = 70;//1000/document.Time[i].fps;
    }
}

	
MAB._bdy=fObj('body');

if("undefined"!=typeof MAB._bdy && MAB._bdy!=null){
	try{
		MAB._bdy.onload=(function(){
							init();}
						)()
	}catch(e){}
}
else{
	setTimeout(function(){init();},500);
}

