/***************************************************************************** girliemac2001.js     (GirlieMac! Main JS file)                      		**                                                                           ** Copyright 2001 by Tomomi Imura & Garrett S Smith (dhtmlkitchen.com)       ** http://hello.to/girliemac                                                 ** Last update: Aug 12, 2001                                                 **                                                                  			******************************************************************************//************************************** * detect if a user has Flash plug-in * **************************************/  var hasFlash = false; for (i=0; i<navigator.plugins.length; i++) { 		if (navigator.plugins[i].name.indexOf("Flash") > 0) 			hasFlash = true; } /********************* * Browser Detection * *********************/	var NN4 = (document.layers) ? 1 : 0;var IE5 = (navigator.userAgent.indexOf("MSIE 5") > 0) ? 1 : 0;var IE5_5 = (navigator.userAgent.indexOf("MSIE 5.5") > 0) ? 1 : 0;var DOM = (document.getElementById && ! IE5) ? 1 : 0;var Mac = navigator.platform.indexOf("PPC") > 0 ? 1 : 0;var isCrapBrowser = (!(IE5 || DOM)) ? 1: 0;/********************************* * The message shown when loaded * *********************************/  function popUp(url) {	var pop = window.open(url, "SUCKS", "toolbar=no, location=no, scrollbars=no, width=300, height=300");} function youSuck() {    if (isCrapBrowser && !(hasFlash))       	popUp("oldbrowser_noflash.html");    else if (isCrapBrowser)    	popUp("oldbrowser.html");    else if(!hasFlash) {		if(!document.cookie.indexOf("warned" >= 0)) popUp("noflash.html");		if(document.body.cloneNode){ // DOM browsers w/o flash			var noFlashNav = document.getElementById('textNav').cloneNode(true);			var navbar = document.getElementById('navbar');			navbar.style.color = "#600";			navbar.style.color = "#600";			navbar.style.padding = "4px";			navbar.style.fontWeight = "600";			noFlashNav.id = "textNavHeader";			noFlashNav.style.fontSize = "14pt";			if(!IE5) navbar.replaceChild(noFlashNav,document.getElementById('flashNav'));			setCookie("warned=true;")		}	}}function setCookie(value) {	document.cookie=value;}//for Fun Stuff (fun.html)function popUpSize(url, w, h) {	var popWin= window.open(url, "Fun", "toolbar=no, location=no, scrollbars=no");		popWin.resizeTo(w, h);		popWin.focus();	}
