// Disable "javascript not enabled" message

document.write('<style>#no-javascript { display: none; }</style>');


// Copyright 2006 Sabia Creative Design
// Show-Hide

function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = ""; }
else { document.getElementById(d).style.display = "none"; }
}

// Write Random Number

var randomnumber=Math.floor(Math.random()*5)

// Do Email Comp

	function doEmailComp()
		{
			document.getElementById('modelFeatures').style.filter='alpha(opacity=30)';
			document.getElementById('modelFeatures').style.opacity= '.3';
			document.getElementById('tools').style.filter='alpha(opacity=30)';
			document.getElementById('tools').style.opacity= '.3';
				
			document.getElementById('emailComp').style.display='block';
		}
		function undoEmailComp()
		{
			document.getElementById('modelFeatures').style.filter='alpha(opacity=100)';
			document.getElementById('modelFeatures').style.opacity= '1';
			document.getElementById('tools').style.filter='alpha(opacity=100)';
			document.getElementById('tools').style.opacity= '1';
				
			document.getElementById('emailComp').style.display='none';
		}
		


// Clearing text fields

function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { 
  thefield.value = "";
  thefield.style.background = "#F2F2F2";
  thefield.style.border = "1px solid #115047";
  }
} 
function replaceText(thefield) {
  if (thefield.value=="") { 
  thefield.value = thefield.defaultValue;
  thefield.style.background = "#FFFFFF";
  thefield.style.border = "1px solid #CCCCCC";
  }
}

// Submit Form

 function submitform() {
 document.quick_find.submit()
}

 function submitform2() {
 document.main.submit()
}

// Image Hover

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { 
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// Image Hover 2

function rollOver(elem, over){
   if(elem && over){
      if(elem.nodeName.toLowerCase() == "div"){
         elem.style.cursor = "pointer";
         var curOut = elem.id;
         elem.id = over;
         elem.onmouseout = function(){
            this.style.cursor = "";
            this.id = curOut;
         }
      }
   }
}

// Popup Window

var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeWin();
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable=yes,toolbar=no,location=no,scroll=yes,scrollbars=yes,menubar=no,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable=no,toolbar=no,location=no,directories=no,status=no,scroll=no,scrollbars=no,menubar=no,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}

function popUpSWF(url, type, Width, Height, arg1, arg2, arg3){
	closeWin();
	tools = "resizable=no,toolbar=no,location=no,directories=no,status=no,scroll=no,scrollbars=no,menubar=no,width="+Width+",height="+Height+",left=0,top=0";
	if(type == "mp"){
		newWindow = window.open(url+"?bandwidth="+arg1+"&video="+arg2+"&lan="+arg3, 'newWin', tools);
	}
	if(type == "mc"){
		newWindow = window.open(url+"?category="+arg1+"&videoNum="+arg2, 'newWin', tools);
	}
	if(type == "bna"){
		newWindow = window.open(url+"?procedure="+arg1+"&caseNum="+arg2, 'newWin', tools);
	}
	newWindow.focus();
}

// Functions

if(window.attachEvent)
    window.attachEvent("onload",setListeners);

  function setListeners(){
    inputList = document.getElementsByTagName("INPUT");
    for(i=0;i<inputList.length;i++){
      inputList[i].attachEvent("onpropertychange",restoreStyles);
      inputList[i].style.backgroundColor = "";
    }
    selectList = document.getElementsByTagName("SELECT");
    for(i=0;i<selectList.length;i++){
      selectList[i].attachEvent("onpropertychange",restoreStyles);
      selectList[i].style.backgroundColor = "";
    }
  }

  function restoreStyles(){
    if(event.srcElement.style.backgroundColor != "")
      event.srcElement.style.backgroundColor = "";
  }

function changeDiv(the_div,the_change)
{
  var the_style = getStyleObject(the_div);
  if (the_style != false)
  {
    the_style.display = the_change;
  }
}


function getStyleObject(objectId) {
  if (document.getElementById && document.getElementById(objectId)) {
    return document.getElementById(objectId).style;
  } else if (document.all && document.all(objectId)) {
    return document.all(objectId).style;
  } else {
    return false;
  }
}
function nextelm(elm){
    if(elm.getAttribute('maxlength')!=elm.value.length)
        return true;
    var next=elm;
 	do
        next=next.nextSibling;
    while(next.nodeName!='INPUT');
    next.focus();
    return true;
}

var isNN = (navigator.appName.indexOf("Netscape")!=-1);

function autoTab(input,len, e) {
	var keyCode = (isNN) ? e.which : e.keyCode; 
	var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
	if(input.value.length >= len && !containsElement(filter,keyCode)) {
	input.value = input.value.slice(0, len);
	input.form[(getIndex(input)+1) % input.form.length].focus();
}

function containsElement(arr, ele) {
	var found = false, index = 0;
	while(!found && index < arr.length)
	if(arr[index] == ele)
	found = true;
	else
	index++;
	return found;
}

function getIndex(input) {
	var index = -1, i = 0, found = false;
	while (i < input.form.length && index == -1)
	if (input.form[i] == input)index = i;
	else i++;
	return index;
	}
return true;
}
function showLoad()
{
	document.getElementById('loaderFade').style.display = 'block';
	document.getElementById('contentForm').style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=50)';
}

var submitRolls = new Object();


	function submitroll(src, oversrc, name)
	{
		this.src=src;
		this.oversrc=oversrc;
		this.name=name;
		this.alt="Submit Query";
		this.write=submitroll_write;
	}

	function submitroll_write()
	{
		var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
		submitRolls[this.name] = new Object();
		submitRolls[this.name].over = new Image();
		submitRolls[this.name].over.src = this.oversrc;
		submitRolls[this.name].out = new Image();
		submitRolls[this.name].out.src = this.src;

		document.write(
			'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
			' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
			' HREF="javascript:'
					);
		if (this.sendfield)
		{
			if (! this.sendvalue)
				this.sendvalue = 1;
			document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
		}
		

		document.write(thisform + '.submit();void(0);"');
		if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');
		document.write('>');
		document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
		if (this.height)document.write(' HEIGHT=' + this.height);
		if (this.width)document.write(' WIDTH='  + this.width);
		if (this.otheratts)document.write(' ' + this.otheratts);
		document.write('></A>');
		
	}


// Javastyle

browse = new Image();browse.src = "images/browseHover.gif";
become = new Image();become.src = "images/becomeHover.gif";
book = new Image();book.src = "images/bookHover.gif";
news = new Image();news.src = "images/newsHover.gif";

       function checkIt(string)
       {
            place = detect.indexOf(string) + 1;
            thestring = string;
            return place;
      }
var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n;
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(1)


image[0] = 'LeftNavBar-model1.swf'

function ranimage() {
	var core = Math.round(Math.random()*2);
    return(image[0])
}
function navFlash() 
{ 
	document.write('<object width="170" height="220">'); 
	document.write('<param name="movie" value="http://www.promomodels.com/images/LeftNavBar-model1.swf" /><PARAM NAME="wmode" VALUE="transparent"><param name="quality" value="high" /><embed src="http://www.promomodels.com/images/LeftNavBar-model1.swf" wmode="transparent" width="170" height="220" />'); 
	document.write('</object>\n');
} 
function randomFlash(){
	var img = ranimage();
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0\" width=\"170\" height=\"220\"><param name=movie value=\"http://www.promomodels.com/images/"+img+"\"><param name=quality value=high><embed src=\"http://www.promomodels.com/images/"+img+"\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"170\" height=\"220\"></embed></object>");
}
function mainflash() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="250" height="350" id="http://www.promomodels.com/images/mainFlash.swf" align="middle">\n'); 
	document.write('<param name="movie" value="http://www.promomodels.com/mainFlash.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#c9c9c9" /><embed src="http://www.promomodels.com/mainFlash.swf" quality="high" bgcolor="#c9c9c9" width="250" height="350" name="http://www.promomodels.com/images/mainFlash.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
}  
function headerflashhome() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="775" height="320" id="flash/header_home.swf" align="middle">\n'); 
	document.write('<param name="movie" value="flash/header_home.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flash/header_home.swf" quality="high" bgcolor="#ffffff" width="775" height="320" name="http://www.promomodels.com/newsite/flash/header_home.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
}
function headerflashevent() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="775" height="320" id="flash/header_event.swf" align="middle">\n'); 
	document.write('<param name="movie" value="flash/header_event.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flash/header_event.swf" quality="high" bgcolor="#ffffff" width="775" height="320" name="http://www.promomodels.com/newsite/flash/header_event.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
}
function headerflashtradeshow() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="775" height="320" id="flash/header_tradeshow.swf" align="middle">\n'); 
	document.write('<param name="movie" value="flash/header_tradeshow.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flash/header_tradeshow.swf" quality="high" bgcolor="#ffffff" width="775" height="320" name="http://www.promomodels.com/newsite/flash/header_tradeshow.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
}
function headerflashfashion() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="775" height="320" id="flash/header_fashion.swf" align="middle">\n'); 
	document.write('<param name="movie" value="flash/header_fashion.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="flash/header_fashion.swf" quality="high" bgcolor="#ffffff" width="775" height="320" name="http://www.promomodels.com/newsite/flash/header_fashion.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
}
function featuredflashgreg() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="191" height="248" id="Featured">');
	document.write('<param name=FlashVars value="id=27782&name=Jessica%20L.&location=Seal%20Beach,%20CA">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="flash/featured.swf" /><param name="bgcolor" value="#ffffff" /><param name="quality" value="high" /><embed src="flash/featured.swf"  FlashVars="id=27782&name=Jessica%20L.&location=Seal%20Beach,%20CA" quality="high" bgcolor="#ffffff" width="191" height="248" name="Featured" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>\n');
}  
function scrollflash() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="607" height="110" id="ModelScroll" align="middle">\n'); 
	document.write('<param name="movie" value="http://www.promomodels.com/images/Model Scroll Pics.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#333333" /><embed src="http://www.promomodels.com/images/Model Scroll Pics.swf" quality="high" bgcolor="#333333" width="607" height="110" name="Model Scroll Pics " align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
} 
function clientflash() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="277" height="95" id="ClientFlash" align="middle">\n'); 
	document.write('<param name="movie" value="http://www.promomodels.com/images/Clients.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="http://www.promomodels.com/images/Clients.swf" quality="high" bgcolor="#ffffff" width="277" height="95" name="Client Flash " align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n'); 
	document.write('</object>\n'); 
}
function profileflash(id) 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="375" height="420" id="Profile" align="middle">');
	document.write('<param name=FlashVars value="id='+id+'">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="http://www.promomodels.com/profile.swf" /><param name="bgcolor" value="#ffffff" /><param name="quality" value="high" /><embed src="http://www.promomodels.com/profile.swf"  FlashVars="id='+id+'" quality="high" bgcolor="#ffffff" width="375" height="420" name="Profile" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>\n');
} 
function profileflashgreg(id) 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="450" id="Profile" align="middle">');
	document.write('<param name=FlashVars value="id='+id+'&city='+city+'&state='+state+'&hair='+hair+'&eyes='+eyes+'&build='+build+'&height='+height+'&weight='+weight+'&Bust='+Bust+'&Cup='+Cup+'&waist='+waist+'&Hips='+Hips+'&size='+size+'&shoe='+shoe+'&CupName='+CupName+'&HipsName='+HipsName+'&BustName='+BustName+'&profile='+profile+'">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="http://www.promomodels.com/profile.swf" /><param name="bgcolor" value="#ffffff" /><param name="quality" value="high" /><embed src="http://www.promomodels.com/profile.swf"  FlashVars="id='+id+'&city='+city+'&state='+state+'&hair='+hair+'&eyes='+eyes+'&build='+build+'&height='+height+'&weight='+weight+'&Bust='+Bust+'&Cup='+Cup+'&waist='+waist+'&Hips='+Hips+'&size='+size+'&shoe='+shoe+'&CupName='+CupName+'&HipsName='+HipsName+'&BustName='+BustName+'&profile='+profile+'" quality="high" bgcolor="#ffffff" width="400" height="450" name="Profile" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>\n');
} 
function myProfileflash(id) 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="375" height="420" id="Profile" align="middle">');
	document.write('<param name=FlashVars value="id='+id+'">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="http://www.promomodels.com/myProfile.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#c9c9c9" /><embed src="http://www.promomodels.com/myProfile.swf"  FlashVars="id='+id+'" quality="high" bgcolor="#c9c9c9" width="375" height="420" name="Profile" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>\n');
} 
function mediakit() 
{ 
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="612" height="792" id="Mediakit" align="middle">');
	document.write('<param name=FlashVars value="">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="http://www.promomodels.com/flash/flash_mediakit.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><embed src="http://www.promomodels.com/flash/flash_mediakit.swf"  FlashVars="" quality="high" bgcolor="#FFFFFF" width="612" height="792" name="Mediakit" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>\n');
} 
function yourProfile(id)
{
	document.write('<object width="375" height="460">'); 
	document.write('<param name=FlashVars value="id='+id+'"><param name="movie" value="galleryLogin.swf"/><param name="quality" value="high" /><param name="bgcolor" value="#dddddd" /><embed src="galleryLogin.swf" FlashVars="id='+id+'" quality="high" bgcolor="#dddddd" width="375" height="460" name="Profile" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>'); 
	document.write('</object>\n');
	
}
function mediacenter(){
	var img = ranimage();
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="496" height="412" id="mediacenter" align="middle">');
	document.write('<param name=FlashVars value="">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="http://www.promomodels.com/gallery/easy-xml-gallery-3.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="http://www.promomodels.com/gallery/easy-xml-gallery-3.swf"  FlashVars="" quality="high" bgcolor="#000000" width="496" height="412" name="Mediakit" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>\n');
}
function changeColor(division, color)
{
	e=document.getElementById(division);
	e.style.background = color;
}

function CreateBookmarkLink(url, title) 
{ 
	
	if (window.sidebar) 
	{ 
		// Mozilla Firefox Bookmark		
		window.sidebar.addPanel(title, url,"");	
	} else if( window.external ) { 
		// IE Favorite		
		window.external.AddFavorite( url, title); 
	}	else if(window.opera && window.print) { 
		// Opera Hotlist		
		return true; 
	} 
} 


// Flash Video Player

function VideoFlash(filename) 
{ 
	document.write('<object type="application/x-shockwave-flash" data="'+filename+'" width="320" height="240" style="float: left; margin: 0px 10px 10px 0px;" id="FlowPlayer">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="'+filename+'" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('</object>\n'); 
}