function showTopAParticles() { // Browser sniffer. Written by PerlScriptsJavaScripts.com v3 = 0; op = 0; ie4 = 0; ie5 = 0; nn4 = 0; nn6 = 0; isMac = 0; aol = 0; if(document.images){ if(navigator.userAgent.indexOf("Opera") != -1){ op = 1; } else { if(navigator.userAgent.indexOf("AOL") != -1){ aol = 1; } else { ie4 = (document.all && !document.getElementById); nn4 = (document.layers); ie5 = (document.all && document.getElementById); nn6 = (document.addEventListener); } } } else { v3 = 1; } if(navigator.userAgent.indexOf("Mac") != -1){ isMac = 1; } var divwidth = width-(bordersize * 2); if(ie5){ // do this var divwidth = width; } if (width == 300) { var height = 250; var rowcount = 7; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } else if (width == 250) { var height = 250; var rowcount = 5; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } else if (width == 160) { var height = 600; var rowcount = 10; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } else if (width == 120) { var height = 600; var rowcount = 8; var divheight = height-(bordersize * 2); if(ie5){ // do this var divheight = height; } } document.write(''); var iframe = document.getElementById("aparticles"); // Initiate the iframe's document to null iframe.doc = null; // Depending on browser platform get the iframe's document, this is only // available if the iframe has already been appended to an element which // has been added to the document if(iframe.contentDocument) // Firefox, Opera iframe.doc = iframe.contentDocument; else if(iframe.contentWindow) // Internet Explorer iframe.doc = iframe.contentWindow.document; else if(iframe.document) // Others? iframe.doc = iframe.document; // If we did not succeed in finding the document then throw an exception if(iframe.doc == null) throw "Document not found, append the parent element to the DOM before creating the IFrame"; // Create the script inside the iframe's document which will call the iframe.doc.open(); iframe.doc.close(); // Return the iframe, now with an extra property iframe.doc containing the // iframe's document iframe.doc.write('