// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/***********************************************
* Random Content (from DIVs) script- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/

if (document.getElementById)
document.documentElement.className = 'jsclass'; //hide content for DOM capable browsers


var randomcontentdisplay={
	divholders:new Object(),
	masterclass: "randomcontent",

	init:function(){
		if (!document.getElementById)
			return
		var alldivs=document.getElementsByTagName("div")
		var randomcontentsearch=new RegExp(this.masterclass+"\\s+(group\\d+)", "i") //check for CSS class="randomcontent groupX" (x=integer)
		for (var i=0; i<alldivs.length; i++){
			if (randomcontentsearch.test(alldivs[i].className)){
				if (typeof this.divholders[RegExp.$1]=="undefined") //if array to hold this group of divs doesn't exist yet
					this.divholders[RegExp.$1]=new Array() //create array first
					this.divholders[RegExp.$1].push(alldivs[i]) //add this div to the array
			}
		}
	this.showone()
	},

	showone:function(){
		for (group in this.divholders){ //loop thru each array within object
			var chosenOne=Math.floor(Math.random()*this.divholders[group].length) //randomly pick one entry from array
			this.divholders[group][chosenOne].style.display="block" //display content corresponding to the chosen entry
		}
	}
}

function quicklinks(){
document.write('<div id=\"quicklinks\" style=\"height:100px;\">');
       document.write('<h3>Quick Links</h3>');
       document.write('<ul>');
       document.write('<li><a href=\"/web/europe/cisco-networkers/2008/index.html\" title=\"Cisco Networkers 2008\">Homepage</a></li>');
	   //document.write('<li><a href=\"http://www.ciscoevents.com/cisco_nw_barcelona2008/schedule_builder\" title=\"Schedule Builder\" target="_blank">Schedule Builder</a></li>');
	   document.write('');	
	   
	   document.write('<li><a href=\"http://www.ciscoevents.com/cisco_nw_barcelona2008/schedule_builder\" target=\"_blank\">Schedule Builder</a></li>');
	   
	   document.write('<li><a href=\"http://networkers.intronetworks.com/" target=\"_blank\">Cisco Networkers<br>&nbsp; &nbsp; &nbsp; Connect</a></li>');
	   
	   document.write('<li><a href=\"http://cisconetworkers.wordpress.com/" target=\"_blank\">Cisco Networkers Blog</a></li>');	
	   
	   
          document.write("<li><a href=\"#\" title=\"Opt-In\" onClick=\"MM_openBrWindow('/web/europe/cisco-networkers/2008/includes/subscribe.html','subscribe','status=yes,width=690,height=440')\">Opt-In</a></li>");
          //document.write(''<li><a href=\"/web/europe/cisco-networkers/2008/attendees/waag/index.html\" title=\"Agenda\">Agenda</a></li>');
          //document.write('<li><a href=\"/web/europe/cisco-networkers/2008/attendees/faq/barcelona_spain.html\" title=\"Welcome to Barcelona\">Welcome to Barcelona</a></li>');
          //document.write("<li><a href=\"#\" title=\"Watch the 2007 highlights video\" onClick=\"MM_openBrWindow('/web/europe/cisco-networkers/2008/includes/highlights.html','highlights','status=yes,width=690,height=545')\">2007 Highlights Video</a></li>");
          //document.write('<li><a href=\"/web/europe/cisco-networkers/2008/attendees/faq/index.html\" title=\"hotel info\">Hotel Information</a></li>');
        document.write('</ul>');
      document.write('</div>');
      <!-- SideBanner Begin -->
      document.write('<div id=\"sidebanner\">');

        document.write('<style type=\"text/css\">');
			document.write('.jsclass body .randomcontent{ display: none; }'); /*Do NOT remove! CSS to hide random contents in JS enabled browsers*/
		document.write('</style>');


        <!-- SideHelp Begin -->
        document.write('<div id=\"sidehelp\" style=\"margin-top:15px; margin-bottom:15px;\">');
          document.write('<h3 style=\"FONT-WEIGHT: bold; FONT-SIZE: 10px; margin-top:0px; margin-bottom:0px;\">Need Help?</h3>');
          document.write('<ul class=\"nobullets\">');
            document.write('<li style=\"margin-bottom:5px; line-height:11px\"><a href=\"mailto:cisconetworkers2008barcelona@ciscoevents.com?subject=Cisco Networkers 2008 - Registration/General Enquiries\">Registration/General Enquires</a></li>');
          document.write('</ul>');
          document.write('<div style=\"font-size:9px;\" align=\"center\">Tel: +44(0)2088792421<br />');
            document.write('Fax: +44(0)2088792400</div>');
       document.write('</div>');
        <!-- SideHelp End-->
        document.write('<div style=\"display: block;\" class=\"randomcontent group1\"><a href=\"/web/europe/cisco-networkers/2008/post_event/index.html\" target=\"_blank\" style=\"border:0\"><img src=\"/web/europe/cisco-networkers/2008/images/08-CNW-Banner2-v2.jpg\" width=\"160\" height=\"112\" border=\"0\" /></a></div>');
        document.write('<script type=\"text/javascript\">');
document.write('randomcontentdisplay.init()');
  document.write('</script>');
      document.write('</div>');
}