
      cookString = "&"      
      
      if(document.cookie != "") {
            theCook = document.cookie.split("; ")
    
            for (i = 0; i < theCook.length; i ++) {
                  cookString += theCook[i] + "&"
            }
      }
     

var q_string;

if (location.search == "") {

		
	var section= "intro";
		
} else {
	q_string = location.search;
	q_string = q_string.replace('?','');


	if (q_string == 'section=experience/index.html'){
		var section= "intro&AOL=1";
	} else	{
		var item= q_string.split('=');
		var section= item[1];
	}
}

function checkcookie()
{
if(document.cookie.length<1)
{
//alert('No cookie for this site.')
}
else
{
//alert('Your Cookie is:'+document.cookie);
}

}

function cookit() {
      exDate = new Date
	// expires in 9 months
      exDate.setMonth(exDate.getMonth()+9)
      for(i=0;i<cookit.arguments.length;i++) {
            ckThing = cookit.arguments[i] + '=' + cookit.arguments[i+1]
            i++
            document.cookie = ckThing + '; expires=' + exDate.toGMTString()
            }
      }

function writeSWF()
{

var swf= "main"
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0' width=720 height=540>");
document.write("<param name=movie value='" + swf + ".swf?movToLoad=" + section + cookString +"'>");
document.write("<param name=quality value=high>");
document.write("<param name='BGCOLOR' value='#000000'>");
document.write("<param name=menu value=false>");
document.write("<embed src='" + swf + ".swf?movToLoad=" + section +  cookString +"' menu='false' quality=high bgcolor=#000000  WIDTH=720 HEIGHT=540 TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>");
document.write("</embed>");
document.write("</object>");

}
