﻿function GetHeader()
    {
		document.write("<div style='background-color:#000000;'>");
		document.write("<a href='index.html' target='_blank'><img src='images/IPDC_header.jpg' alt='' height='250' vspace='0' border='0'></a>");
		//Get the Menu here

		var agent = navigator.userAgent.toLowerCase();		
		if ((agent.indexOf('iphone') != -1) || (agent.indexOf('ipad') != -1))
        //var is_iphone = (agent.indexOf('iphone')!=-1);
        //if (is_iphone) 
        {            
            document.write("<table width='100%' height='35px' border='0' cellpadding='0' cellpadding='0'>");
            document.write("<tr>");
            document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;");
            document.write("<select id='regselect' onchange='GotoUrl(this)' style='border: none;  background-color:Black; color: White; font-weight: bold; font-family: Arial'>");
            document.write("<option value='http://www.iphonedevcon.com/registration.html'>REGISTRATION</option>");
            document.write("<option value='http://www.iphonedevcon.com/registration.html'>Register Online</option>");
            document.write("<option value='http://www.iphonedevcon.com/registration.html'>Conference Prices</option>");
            document.write("<option value='http://www.iphonedevcon.com/hoteltravel.html'>Hotel & Travel</option>");
            document.write("<option value='http://www.iphonedevcon.com/getapproval.html'>Getting Approval</option>");
            document.write("<option value='http://www.iphonedevcon.com/faqs.html'>FAQs</option>");
            document.write("</select>");
            document.write("</td>");
            document.write("<td>");
            document.write("<select id='confselect' onchange='GotoUrl(this)'  style='border: none;  background-color:Black; color: White; font-weight: bold; font-family: Arial'>");
            document.write("<option value='http://www.iphonedevcon.com/chairmansletter.html'>CONFERENCE</option>");
            document.write("<option value='http://www.iphonedevcon.com/chairmansletter.html'>Chairmsn's Intro</option>");
            document.write("<option value='http://www.iphonedevcon.com/ataglance.html'>At-A-Glance</option>");
            document.write("<option value='http://www.iphonedevcon.com/workshops.html'>Workshops</option>");
            document.write("<option value='http://www.iphonedevcon.com/classes.html#2'>Technical Classes</option>");
            document.write("<option value='http://www.iphonedevcon.com/keynotes.html'>Keynotes</option>");
            document.write("<option value='http://www.iphonedevcon.com/speakers.html'>Speakers</option>");
            document.write("<option value='http://www.iphonedevcon.com/specialevents.html'>Special Events</option>");
			document.write("</select>");
            document.write("</td>");
            document.write("<td>");
            document.write("<select id='Speakersselect' onchange='GotoUrl(this)'  style='border: none;  background-color:Black; color: White; font-weight: bold; font-family: Arial'>");
            document.write("<option value='http://www.iphonedevcon.com/speakers.html'>SPEAKERS</option>");
            document.write("<option value='http://www.iphonedevcon.com/callforspeakers.html'>Call For Speakers</option>");
            document.write("<option value='http://www.iphonedevcon.com/speakers.html'>Speaker Bios</option>");
            document.write("<option value='http://www.iphonedevcon.com/banners.html'>Link to Us/Banners</option>");
            document.write("</select>");
            document.write("</td>");
            document.write("<td>");
            document.write("<select id='spexselect' onchange='GotoUrl(this)'  style='border: none;  background-color:Black; color: White; font-weight: bold; font-family: Arial'>");
            document.write("<option value='http://www.iphonedevcon.com/exhibitors.html'>SPONSORS & EXHIBITORS</option>");
            document.write("<option value='http://www.iphonedevcon.com/exhibithall.html'>Exhibit Hours</option>");
            document.write("<option value='http://www.iphonedevcon.com/exhibitors.html'>Sponsors & Exhibitors</option>");
            document.write("<option value='http://www.iphonedevcon.com/mediasponsors.html'>Media Sponsors</option>");
            document.write("<option value='http://www.iphonedevcon.com/exhibitorsinfo.html'>Info For Exhibitors</option>");
			document.write("<option value='http://www.iphonedevcon.com/becomeexhibitor.html'>Become An Exhibitor</option>");
			document.write("<option value='http://www.iphonedevcon.com/becomeexhibitor.html'>Become A Sponsor</option>");
        document.write("<option value='http://www.iphonedevcon.com/banners.html'>Link To Us/Banners</option>");
            document.write("</select>");
            document.write("</td>");
            document.write("<td>");
            document.write("<select id='aboutusselect' onchange='GotoUrl(this)'  style='border: none;  background-color:Black; color: White; font-weight: bold; font-family: Arial'>");
            document.write("<option value='http://www.iphonedevcon.com/aboutus.html'>ABOUT US</option>");
            document.write("<option value='http://www.iphonedevcon.com/aboutus.html'>About BZ Media</option>");
            document.write("<option value='http://www.facebook.com/pages/iPhoneiPad-DevCon/112497708771318?ref=ts'>FACEBOOK</option>");
            document.write("<option value='http://twitter.com/ipDevCon'>TWITTER</option>");
            document.write("</select>");
            document.write("</td>");
            document.write("</tr>");
            document.write("</table>");
        }
		else
		{
		    document.write("<ul class='MenuBarHorizontal' id='MenuBar1' onfocus='MM_openBrWindow('','','width=830,height=400')'>");
            document.write("<li><a href='registration.html' class='MenuBarItemSubmenu'>REGISTRATION</a>");
            document.write("<ul>");
            document.write("<li><a href='registration.html'>Register Online</a></li>");
            document.write("<li><a href='registration.html'>Conference Prices</a></li>");
            document.write("<li><a href='hoteltravel.html'>Hotel &amp; Travel</a></li>");
            document.write("<li><a href='getapproval.html'>Getting Approval</a></li>");
            document.write("<li><a href='faqs.html'>FAQs</a></li>");
            document.write("</ul>");
            document.write("</li>");
            document.write("<li><a href='chairmansletter.html' class='MenuBarItemSubmenu'>CONFERENCE</a>");
            document.write("<ul>");
            document.write("<li><a href='chairmansletter.html'>Chairman's Intro</a></li>");
            document.write("<li><a href='ataglance.html'>At-A-Glance</a></li>");
            document.write("<li><a href='workshops.html'>Workshops</a></li>");
            document.write("<li><a href='classes.html#2'>Technical Classes</a></li>");
            document.write("<li><a href='keynotes.html'>Keynotes</a></li>");
            document.write("<li><a href='speakers.html'>Speakers</a></li>");
            document.write("<li><a href='specialevents.html'>Special Events</a></li>");		
            document.write("</ul>");
            document.write("</li>");
            document.write("<li style='width:13em'><a href='speakers.html' class='MenuBarItemSubmenu'>SPEAKERS</a>");
            document.write("<ul>");
            document.write("<li><a href='callforspeakers.html'>Call for Speakers</a></li>");
            document.write("<li><a href='speakers.html'>Speaker Bios</a></li>");
            document.write("<li><a href='banners.html'>Link to Us/Banners</a></li>");
            document.write("</ul>");
            document.write("</li>");
            document.write("<li style='width:15.6em'><a href='exhibitors.html' class='MenuBarItemSubmenu'>SPONSORS&nbsp;&amp;&nbsp;EXHIBITORS</a>");
            document.write("<ul>");
            document.write("<li><a href='exhibithall.html'>Exhibit Hours</a></li>");
            document.write("<li><a href='exhibitors.html'>Sponsors &amp; Exhibitors</a></li>");
            document.write("<li><a href='mediasponsors.html'>Media Sponsors</a></li>");
                  document.write("<li><a href='exhibitorsinfo.html'>Info For Exhibitors</a></li>");
				  document.write("<li><a href='becomeexhibitor.html'>Become an Exhibitor</a></li>");
				  document.write("<li><a href='becomeexhibitor.html'>Become a Sponsor</a></li>");
            document.write("<li><a href='banners.html'>Link to Us/Banners</a></li>");
            document.write("</ul>");
            document.write("</li>");
            document.write("<li><a href='aboutus.html' class='MenuBarItemSubmenu'>ABOUT US </a>");
            document.write("<ul>");
            document.write("<li><a href='aboutus.html'>About BZ Media</a></li>");
            document.write("<li><a href='http://www.facebook.com/pages/iPhoneiPad-DevCon/112497708771318?ref=ts''target='_blank'>FACEBOOK</a></li>");
            document.write("<li><a href='http://twitter.com/ipDevCon'target='_blank'>TWITTER</a></li>");
            document.write("</ul>");
            document.write("</li>");
            document.write("</ul>");
        }
        document.write("</div>");

    }

    function GotoUrl(selectcontrol) {
        //selectcontrol.selectedIndex);
        //var current = document.getElementById('regselect').selectedIndex;
        var current = selectcontrol.selectedIndex;
        //alert(current);
        //alert(selectcontrol.options[current].value);
        window.location.href = selectcontrol.options[current].value;
    } 
    
    function redirect(url) {
                window.location.href = url;
    }
    