﻿//This function creates the randomizer code for the sidebar ads.function switchEm(){var maxPages = 5;var new_swap = Math.floor(Math.random()*maxPages);//create the image and link arraysvar img_swap = new Array();var link_swap = new Array();//so you don't have to type in the whole danged URL//CHANGE THIS WHEN THE SITE GOES LIVE!!!var base_ref = "http://www.youthforhumanrights.org/"//define the URL for every image.img_swap[0] = base_ref + "images/sidebar/sidebar_holocaust.jpg";img_swap[1] = base_ref + "images/sidebar/sidebar_member.jpg";img_swap[2] = base_ref + "images/sidebar/sidebar_newyhri.gif";img_swap[3] = base_ref + "images/sidebar/sidebar_psa.jpg";img_swap[4] = base_ref + "images/sidebar/sidebar_united.jpg";//define the URL for every link.link_swap[0] = base_ref + "introduction/udhr_history.html";link_swap[1] = base_ref + "getactive/become_member.html";link_swap[2] = base_ref + "about/index.html";link_swap[3] = base_ref + "watchads/index.html";link_swap[4] = "http://www.txlfilms.com/uniteddonation.asp";//the image with name/id "sidebar" will be swapped out.//the link for it (sidelink) will also be swapped out.	document.getElementById('sidebar').src = img_swap[new_swap];	document.getElementById('sidelink').href = link_swap[new_swap];	//link_swap[4] is external, so generate a "_blank" target for it.if(new_swap == 4){		document.getElementById('sidelink').target = "_blank";	}}//"Language" drop-down menu codefunction MM_jumpMenu(targ,selObj,restore){ //v3.0  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  if (restore) selObj.selectedIndex=0;}//the point of this code is to prevent a site-wide rewriting//of code when the dimensions or file name are editedfunction notifyMe(){//the target URL for the new window//CHANGE THIS WHEN THE SITE GOES LIVE!!!	var target_link = "http://www.youthforhumanrights.org/site/notifyme.php";//open the window	var w = window.open(target_link,'_blank','width=520,height=420');	}	function sendToFriend(){//the target URL for the new window//CHANGE THIS WHEN THE SITE GOES LIVE!!!	var target_link = "http://www.youthforhumanrights.org/site/sendtofriend.php";//open the window	var w = window.open(target_link,'_blank','width=520,height=420');	}