/*function setMusicCookie() {
 	document.cookie = "music=shown;path=/;";
}
function openMusicWinFlash() {
	window.open('/music.html','music','width=200,height=150,resizable=yes,menubar=yes');
}

function openMusicWin() {
 	var win = window.open('/music.html','music','width=200,height=150,resizable=yes,menubar=yes');
 	win.blur();
 	//return false;
}
 function getMusicCookie() {
 var dc = document.cookie;
    var prefix = "music=";
   // alert('prefix: ' + prefix);
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
	}
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
  }
function musicView() {
	 if (getMusicCookie() == null) {
	 openMusicWin();
	 setMusicCookie();
 	}
 }
 */
 function setNewsCookie() {
 	document.cookie = "news=shown;path=/;"
}
function openNewsWin() {
 	var newswin = window.open('/press/news.html','news','width=350,height=200,resizable=yes,menubar=yes');
 	newswin.focus();
 	//return false;
}
 function getNewsCookie() {
 var dc = document.cookie;
    var prefix = "news=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) 
        return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
  }

 function newsView() {
	 if (getNewsCookie() == null) {
	 openNewsWin();
	 setNewsCookie();
 	}
 }
 
  function RunPresentation()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="342" width="450">\n');
    document.write('<param name="movie" value="hot.swf">\n');
    document.write('<param name="quality" value="best">\n');
    document.write('<param name="play" value="true">\n');
    document.write('<embed height="342" pluginspage="http://www.macromedia.com/go/getflashplayer" src="hot.swf" type="application/x-shockwave-flash" width="450" quality="best" play="true">\n');
    document.write('</object>\n');
}

  function RunRendering()
{
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="119" HEIGHT="442" id="ANI" ALIGN="">\n');
    document.write('<PARAM NAME=movie VALUE="/side-rendering.swf">\n');
    document.write('<param name="quality" value="high">\n');
    document.write('<param name="play" value="true">\n');
    document.write('<EMBED src="/side-rendering.swf" quality=high WIDTH="119" HEIGHT="442" NAME="ANI" ALIGN="" swLiveConnect=true TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n');
    document.write('</object>\n');
}

  function RunMusicControl()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="25" width="105">\n');
    document.write('<param name="movie" value="/music-control.swf">\n');
    document.write('<param name="quality" value="best">\n');
    document.write('<param name="play" value="true">\n');
    document.write('<embed height="25" pluginspage="http://www.macromedia.com/go/getflashplayer" src="/music-control.swf" type="application/x-shockwave-flash" width="105" quality="best" play="true">\n');
    document.write('</object>\n');
}

  function RunHeader()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="70" width="750">\n');
    document.write('<param name="movie" value="/top-menu.swf">\n');
    document.write('<param name="quality" value="best">\n');
    document.write('<param name="play" value="true">\n');
    document.write('<embed height="70" pluginspage="http://www.macromedia.com/go/getflashplayer" src="/top-menu.swf" type="application/x-shockwave-flash" width="750" quality="best" play="true">\n');
    document.write('</object>\n');
}

function largerView(picSrc,winName,winWidth,winHeight) {
urlSrc = 'http://www.americannationalinvestments.com/larger-view.html?pic=' + picSrc;
windowOptions = 'scrollbars=yes,resizable=yes,width=' + winWidth + ',height=' + winHeight;
window.open(urlSrc,winName,windowOptions);
}