function swf(file,w,h,bgcolor,ssl,flashvars){
  if(location.search != ""){
	var query_string_len=location.search.length;
	var query_string=location.search.substr(1,query_string_len-1); 
  }else{
	var query_string=""; 
  }
  var flashvars="referer_url="+document.referrer+"&current_url="+location.protocol+"//"+location.hostname+location.pathname+"&http_host="+document.domain+"&"+query_string+"&"+flashvars;
  if(ssl){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+w+'" height="'+h+'">');
  }else{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+w+'" height="'+h+'">');
  }
  document.write('<param name="movie" value="'+file+'">');
  document.write('<param name="allowScriptAccess" value="always">');
  document.write('<param name="quality" value="high" />');
  document.write('<param name="menu" value=false />');
  document.write('<param name="bgcolor" value="#'+bgcolor+'" />');
  document.write('<param name="flashvars" value="'+flashvars+'" />');
  if(ssl){
    document.write('<embed src="'+file+'" flashvars="'+flashvars+'" quality="high" menu=false bgcolor="#'+bgcolor+'"  width="'+w+'" height="'+h+'" type="application/x-shockwave-flash" allowScriptAccess="always"></embed>');
  }else{
    document.write('<embed src="'+file+'" flashvars="'+flashvars+'" quality="high" menu=false bgcolor="#'+bgcolor+'"  width="'+w+'" height="'+h+'" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" allowScriptAccess="always"></embed>');
  }
  document.write('</object>');
};
