//=============================================================================
// Flash taramak için
//=============================================================================
function isFlash(inVersion)
{
 FlashMode = 0;
 if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
  if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1) {
   var versionString = navigator.plugins["Shockwave Flash"].description.substring(versionIndex-1, versionIndex);
   versionIndex = parseInt( versionString );
   if ( versionIndex >= inVersion ) {
     FlashMode = 1;
   }
  }
 }
 else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
    && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0 )) {
  theStr='FlashMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+inVersion+'"))) \n';
  document.write('<script language=VBScript\> \n');
  document.write('on error resume next \n');
  document.write(theStr);
  document.write('</script\> \n');
   
 }
 return FlashMode;
}
//=============================================================================
// Flash yazmak, yok ise resim koymak için
//=============================================================================
function insertFlash(i_minVersion, i_path, i_name, i_width, i_height, i_bgcolor, i_fb,i_link,i_fblink, transparent) {
	/*--alert (navigator.userAgent); --*/
	var deger='';
//  if (isFlash(i_minVersion))
//  {
  	if(i_link)
  	{
   		i_link=escape(i_link);
		var linkarray=i_link.split("/");
		i_link=linkarray.join("%2F");
   		i_path=i_path+i_link;
   }
  deger += ' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
  deger += ' codebase="../../../../active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0/default.htm"';
  deger += ' ID="' + i_name + '" width="' + i_width + '" height="' + i_height + '">';
  deger += ' <param name=movie value="' + i_path +'"> ';
  deger += ' <param name=quality value=high> ';
  deger += ' <param name=menu value=false> ';
  deger += ' <param name=bgcolor value=#' + i_bgcolor + '> ';
  if(transparent)
  deger += ' <param name=wmode value=transparent> ';
  deger += ' <embed src="' + i_path +'"';
  if(transparent)
  deger += ' wmode=transparent ';
  deger += ' name=' + i_name + ' swLiveConnect="true" width="' + i_width + '" height="' + i_height + '"';
  deger += ' quality="high" menu="false" bgcolor="#' + i_bgcolor + '"';
  deger += ' type="application/x-shockwave-flash" pluginspage="../../../../www.macromedia.com/shockwave/download/download.cgi@P1_Prod_Version=ShockwaveFlash.htm">';
  deger += '</embed>';
  deger += '</object>';
// }else {
// 	if(i_fblink){
//     deger += '<a href="'+i_fblink+'"><img src="' + i_fb+'" width="'+i_width+'" height="'+i_height+'" border="0"></a>';
//	}else{
//		deger += '<img src="' + i_fb+'" width="'+i_width+'" height="'+i_height+'" border="0">';
//	}
// }
 document.write(deger);
}
