function mmLoadMenus() {
  if (window.mm_menu_0925122332_0) return;
  window.mm_menu_0925122332_0 = new Menu("root",85,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000066","#000000","#FBFBFF","#CDCDCD","left","middle",3,0,100,-5,7,true,true,true,1,true,true);
  mm_menu_0925122332_0.addMenuItem("New Item");
   mm_menu_0925122332_0.hideOnMouseOut=true;
   mm_menu_0925122332_0.bgColor='#000000';
   mm_menu_0925122332_0.menuBorder=0;
   mm_menu_0925122332_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0925122332_0.menuBorderBgColor='#CCCCCC';
   mm_menu_0925122332_0.writeMenus();
} // mmLoadMenus()

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function initImgRotation() {
  // create rotating image objects here 
  // arguments: image name, rotation speed
  var rotator1 = new rotateImgObj('img1',1000);
  // add the images to rotate into that image object  
  rotator1.addImages("Amrat_Cola1.gif","Cheapdrugspharmacy.gif","ems_1.gif","LogoPakistanArmy.gif","logoWithPaperatradertext.gif","Pak%20Souvenirs.gif","PakistanGov.gif","pseb_logo.jpg","saifgroup_logo.gif","Barmh.gif","PECHS.gif","TCP-communication.gif");
  rotator1.rotate();
  
  rotateImgObj.start();
}

// If all the images you wish to display are in the same location, you can specify the path here 
rotateImgObj.imagesPath = "";

// no need to edit code below 
/////////////////////////////////////////////////////////////////////
rotateImgObjs = []; // holds all rotating image objects defined
// constructor 
function rotateImgObj(nm,s) {
  this.speed=s; this.ctr=0; this.timer=0;  
  this.imgObj = document.images[nm]; // get reference to the image object
  this.index = rotateImgObjs.length; rotateImgObjs[this.index] = this;
  this.animString = "rotateImgObjs[" + this.index + "]";
}

rotateImgObj.prototype = {
  addImages: function() { // preloads images
    this.imgObj.imgs = [];
    for (var i=0; arguments[i]; i++) {
      this.imgObj.imgs[i] = new Image();
      this.imgObj.imgs[i].src = rotateImgObj.imagesPath + arguments[i];
    }
  },

  rotate: function() {
    if (this.ctr < this.imgObj.imgs.length-1) this.ctr++;
    else this.ctr = 0;
    this.imgObj.src = this.imgObj.imgs[this.ctr].src;
  }
}

// sets up rotation for all defined rotateImgObjs
rotateImgObj.start = function() {
  for (var i=0; i<rotateImgObjs.length; i++) 
    rotateImgObjs[i].timer = setInterval(rotateImgObjs[i].animString + ".rotate()", rotateImgObjs[i].speed);                     
}

function pickNums(nums, numArr)
{
	if(nums>numArr.length)
	{
		alert('You are trying to pick more elements from the array than it has!');
		return false;
	}
	var pickArr=new Array();
	var tempArr=numArr;
	for(var i=0; i<nums; i++)
	{
		pickArr[pickArr.length]=tempArr[Math.round((tempArr.length-1)*Math.random())];
		var temp=pickArr[pickArr.length-1];
		for(var j=0; j<tempArr.length; j++)
		{
			if(tempArr[j]==temp)
			{
				tempArr[j]=null;
				var tempArr2=new Array();
				for(var k=0; k<tempArr.length; k++)
					if(tempArr[k]!=null)
						tempArr2[tempArr2.length]=tempArr[k];
				tempArr=tempArr2;
				break;
			}
		}
	}
	return pickArr;
}		


function write_scroll()
{


		var myArr = new Array('OptiBiz releases OptiSuite for SAP ECC 5.0 an upgrade to its best selling product, OptiTrade.',
							'OptiSuite receives Powered by NetWeaver certification.',
							'OptiBiz launches OptiTest&trade; a packaged service to automate test scripts and make testing quick and repeatable.',
							'OptiBiz launches Reward&trade; an SAP add-on to facilitate easy and centralized management of multiple incentive schemes for.',
							'OptiBiz launches ProActivate&trade; a packaged service to facilitate easy and centralized management of all alerts configured in the.',
							'Clariant Chemicals India implementing OptiSuite for SAP.',
							'ITC - International Tobacco Division implementing OptiSuite add-ons for SAP.',
							'Essar Oil implements OptiSuite for SAP.',
							'Sterlite Opticals implements OptiSuite add-ons for SAP.',
							'Danaher Motion implements OptiTrade add-ons for Oracle Applications.',
							'Dimexon Diamonds implements OptiSuite for SAP.',
							'Dr. Reddys Labs upgrades IVL Expert Suite to OptiSuite for SAP.',
							'Honeywell Turbo Technologies implements OptiSuite for SAP.',
							'Essar Steel to implement OptiSuite.',
							'National Thermal Power Corporation implementing OptiSuite add-ons for SAP.',
							'Praj Industries implementing OptiSuite SAP add-ons.',
							'Aditya Birla group to implement OptiSuite SAP add-ons for its Carbon division.',
							'Philips Electronics to implement OptiSuite for its Consumer Appliances Division.',
							'Siyaram Silk Mills to implement OptiSuite add-ons for SAP.',
							'ProActivate&trade; implemented at Wockhardt Pharma.',
							'Thermax Limited implementing OptiTrade for Oracle Apps.',
							'Lumax Industries implements OptiSuite.',
							'BALCO implements OptiSuite.',
							'VISA steel signs up for OptiCare&trade; Managed Services for SAP.',
							'Madura Coats implementing OptiSuite.',
							'Indorama Synthetics upgrades IVL Expert Suite to OptiSuite for SAP.',
							'Balkrishna Tyres to implement OptiSuite for SAP.',
							'Aditya Birla group to implement OptiSuite for its VSF Division.');
		
		
		var outArr=pickNums(myArr.length, myArr); /* Store the output */
		for(var i=0; i<outArr.length; i++)
		{
					document.write(outArr[i] +'<br><br><br>');
		}

}


function win_opn_hr(code)
{
	if (code=="DC-405")
	{
	//window.open('http://www.ivlindia.com/hr/','hr_mailer','height=600,width=800,left=150,top=100,resizable=no');
	myWindow=window.open('http://www.ivlindia.com/hr/dc405.htm','hr_mailer','height=600,width=800,left=150,top=100,resizable=no');
	//alert(code);
	//myWindow.document.write("code");
	//myWindow.document.form1.jobcode.value='DC-405';
	}
	
	if (code=="ISM-2006")
	{
	//window.open('http://www.ivlindia.com/hr/','hr_mailer','height=600,width=800,left=150,top=100,resizable=no');
	myWindow=window.open('http://www.ivlindia.com/hr/ISM-2006.htm','hr_mailer','height=600,width=800,left=150,top=100,resizable=no');
	//alert(code);
	//myWindow.document.write("code");
	//myWindow.document.form1.jobcode.value='DC-405';
	}

	
	if (code=="TCB-605")
	{
	myWindow=window.open('http://www.ivlindia.com/hr/tcb605.htm','hr_mailer','height=600,width=800,left=150,top=100,resizable=no');
	}
	if (code=="SDE-805")
	{
	div_1 = document.getElementById('sde-805');
	div_2 = document.getElementById('spm-805');
	div_3 = document.getElementById('sfc-805');
	div_1.style.display = "block";
	div_2.style.display = "none";
	div_3.style.display = "none";
	}
	if (code=="SPM-805")
	{
	div_1 = document.getElementById('sde-805');
	div_2 = document.getElementById('spm-805');
	div_3 = document.getElementById('sfc-805');
	div_1.style.display = "none";
	div_2.style.display = "block";
	div_3.style.display = "none";
	}
	if (code=="SFC-805")
	{
	div_1 = document.getElementById('sde-805');
	div_2 = document.getElementById('spm-805');
	div_3 = document.getElementById('sfc-805');
	div_1.style.display = "none";
	div_2.style.display = "none";
	div_3.style.display = "block";
	}
		
	
	
}
