function flashview(obj, url, width, height){

  document.write("<object classid ='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+ width +"' height='"+ height +"' id='" + obj +"' align='middle'>");

  if (navigator.appVersion.indexOf("MSIE")==-1){
    document.write("<object type='application/x-shockwave-flash' data='"+ url +"' width='"+ width +"' height='"+ height +"'>");
  } 
  document.write("<param name='movie' value='"+ url +"'>");
  document.write("<param name='wmode' value='transparent'>");
  document.write("<param name='quality' value='high'>");

  if (navigator.appVersion.indexOf("MSIE")==-1){
    document.write("</object>");
  }
  document.write("</object>");
}

function flash() 
{
        var object = new String;
        var params = new String;
        var embedParams = new String;
        
        this.init = function(objectID, flashURL, W, H, classID, codebaseURL) 
        {
                object = "<object id='" +objectID+ "' classid='" +classID+ "' codebase='" +codebaseURL+ "' width='" +W+ "' height='" +H+ "'>";
                object += "<param name='movie' value='" +flashURL+ "'>";
                embedParams = "src='" +flashURL+ "' ";
                embedParams = "width='" + W + "' height='" + H + "' ";
        }
        
        this.param = function(param, value)
        {
                params += "<param name='" +param+ "' value='" +value+ "'>";
                embedParams += param + "='" +value+ "' ";
        }
        
        this.load = function() 
        {
                var embedTag = "<embed " + embedParams + "pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' ></embed>";
                var objTag = object + params + embedTag + "</object>";
                document.write(objTag);
        }
        
        this.debug=function()
        {
                var objTag = object + params + embedTag + "</object>";
                alert(objTag);
        }
}
        
        
//function nodrag(){
//alert("º¹»ç¹æÁö");
//return false
//}
//document.oncontextmenu=nodrag;
//document.onselectstart=nodrag;
//document.ondragstart=nodrag;
