var movieName2 = "video_thmbs" ;

function thatMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  } else {
    return document[movieName]
  }
}


function writeThumbs(querystring){
	
	querystring = '/video_thumbs.swf?currentthmb='+querystring ;
	
	var flashcode = "\n\t\t\t\t"+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
	+ 'width="238" height="535" id="video_thmbs"'
	+ 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">'
	+ '<param name="movie" value="'+querystring+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent">'
	+ '<embed src="'+querystring+'" quality="high" bgcolor="#ffffff" '
	+ 'width="238" height="535" name="video_thmbs" align="middle"'
	+ 'play="true"'
	+ 'loop="false"'
	+ 'quality="high"'
	+ 'wmode="transparent"'
	+ 'allowScriptAccess="sameDomain"'
	+ 'type="application/x-shockwave-flash"'
	+ 'pluginspage="http://www.macromedia.com/go/getflashplayer" />'
	+ '<\/embed>'
	+ '<\/object>'
	
	document.write(flashcode) ;
	
}

function colorizethumb(querystring){
		
	thatMovie(movieName2).SetVariable("activethmb",querystring) ;

}