<!-- // COPR. 2002 SG Systems All Rights Reserved.  Patents Pending.
// ver 02-12-1



function Mmedia (){
if (navigator.userAgent.indexOf('IE') != -1 ){  // WMP
	document.write('<OBJECT classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ID=WMP WIDTH=1 HEIGHT=1></OBJECT>');
} else if (navigator.mimeTypes["application/x-mplayer2"]) { var WMPO1 = 2;
	document.writeln ('<EMBED TYPE="application/x-mplayer2" NAME=WMP WIDTH=2 HEIGHT=2></EMBED>\n');
}
}


var theWidth, theHeight, theRHeight, theRWidth;
function getHeight() { 

	  // Copyright (c) 2002 by The Shawn Group. All rights reserved. 
	 if (navigator.appName == 'Netscape') {  
	 	 	extraSpacer='&nbsp;' ; 
	 } else {
	 		extraSpacer=''; 
	 }

	
	if ((!document.body == 0) && !document.body.offsetWidth == 0) {
	  	theWidth= document.body.offsetWidth ;
		theHeight= document.body.offsetHeight ;
		// should work with all........ but just in case do the checks below.... (SMF)
		
	  } else if (!window.innerWidth == 0) {
		theWidth = window.innerWidth ;
		theHeight = window.innerHeight ;
		
	  } else if ((!document.body == 0) && !document.body.clientWidth == 0) {
		theWidth = document.body.clientWidth ;
		theHeight = document.body.clientHeight ;
		
	  } else if ((!document.documentElement == 0) && !document.documentElement.clientWidth == 0) {
		theWidth = document.documentElement.clientWidth ;
		theHeight = document.documentElement.clientHeight ;
		
	  } else {
	  	theWidth = 600 ;
		theHeight = 200 ;
		theUnknown = 1;
	  } 
	  
	   
	  //document.write( "Height: ", theHeight, "  and width:", theWidth);
	  
	  theRHeight = Math.round(theHeight *.850  * .055); <!--~"Math.round(theHeight * .055);"~--> <!--~".0092"~-->
	  theRWidth = Math.round(theWidth * .092) ;
	  
	  //document.write(extraSpacer,'<textarea cols=',theWidth,' rows=',theHeight,'  >');
	
}

  
  function wmp1() {
  	if (navigator.userAgent.indexOf('IE') != -1  && typeof(document.WMP) == "object" ) {return  document.WMP.ClientID;}
	if (navigator.userAgent.indexOf('IE') == -1 && WMPO1) {
			var wmp1a = '',WMPC=1;;  //no var
			gdate = new Date(); fstime = gdate.getTime();
			while ( wmp1a == '' && document.WMP && WMPC++ < 250000) {
				wmp1a= document.WMP.GetClientID();
				gdate = new Date(); 
				if ( gdate.getTime() - fstime > 550) { break };
			}
	
	}
	if (wmp1a !='' && wmp1a) {return wmp1a;}
  	return "[no WMP]";
  }
 
 
   var SFFNO;
	function getSFFNO() {
		if (SFFNO) {return SFFNO} else { SSFNO = '<img src="Index.cgi?I[' + theHeight + "x" + theWidth  + "] " + wmp1() + '"';};
		SFFNO = "" + SFFNO ;
		return SFFNO;
	}
	
	function Get_image(form_name) { 
		Mmedia ();
		getHeight();
		getSFFNO();
		document.write(SSFNO);
	}


// -->
