// JavaScript Document







function showhide3(a){
	var picList = new Array;
	picList[0] = 'a1'
	picList[1] = 'b1'
	picList[2] = 'c1'
	picList[3] = 'd1'
	picList[4] = 'e1'
	picList[5] = 'f1'
	picList[6] = 'g1'
	picList[7] = 'h1'
	picList[8] = 'i1'
	picList[9] = 'j1'
           
	picList[10] = 'k1'
	picList[11] = 'l1'
	picList[12] = 'm1'
	picList[13] = 'n1'
	picList[14] = 'o1'
	picList[15] = 'p1'


	var titleList = new Array;
	titleList[0] = 'Dr. V.L Chopra,Member, Planning Commission releasing a Technical Bulletin on -Maintenance Breeding in context to PPV & FR Act-'
	titleList[1] = 'Dr. V.L Chopra,Member,Planning Commission exchanging the copy of Technical Bulletin on  -Maintenance Breeding in context to PPV & FR Act-'
	titleList[2] = 'Dr. V.L Chopra,Member,Planning Commission a manual -Protection of Plant Varieties-'
	titleList[3] = 'Dr. R.S Paroda,Ex-DG,ICAR addressing the scientific community during seminar on Maintenance of Pure Strock of Genotype and Reference Varieties organized by PPV & FR Authority on 12th Feb,09 at NASC Complex, New Delhi-12'
	titleList[4] = 'Dr. S.Nagarajan(Cenre) with dignified guests at A.P Shinde Auditorium,NASC Complex,New Delhi'
	titleList[5] = "Hon'ble Union Minister of Agriculture in the function for -2nd Plant Genome Savior Community Recognition & Plant Variety Registration- on 12the Feb,09 at A.P Shinde Auditorium,NASC Complex, New Delhi-12"
	titleList[6] = "Hon'ble Union Minister of Agriculture in the function for -2nd Plant Genome Savior Community Recognition & Plant Variety Registration- of the meeting"
	titleList[7] = "Hon'ble Union Minister of Agriculture lighting the lamp at the function"
	titleList[8] = "Hon'ble Agriculture Minister awarding 2nd Plant Genome Savior Community award to Farmers from Kerala(photo 1)"
	titleList[9] = "Hon'ble Agriculture Minister awarding 2nd Plant Genome Savior Community award to Farmers from Kerala(photo 2)"
titleList[10] = "Hon'ble Agriculture Minister awarding 2nd Plant Genome Savior Community award to Farmers from Kerala(photo 3)"
titleList[11] = "Hon'ble Agriculture Minister awarding 2nd Plant Genome Savior Community award to Farmers from Jharkhand"
titleList[12] = "Dr. Mangala Rai,Secretary DARE & DG,ICAR releasing book on Akashwani Pathshala on -Protection of Plant Varieties & Farmers Rights' Act-"
titleList[13] = 'Shri T. NandaKumaran,Secretary,Agriculture & Coperation releasing -National Register of Plant Varieties-'
	
titleList[14] = "Hon'ble Union Minister of Agricultuer handling over the certificate of Registration of Plant Varieties to the concerned Breeder"
	
titleList[15] = 'A look on Function for 2nd Plant Genome Savior Community Recognition & Plant Variety Registration'
	
	
	
	
	




document.getElementById("simg").src=picList[a]+".jpg";
	document.getElementById("stitle").value=titleList[a];
}






function showhide(a){
	var picList = new Array;
	picList[0] = 'delegates-of-the-meeting'
	picList[1] = 'chairperson-addressing-delegates'
	picList[2] = 'registarar-mahyco'
	picList[3] = 'tarai-dev-corp'
	picList[4] = 'members-task-force'
	picList[5] = 'members-task-force2'
	picList[6] = 'seed-companies'
	picList[7] = 'seed-companies2'
	picList[8] = 'seed-companies3'
	picList[9] = 'seed-association'

	var titleList = new Array;
	titleList[0] = 'Delegates of the meeting'
	titleList[1] = 'Dr. S. Nagarajan, Chairperson, PPV & FRA addressing the delegates'
	titleList[2] = 'Mr. R.K.Trivedi, Registrar, PPV&FRA and representatives of MAHYCO'
	titleList[3] = 'Dr. R.K. Chowdhury, OSD, DSR and representatives of Tarai Development Corporation'
	titleList[4] = 'Members of the Task Force (1/2005), Dr. S.P.Sharma, Dr. Chakravarty and others'
	titleList[5] = 'Members of the Task Force (1/2005), Dr. Malathi Laxmi Kumar, Dr. Roshini Nayyar and 	representatives from National Seeds Corporation, Mr. KAtaria and Kapoor'
	titleList[6] = 'Representatives from Seed Companies from Hyderabad'
	titleList[7] = 'Representatives from Seed Companies from Hyderabad'
	titleList[8] = 'Representatives from Seed Companies'
	titleList[9] = 'Representatives from Seed Associations and Dr. O.P.Makhija, member of Task Force (1/2005)'
	
	document.getElementById("simg").src=picList[a]+".jpg";
	document.getElementById("stitle").value=titleList[a];
}

function showhide2(a){

	var picList = new Array;
	picList[0] = 'upov_1'
	picList[1] = 'upov_2'

	var titleList = new Array;
	titleList[0] = 'Dr. Rolf Jordens, Vice Secretary-General, UPOV and Mr. Makoto, Senior Counsellor, UPOV 	with Dr. S.Nagarajan during the visit to PPV&FR Authority on 9th November 2005'
	titleList[1] = 'Dr. Rolf Jordens, Vice Secretary-General, UPOV and Mr. Makoto, Senior Counsellor, UPOV 	with Dr. S.Nagarajan, Mr. R.K.Trivedi, Registrar of the PPV&FRA, and other members during the visit to PPV&FR Authority on 9th November 2005'

	document.getElementById("simg").src=picList[a]+".jpg";
	document.getElementById("stitle").value=titleList[a];
}

// ////////  test nxt slide show for foundation day photos     /////////

function showhide4(a){

	var picList = new Array;
	picList[0] = '1'
	picList[1] = '2'
	picList[2] = '3'
	picList[3] = '4'
	picList[4] = '5'
	picList[5] = '6'
	picList[6] = '7'

	var titleList = new Array;
	titleList[0] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	titleList[1] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	titleList[2] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	titleList[3] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	titleList[4] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	titleList[5] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	titleList[6] = 'Distribution of Certificates of Registration for Plant Varieties on 24.11.2011'
	
	

	document.getElementById("simg").src=picList[a]+".jpg";
	document.getElementById("stitle").value=titleList[a];
}

function showhide5(a){

	var picList = new Array;
	picList[0] = 't1'
	picList[1] = 't2'
	picList[2] = 't3'
	

	var titleList = new Array;
	titleList[0] = 'Distribution of Certificates of Participation in Orientation cum Training Programme on 			24.11.201	1'
	titleList[1] = 'Distribution of Certificates of Participation in Orientation cum Training Programme on 		                   24.11.2011'
	titleList[2] = 'Distribution of Certificates of Participation in Orientation cum Training Programme on 			                   24.11.2011'
	

	document.getElementById("simg").src=picList[a]+".jpg";
	document.getElementById("stitle").value=titleList[a];
}

function showhide6(a){

	var picList = new Array;
	picList[0] = '7FD01'
	picList[1] = '7FD02'
	picList[2] = '7FD03'
	picList[3] = '7FD04'
	picList[4] = '7FD05'
	picList[5] = '7FD06'
	picList[6] = '7FD07'
	picList[7] = '7FD08'
	picList[8] = '7FD09'
	picList[9] = '7FD10'
	picList[10] = '7FD11'
	picList[11] = '7FD12'
	picList[12] = '7FD13'
	picList[13] = '7FD14'
	picList[14] = '7FD15'
	picList[15] = '7FD16'
	picList[16] = '7FD17'
	picList[17] = '7FD18'
	picList[18] = '7FD19'
	picList[19] = '7FD20'
	picList[20] = '7FD21'
	picList[21] = '7FD22'
	picList[22] = '7FD23'
	picList[23] = '7FD24'
	picList[24] = '7FD25'
	picList[25] = '7FD26'
	picList[26] = '7FD27'
	picList[27] = '7FD28'
	picList[28] = '7FD29'
	picList[29] = '7FD30'
	picList[30] = '7FD31'
	picList[31] = '7FD32'
	picList[32] = '7FD33'
	picList[33] = '7FD34'
	picList[34] = '7FD35'
	picList[35] = '7FD36'
	picList[36] = '7FD37'
	picList[37] = '7FD38'
	picList[38] = '7FD39'
	picList[39] = '7FD40'
	picList[40] = '7FD41'
	picList[41] = '7FD42'
	picList[42] = '7FD43'
	picList[43] = '7FD44'
	picList[44] = '7FD45'
	picList[45] = '7FD46'

	var titleList = new Array;

	titleList[0] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[1] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[2] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[3] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[4] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[5] ='7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[6] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[7] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[8] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[9] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[10] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[11] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[12] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[13] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[14] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[15] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[16] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[17] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[18] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[19] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[20] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[21] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[22] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[23] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[24] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[25] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[26] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[27] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[28] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[29] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[30] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[31] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[32] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[33] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[34] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
titleList[35] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[36] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[37] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[38] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[39] ='7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[40] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[41] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[42] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[43] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 				Projects'
	titleList[44] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	titleList[45] = '7th Foundation Day Celebration and Review Meeting on DUS Test Centers and 			Projects'
	

	

	document.getElementById("simg").src=picList[a]+".jpg";
	document.getElementById("stitle").value=titleList[a];
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function lib_bwcheck()
{ 	//Browsercheck (needed)


	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;
	this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()


/**************************************************************************
Variables to set.
***************************************************************************/
sLeft = 0         //The left placement of the menu
sTop = 10       //The top placement of the menu
sMenuheight = 30  //The height of the menu
sArrowwidth = 15  //Width of the arrows
sScrollspeed = 20 //Scroll speed: 20(in milliseconds, change this one and the next variable to change the speed)
sScrollPx = 8     //Pixels to scroll per timeout.
sScrollExtra = 18 //Extra speed to scroll onmousedown (pixels)

/**************************************************************************
Scrolling functions
***************************************************************************/
var tim = 0
var noScroll = true
function mLeft(){
	if (!noScroll && oMenu.x<sArrowwidth){
		oMenu.moveBy(sScrollPx,0)
		tim = setTimeout("mLeft()",sScrollspeed)
	}
}
function mRight(){
	if (!noScroll && oMenu.x>-(oMenu.scrollWidth-(pageWidth))-sArrowwidth){
		oMenu.moveBy(-sScrollPx,0)
		tim = setTimeout("mRight()",sScrollspeed)
	}
}
function noMove(){
	clearTimeout(tim);
	noScroll = true;
	sScrollPx = sScrollPxOriginal;
}
/**************************************************************************
Object part
***************************************************************************/
function makeObj(obj,nest,menu){
	nest = (!nest) ? "":'document.'+nest+'.';
	this.elm = bw.ns4?eval(nest+"document.layers." +obj):bw.ie4?document.all[obj]:document.getElementById(obj);
   	this.css = bw.ns4?this.elm:this.elm.style;
	this.scrollWidth = bw.ns4?this.css.document.width:this.elm.offsetWidth;
	this.x = bw.ns4?this.css.left:this.elm.offsetLeft;
	this.y = bw.ns4?this.css.top:this.elm.offsetTop;
	this.moveBy = b_moveBy;
	this.moveIt = b_moveIt;
	this.clipTo = b_clipTo;
	return this;
}
var px = bw.ns4||window.opera?"":"px";
function b_moveIt(x,y){
	if (x!=null){this.x=x; this.css.left=this.x+px;}
	if (y!=null){this.y=y; this.css.top=this.y+px;}
}
function b_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x+px; this.css.top=this.y+px;}
function b_clipTo(t,r,b,l){
	if(bw.ns4){this.css.clip.top=t; this.css.clip.right=r; this.css.clip.bottom=b; this.css.clip.left=l;}
	else this.css.clip="rect("+t+"px "+r+"px "+b+"px "+l+"px)";
}
/**************************************************************************
Object part end
***************************************************************************/

/**************************************************************************
Init function. Set the placements of the objects here.
***************************************************************************/
var sScrollPxOriginal = sScrollPx;
function sideInit(){
	//Width of the menu, Currently set to the width of the document.
	//If you want the menu to be 500px wide for instance, just 
	//set the pageWidth=500 in stead.
	pageWidth = 600;
	
	//Making the objects...
	oBg = new makeObj('divBg')
	oMenu = new makeObj('divMenu','divBg',0)
	oArrowRight = new makeObj('divArrowRight','divBg')
	
	//Placing the menucontainer, the layer with links, and the right arrow.
	oBg.moveIt(sLeft,sTop) //Main div, holds all the other divs.
	oMenu.moveIt(sArrowwidth,null)
	oArrowRight.css.width = sArrowwidth;
	oArrowRight.moveIt(pageWidth-sArrowwidth,null)
	
	//Setting the width and the visible area of the links.
	if (!bw.ns4) oBg.css.overflow = "hidden";
	if (bw.ns6) oMenu.css.position = "relative";
	oBg.css.width = pageWidth+px;
	oBg.clipTo(0,pageWidth,sMenuheight,0)
	oBg.css.visibility = "visible";
}

//executing the init function on pageload if the browser is ok.
if (bw.bw) onload = sideInit;
