// do not edit this javascript unless cleared through multimedia

// ------------------------
// Browser / OS Detection -
// ------------------------
var IE = (document.all) ? 1 : 0;
var DOM = (document.getElementById) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var MAC = ((navigator.appVersion.indexOf("PPC") >0) || (navigator.appVersion.indexOf("Mac") >0)) ? 1 : 0;

var ua = navigator.userAgent;
var OPERA = (ua.indexOf("Opera") > 0) ? 1 : 0;
var SAF = (navigator.appVersion.indexOf("Safari") >0) ? 1 : 0;

if (ua.indexOf("AOL") > 0) {
	var s_prop9="AOL"; // for Omniture
	var dclk_seg="aol"; // for Doubleclick
    }


function getEl(el) {
    return document.all ? document.all[el] : document.getElementById(el);
    }

function getElementsByClassName(cl,el) {
    var retnode = [];
    var myclass = new RegExp('\\b'+cl+'\\b');
    var elem = (el) ? el.getElementsByTagName('*') : document.getElementsByTagName('*');
    for (var i = 0; i < elem.length; i++) {
        var classes = elem[i].className;
        if (myclass.test(classes)) retnode.push(elem[i]);
        }
    return retnode;
    }

    
// ---------------------------------
// clipping functions for Mr. Pukey
// and other dynamically positioned
// icons
// ---------------------------------

function clipObj(who) {
	if (IE) { 
		var clipper = document.all[who];
	}
	else if (DOM) {
		var clipper=document.getElementById(who);
	}
	clipper.style.clip = 'rect(0px 19px 32px 0px)';
	timer = setTimeout("unclipObj('"+who+"')", 2500);
}

function unclipObj(who) {
	if (IE) {
		var clipper = document.all[who];
	}
	else if (DOM) {
		var clipper=document.getElementById(who);
	}
	clipper.style.clip = 'rect(0px 64px 32px 0px)';
}


// --------------------------
// Cookie releated functions
// --------------------------

function setCookie (name, value, expires) {
	if (!expires) expires = new Date();
	document.cookie = name + "=" + value + "; expires=" + expires.toGMTString() +";domain=.nfl.com; path=/";
}

function readCookie(name) {
	if(document.cookie == '') { 
	return false; 
	} else { 
	var firstChar, lastChar;
	var theBigCookie = document.cookie;
	name = name + '=';
	firstChar = theBigCookie.indexOf(name);	
	if (firstChar != -1) {
		firstChar += name.length;
		lastChar = theBigCookie.indexOf(';', firstChar); 
		if(lastChar == -1) lastChar = theBigCookie.length;
		return unescape(theBigCookie.substring(firstChar, lastChar));
	} else {return false;}
	}	
} 

function killCookie(name, path, domain) {
  var theValue = readCookie(name);
  if(theValue) {
	  document.cookie = name + '=' + theValue + '; expires=Fri, 13-Apr-1970 00:00:00 GMT' + ((path)?';path=' + path:'') + ((domain)?';domain=' + domain:''); // set an already-expired cookie
  }
} 

function getValue(cookieName,name) {
	cookieValue=readCookie(cookieName)
	findString=name;
	if (cookieValue) {
		namePos=cookieValue.indexOf(findString,0);
		if (namePos==-1) {return false;}
		valueStart=(cookieValue.indexOf('&',namePos+1)+1);
		valueEnd=cookieValue.indexOf('&',valueStart+1);
		if (valueEnd==-1)  valueEnd=cookieValue.length;
		valueIs=cookieValue.substring(valueStart,valueEnd)
		if (namePos!=null) {return valueIs;}
	}
	else {return false;}
}

function mTrack(mTrackName,mTrackMax,cName,cExpires) {

	if (arguments.length == 2) {var cName='mediaTrack';}
	var newExp = (cExpires) ? ';expires='+cExpires : '';

	var showAd=true;
	if (!readCookie(cName)) {
		newCook=mTrackName +'|' +1;
		document.cookie=(cName +'='  + newCook +";domain=.sportsline.com;path=/" +newExp);
		}
	else if (readCookie(cName)) {
		oldCook = readCookie(cName);
		var thisAH = oldCook.indexOf(mTrackName);
		if (thisAH==-1) {
			newCook=oldCook +'|' +mTrackName +'|' +1;
			document.cookie=(cName +'=' + newCook +";domain=.sportsline.com;path=/" +newExp);
			}
		else {
			var splitCook = oldCook.split('|');
			var cookPlus; var plusOne;
			for (i=0; i < splitCook.length; i+=2 ) {
				plusOne = i+1;
				if (splitCook[i]==mTrackName) {
					cookPlus = parseInt(splitCook[plusOne])+1;
					splitCook[plusOne]=cookPlus;
					if (cookPlus > mTrackMax) showAd = false;
					}
				}
			newCook="";
			for (var j=0; j < splitCook.length-1; j+=2) {
				newCook += splitCook[j] + '|' +splitCook[j+1];
				if (j+2 < splitCook.length) {newCook += '|';}
				}
			document.cookie=(cName +'=' + newCook +";domain=.sportsline.com;path=/" +newExp );
			}
		}
	return showAd;
	}

// --------------------------
// window opening functions -
// --------------------------
function openScroll(url,name,width,height) {
	popupWin = window.open(url, name, 'menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,width=' +width +',height=' +height +',left=50,top=50');
}

function openPopup(url,name,width,height) {
	popupWin = window.open(url, name, 'menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,width=' +width +',height=' +height +',left=50,top=50');
}



// --------------------
// position detection -
// --------------------
function psuedoGetElementById(elm,d){
    var p,i,x; if(!d) d=document; if((p=elm.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; elm=elm.substring(0,p);
        }
    if(!(x=d[elm])&&d.all) x=d.all[elm]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][elm];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=document.getElementById(elm,d.layers[i].document);
    return x;
	}

function getCoordinates(obj) {
    var point = { x: 0, y: 0 };
    while(obj) {
        point.x += obj.offsetLeft;
        point.y += obj.offsetTop;
        obj = obj.offsetParent;
        }
    return point;
    }

function whereami(anchorid) {
    var locarr = new Array();
    if(NS4) {
        if (document.anchors[anchorid]){
            locarr[0] = document.anchors[anchorid].x;
            locarr[1] = document.anchors[anchorid].y;
            }
        }
    else if(DOM) {
        var myanchor = document.getElementById(anchorid);
        var coordinates = getCoordinates(myanchor)
        if (myanchor){
            locarr[0] = coordinates.x;
            locarr[1] = coordinates.y;
            }
        }
    else {
	var myanchor = psuedoGetElementById(anchorid);
    var coordinates = getCoordinates(myanchor)
    if(myanchor.offsetLeft&&myanchor.offsetTop){
        locarr[0] = coordinates.x;
        locarr[1] = coordinates.y;
        }
    }
	return locarr;
	}

// ------------------------------------------
// 2-tier fast fact drop-down scripts (oly) -
// ------------------------------------------

function OverLayer() {
    clearTimeout(CBSi.gn.timer);
    CBSi.gn.isOver = true;
}

function OutLayer() {
    clearTimeout(CBSi.gn.timer);
    CBSi.gn.isOver = false;
    CBSi.gn.timer = setTimeout("CBSi.gn.hide()",100);
}

// -------------------------------
// I am not sure what uses this  -
// -------------------------------

function WM_changeLinks(linksstr) {
var linkarr = linksstr.split('|');
		for(urlset in linkarr){
		var urlsetarr = linkarr[urlset].split('^');
		var oldHref = urlsetarr[0];
		var newHref = urlsetarr[1];
				for (daLink = 0; daLink < document.links.length; daLink++) {
						if(urlsetarr[2]=="fuzzy"){
							if (document.links[daLink].href.indexOf(oldHref) != -1) {
							document.links[daLink].href = document.links[daLink].href.replace(oldHref,newHref);
							}
						}
						if(urlsetarr[2]=="exact"){
							if (document.links[daLink].href == oldHref || document.links[daLink].href == (oldHref + '/')) {
							document.links[daLink].href = newHref;
							}
						}
						
				}
			if(typeof(ff_nfl)!="undefined"){			
		  		  for (daLink = 0; daLink < ff_nfl.length; daLink++) {
	 					  var linkstr = ff_nfl[daLink][0];
						   if (linkstr==oldHref || linkstr == (oldHref + '/')) {
						 	ff_nfl[daLink][0]=newHref;
							}
			   	 }
			}
		}
}

// --------------------------------------------------------------------------
// AJAX and other scripts for the tab-sets on home page, arenas, and other  -
// --------------------------------------------------------------------------

function getHTTPObject() {
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		 try {
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		 } catch (E) {
				xmlhttp = false;
		 }
	}

	if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = false;
		}
	}

	return xmlhttp;
}



<!-- scripts-tab -->
function tabSetParent(){
	this.newSet = function( name ){
		eval( 'this.' + name + '= new tabSetObj("'+ name +'");' );
	}
}

function tabSetObj( name ){

	if(IE && MAC){return;}
	
	this.name = name;
	this.spacer = '<img src="http://images.sportsline.com/images/spacer.gif" width="1" height="1">';
	this.preTabCell  = function(){return ''}
	this.postTabCell = function(){return ''}
	this.preTabFoot  = function(){return ''}
	this.postTabFoot = function(){return ''}
	this.addId		= function(){return ''}
	this.addMouseOver = function(){return ''}
	this.addMouseOut  = function(){return ''}

	this.arrayPush = function( array, value ){
		array[array.length] = value;
		return;
	}
	
	// addTab to TabSet
	this.addTab = function( label, url, row, def ){
		if( row == null ) row = 0;
		this.row = new Array();
		
		if( def ) this.defaultRow = row;

		if( this.label ){
			if( this.label[row] )
			{					
				this.arrayPush( this.label[row], label )
				this.arrayPush( this.url[row], url );
			}else{									
				this.label[row] = Array( label );
				this.url[row] = Array( url );
			}
		}else{
			this.label = new Array();
			this.label[row] = Array( label );
			this.url = new Array();
			this.url[row] = Array( url );
		}
		this.row[row] = true;
		if( def ) this.defaultCell = this.label[row].length - 1;

	}

	 this.getClassName = function(){
		return (( this.defaultRow == row ) && ( this.defaultCell == cell )) ? this.classOn : this.classOff ;
	}
	
	this.drawTabSet = function( dRow, dCell ){
		if( dRow != null ) this.defaultRow = dRow;
		if( dCell != null ) this.defaultCell = dCell;

		var tabSetHtml = '';
		// For Each Row
		for( row=this.row.length-1; row>=0; row-- ){
			rowHtml = '';
			label = this.label[row]
			rowHtml+= '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
			
			if( this.tabVSpace ){
				rowHtml+= '<td height="'+ this.tabVSpace +'"></td></tr><tr>';
			}
						
			// For each Tab in a Specified row
			for( cell=0; cell < label.length; cell++ ){
				className = this.getClassName(cell);
				mouseOver = this.addMouseOver(cell,className);
				mouseOut = this.addMouseOut(cell,className);
				addId = this.addId(cell);
				rowHtml += this.preTabCell();
				rowHtml += '<td';
				rowHtml += ' class="'+ className +'"';
				rowHtml += ' onclick="javascript:tabSet.' + this.name + ".click(" + row + "," + cell + ')"';
				//rowHtml += ' title="Row('+ row +') Cell('+ cell +')"';
				rowHtml += addId + mouseOver + mouseOut;
				rowHtml += '>';
				// rowHtml += '<a style="text-decoration:none;" href="javascript:tabSet.' + this.name + ".click(" + row + "," + cell + ')">';
				rowHtml += label[cell];
				// rowHtml += '</a>';
				rowHtml += '</td>';
				rowHtml += this.postTabCell();
				if( this.tabHSpace ) rowHtml += '<td width="'+ this.tabHSpace +'">' + this.spacer + '</td>';
			}
			rowHtml+= '</tr>';
			rowHtml+= "\n\n\n";
			
			// Footer Row
			if( this.defaultRow == row && this.footer != false){
				rowHtml += '<tr>';
				for( cell=0; cell < label.length; cell++ ){
					className = (( this.defaultRow == row ) && ( this.defaultCell == cell )) ? this.footClassOn : this.footClassOff ;
					rowHtml += this.preTabFoot();
					rowHtml += '<td';
					rowHtml += ' class="'+ className +'"';
					rowHtml += '>';
					rowHtml += this.spacer;
					rowHtml += '</td>';
					rowHtml += this.postTabFoot();
					if( this.tabHSpace ) rowHtml += '<td width="'+ this.tabHSpace +'" class="' + this.hSpace + '">' + this.spacer + '</td>';
				}
				rowHtml += '</tr>';
			}		
			rowHtml+= '</table>';
			if( this.defaultRow == row ){
				bottomRow = rowHtml;
			}else{
				tabSetHtml += rowHtml;
			}

		}
		document.getElementById(this.tabDivName).innerHTML = tabSetHtml + bottomRow;
	}

	this.renderTabs = function( dRow, dCell ){

		this.tabDivName = 'tabSet-tab-'+ this.name;
		var div = '<div id="'+ this.tabDivName +'">.</div>';
		document.write( div );

		this.drawTabSet();

	}

	this.click = function( row, cell ){
		this.changeContents( this.url[row][cell] );
		this.drawTabSet( row, cell );
	}

	this.changeContents= function( url ){
		http = getHTTPObject();
		http.open( "GET", url, true);
		http.onreadystatechange = this.onreadystatechange;
		tabSet.tabDestination = this.name;
		http.send(null);
	}		

	this.onreadystatechange = function(){
		if (http.readyState == 4) {
			eval( "document.getElementById('tabSet_" + tabSet.tabDestination + "_div').innerHTML = http.responseText;" );
		}
	}

}
var tabSet = new tabSetParent();

// ----------------------
// Mouse-over Tool-tips -
// ----------------------

var iconTop=0;
var iconLeft=0;

var iconPos = whereami('tooltip');

function getMousePosDOM(e) {
	iconTop=e.clientY;
	iconLeft=e.clientX;
	}

function getMousePosIE() {
	iconTop=event.clientY;
	iconLeft=event.clientX;
//  iconY=event.scrollX;
	}

function tooltipOn(message,shift) {
// if called from the child, then pass second argument

	if(MAC && IE){
		// Do nothing - IE Mac can't handle style.width properly
		}

	else if (IE&&!SAF) {

		document.all.tooltip.innerHTML=message;
		// get shifts for when called from child
		var shiftItX=arguments.length==2?sekritLeft-document.body.scrollLeft:0;
		var shiftItY=arguments.length==2?sekritTop-document.body.scrollTop:0;
		// else pos.
		document.all.tooltip.style.top=document.body.scrollTop+iconTop+10+shiftItY;
		document.all.tooltip.style.left=document.body.scrollLeft+iconLeft+10+shiftItX;

		
		document.all.tooltip.style.visibility="visible";
		}
		
	else if (DOM) {
		document.getElementById('tooltip').innerHTML=message;
		// get shifts for when called from child
		var shiftItX=arguments.length==2?sekritLeft-window.pageXOffset:0;
		var shiftItY=arguments.length==2?sekritTop -window.pageYOffset:0;
		// else pos
		document.getElementById('tooltip').style.top=window.pageYOffset+iconTop+10+shiftItY;
		document.getElementById('tooltip').style.left=window.pageXOffset+iconLeft+10+shiftItX;

		document.getElementById('tooltip').style.visibility="visible";
		}
		
	else if (NS4) {alert('Sorry, this page will not work in Netscape Navigator 4.x. Please use Internet Explorer 4+, Netscape Navigator 6+, Mozilla, Opera, Safari or any other standards compliant browser.'); return;}

	return;
	}

function tooltipOff() {
	if (IE) {document.all.tooltip.style.visibility="hidden";}
	else if (DOM) {document.getElementById('tooltip').style.visibility="hidden";}
	else return;
	}

if (IE) {document.onmousemove=getMousePosIE;}
else if (DOM) {document.onmousemove=getMousePosDOM;}

// ----------------------
// Bookmark Pages
// ----------------------
function bookmarkThisPage(hrefObject, bookmarkLabel){
	hrefObject.href=document.location.href;   // Some browsers do a "bookmark link" feature, so the href must have the location to bookmark -- this makes sure it does
	if(window.sidebar && window.sidebar.addPanel){
		// Add to Mozilla's sidebar/ bookmarks
		window.sidebar.addPanel( bookmarkLabel, document.location.href, '' );
	}
	else if(window.external && (navigator.platform == 'Win32' ||(window.ScriptEngine && ScriptEngine().indexOf('InScript') + 1))){
		// Add to IE's favorites
		window.external.AddFavorite(document.location.href, bookmarkLabel);
	}
	else if(window.opera && window.print)
	{
		// Opera
		return true;
	}
	else if(document.layers){
		// Fall back into an alert box if it seems Crtl+D is the bookmarking shortcut (Netscape)
		window.alert( 'Please click OK then press Ctrl+D to create a bookmark' );
	}
	else{
		// Fall back into another alert box.
		window.alert('Please use your browser\'s bookmarking facility to create a bookmark');
	}
	return false;
}

function externalWrite( string ) {
	document.write( string );
}

// Begin flashObj

var flashObj 							= new Object();

	flashObj.settings					= new Object();
	flashObj.settings.objectAttributes	= ['id','width','height','style'];
	flashObj.template					= new Object();
	flashObj.template.takeover			= { width:985, height:300, loop:'false', menu:'false', quality:'autohigh', scale:'exactfit', wmode:'opaque', id:'expandingAd' };
	flashObj.template.takeover100		= { width:985, height:100, loop:'false', menu:'false', quality:'autohigh', scale:'exactfit', wmode:'opaque', id:'expandingAd' };
	flashObj.template.basic				= { width:32, height:32, menu:'false', quality:'autohigh', wmode:'opaque' };
	flashObj.template.printable			= { width:650, height:875, loop:'false', menu:'false', quality:'autohigh', scale:'exactfit', wmode:'opaque', id:'bracket' };
	flashObj.template.viewable			= { width:875, height:650, loop:'false', menu:'false', quality:'autohigh', scale:'exactfit', wmode:'opaque', id:'bracket' };


	flashObj.display = function( swfPath, swfVersion, swfOptions, imgPath, imgObj ){
		// This is the primary function in this Object Class
		//
		// Functions
		//  1. IF swfOptions._debug is true, <textarea> tags are added before and after Output for debugging purposes.
		//  2. Attaches Template to current Operation (If Applicable)
		//	3. Decides whether FLASH or IMG will be written based on user's Supported Flash/Fash Version
		//	4. doc.writes or returns HTML depending on swfOptions._return (true/false)
		var html = '';
		if( !imgObj ) imgObj = {};
		
		// If _debug true, Open Textarea Tag
		if( swfOptions['_debug'] ) html += '<textarea style="width:985px; height:300px" wrap="off">';
		
		// Import Template
		var template = ( typeof(this.template[swfOptions._template]) == 'object' )
					? this.template[swfOptions._template]
					: this.template.basic;

		// Generate HTML or IMG
		//html += ( this.getVersion() >= swfVersion )
		if( this.isSupported( swfVersion ) ){
			// Flash/FlashVersion Supported, Processes for Flash Object/Embed Output
			html += this.outputFlash( swfPath, swfVersion, swfOptions, template );
		}else{
			if( !imgObj.height ) imgObj.height = ( !swfOptions ) ? template.height : swfOptions.height;
			if( !imgObj.width  ) imgObj.width  = ( !swfOptions ) ? template.width  : swfOptions.width ;
			html += this.outputImg( imgPath, imgObj, template );
		}
		
		// If _debug true, Close Textarea Tag
		if( swfOptions['_debug'] ) html += '</textarea>';
		
		if( swfOptions['_return'] ){
			// Returns HTML
			return html;
		}else{
			document.write(html);		// Writes HTML to DOM
			return ( this.isSupported( swfVersion ) ) ? 'flash' : 'image';	// Returns Flash/Image depending on what was written
		}
	}
	
	flashObj.outputFlash = function( swfPath, swfVersion, swfOptions, template ){
		var oAttributes = new Object(); // Object Tag Attributes
		var oParameters = new Object(); // Object Tag Parameters
		var eAttributes = new Object(); // Embed  Tag Attributes
				
		// -Over-write Template with User Specified Information
		// -For Each Property User provided in swfOptions
		//  Write Option to Template.
		for( var key in swfOptions ) if( key.substr(0,1) != '_' ) template[key] = swfOptions[key];
		
		// Static Non Changing Flash classid & codebase
		oAttributes['classid'] = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
		oAttributes['codebase'] = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ this.objectVersionString(swfVersion);
		
		// Set Object Movie Parameter
		oParameters['movie'] = swfPath;
		
		// Set Embed Standard/Src Attributes
		eAttributes['type'] = 'application/x-shockwave-flash';
		eAttributes['pluginspage'] = 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash';
		eAttributes['src'] = swfPath;
		
		// Build Object/Embed Attributes based on non flash Attributes such as ID, STYLE
		//  Users flashObj.settings.objectAttributes for list of Object Attributes
		for( var index=0; index<this.settings.objectAttributes.length; index++ ){
			var templateKey = this.settings.objectAttributes[index];
			if( typeof template[templateKey] != 'undefined' ){
				oAttributes[templateKey] = template[templateKey];
				eAttributes[templateKey] = template[templateKey];
				delete template[templateKey];
			}
		}
		
		// Build Parameters and Embed
		for( var key in template ){
			oParameters[key] = template[key];
			eAttributes[key] = template[key];
		}

		// Build HTML
		var html  = '';
			// Object
			html += '<OBJECT';		// Open Object Tag
			for( var key in oAttributes ) html += '\n ' + key + '="' + oAttributes[key] + '"';	// Build Object Attributes
			html += '>';			// Close the Start Object Tag
			// Parameters
			for( var key in oParameters ) html += '\n  <PARAM NAME="' + key + '" VALUE="' + oParameters[key] + '" />';	// Build Ojbect Parameters
			// Embed
			html += '\n<EMBED';		// Open Embed Tag
			for( var key in eAttributes ) html += '\n ' + key + '="' + eAttributes[key] + '"';	// Build Embed Attributes
			html += ' />';			// Close Embed Tag
			html += '\n</OBJECT>';	// Close Object Tag
		return html;
	}
	
	flashObj.isSupported = function( swfVersion ){
		// Checks if Necessary Flash Version is Supported by browser.
		return(   this.juxtVersion( this.getVersionString() )   >=   this.juxtVersion( swfVersion )   );		
		// this.juxtVersion
		// Converts Flash Version Information whether it be (Integer, String, or Array) into a Comparable string of numbers.
	}
	
	flashObj.juxtVersion = function( version ){
		// Converts Flash Version Information whether it be (Integer, String, or Array) into a Comparable string of numbers.
		var vString = '';	// Return Variable
		
		if( typeof(version) == 'string' || typeof(version) == 'number' ){
			version = parseInt(version);
			// Convert String/Number into 3 character string. Padded by zeros
			if( version < 10 ) vString += '00'+ version;
			if( version >= 10 && version < 100 ) vString += '0'+ version;
			if( version >= 100 ) vString += version;
			vString += '000000000';
		}else if( typeof(version) == 'object' ){
			for( i=0; i<=3; i++ ){
				if( typeof(version[i]) == 'undefined' || version[i] == 0 ){
					vString += '000';
				}else{
					if( version[i] < 10 ) vString += '00'+ version[i];
					if( version[i] >= 10 && version[i] < 100 ) vString += '0'+ version[i];
					if( version[i] >= 100 ) vString += version[i];
				}
			}
		}
		return vString;
	}
	
	flashObj.objectVersionString = function( version ){
		// Converts juxtVersion String of 12 characters into an Array Object.
		var version = this.juxtVersion(version);
		var objVersion = new Array();
		var segmentCount = 0;
		var group = '';
		for( var i=0; i<version.length; i++ ){
			segmentCount ++;
			group += ( parseInt(version.substr(i,1)) )
				   ? (version.substr(i,1)+'')
				   : '';
			if( segmentCount == 3 ){
				if( !group ) group = 0;
				segmentCount = 0;
				objVersion.push( group );
				group = '';
			}
		}		
		return objVersion;
	}

	flashObj.outputImg = function( imgPath, imgObj, template ){		
		// If no imgPath Provided
		if( ! imgPath ) return '';
		
		var oImg = new Object();		// Holds Image Tag Attributes
		var oAnchor = new Object();		// Holds Anchor Tat Attributes
		var anchorFlag = false;			// Boolean: IF Any Anchor Tag Attributes Exits (true)
		
		oImg['src'] = imgPath;
		oImg['height'] = template.height;
		oImg['width'] = template.width;
		oImg['border'] = 0;
		
		// Overwrite/Build Image and Anchor Tags
		for( var key in imgObj ){			
			if( key.substr(0,1) == '_' ){
				oAnchor[key.substr(1)] = imgObj[key];
				anchorFlag = true;
			}else{
				oImg[key] = imgObj[key];
			}
		}
		
		// Build HTML
		var html = '';
		
			if( anchorFlag ){
				html += '<a';		// Open Achor Tag
				for( var key in oAnchor ) html += '\n ' + key + '="' + oAnchor[key] + '"';	// Build Anchor Attributes
				html += '>';		// Close the Start Object Tag
			}

			html += '<img';		// Open Achor Tag
			for( var key in oImg ) html += '\n ' + key + '="' + oImg[key] + '"';	// Build Anchor Attributes
			html += '/>';		// Close the Start Object Tag

			if( anchorFlag ) html += '</a>';	// Close Achor Tag
			
		return html;
	}
	
	flashObj.detectFlash = function(){
		this.detectedFlag = true;
		if(navigator.plugins && navigator.mimeTypes.length){
			// Non IE
			var x = navigator.plugins["Shockwave Flash"];
			if(x && x.description){
				//PlayerVersion = new com.deconcept.PlayerVersion();
				this.versionString = x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")
				this.version = this.versionString[0];
			}			
		}else{
			// IE
			try{
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				for(var i=3; axo!=null; i++){
					axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
					if (i==6){
						axo.AllowScriptAccess = "always"; // throws if player version < 6.0.47
					}
				}
			}catch(e){}
			
			if (axo != null) {
				this.version = axo.GetVariable("$version").split(" ")[1].split(',')[0];
				//this.versionString = axo.GetVariable("$version").split(" ")[1];
				this.versionString = axo.GetVariable("$version").split(' ')[1].split(',');
			}
		}
		return;
	}
	
	flashObj.getVersion = function(){
		if( ! this.detectedFlag ) this.detectFlash();
		return this.version;
	}
	
	flashObj.getVersionString = function(){
		if( ! this.detectedFlag ) this.detectFlash();
		return this.versionString;
	}

// END flashObj
