if (screen.width<=640)	{alert("This site is maximized for a screen setting of 600x800 pixels. Please adjust to this screen size for the best viewing results.");}
if (window!= top) {top.location.href=location.href;} // breakout of frames
var sw = screen.width; var sh = screen.height; // style sheets
//detection procedures
var detect = navigator.userAgent.toLowerCase(); 
var OS, browser, version, total, thestring; 
if (checkIt('opera')) browser = "opera"; 
else if (checkIt('msie')) browser = "msie"; 
else if (checkIt('firefox')) browser = "firefox"; 
else if (!checkIt('compatible')) { browser = "netscape"; version = detect.charAt(8); }
/* else if (checkIt('safari')) browser = "safari"; 
else if (checkIt('konqueror')) { browser = "konqueror"; OS = "linux"; }  
*/
else browser = "msie"; 

if (!version) version = detect.charAt(place + thestring.length); 
if (!OS) { 
	if (checkIt('linux')) {OS = "linux";}
	else if (checkIt('x11')) {OS = "unix";} 
	else if (checkIt('mac')) {OS = "mac";}
	else if (checkIt('win')) {OS = "windows";} 
	else {OS = "unknown operating system";} 
} 

function checkIt(string) { place = detect.indexOf(string) + 1; thestring = string; return place;}
var ns4class='';
var song1 = "music/just_make_it_worse.mp3"; var title1="You Just Make It Worse";
var song2 = "music/die_like_april.mp3"; var title2="Die Like April";
var song3 = "music/x.mp3"; var title3="x";


function bookmarkSite() {if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {var url="http://www.radio-birdman.com/index.html";var title="Birdman Bookmark";
window.external.AddFavorite(url,title); }}

function goHist(a) 	{history.go(a);}

function topOfPage(){ window.scrollTo(0,0);}
document.ondblclick=topOfPage // doubleclick goes to top of page

function infobox(url,w){ LeftPosition=(screen.width)?(screen.width-w)/1.1:100;TopPosition=(screen.height)?(screen.height-h)/1.8:100;
h = sh-100; w = sw/2;
settings='width='+w+',height='+h+',top=0,left=0,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(url,'',settings); win.focus();}

function centeredPopup(url,w,h){ 
if(res == 768) {w = parseInt(w*1.3); h =parseInt(h*1.2);}
else if(res > 768) {w = parseInt(w*1.4); h =parseInt(h*1.3);}
LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
if(browser == "opera") TopPosition = TopPosition -90;
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(url,'',settings); win.focus();}

function centeredWindow(url,w,h){ LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(url,'',settings); win.focus();}

function openNewWindow(myUrl) {
window.open(myUrl,'_blank');
}






