// external_script.js
function CreateControl(DivID, CLSID, ObjectID,
                       WIDTH, HEIGHT, URL, TRANS)
{
	//alert("ok");
  //var d = document.getElementById(DivID);
  DivID.innerHTML = 
    '<object classid=' + CLSID + ' id=' + ObjectID + ' width=' + WIDTH + ' height=' + HEIGHT +'>'+
	'<param name="movie" value="' + URL + '">'+
	'<param name="wmode" value='+TRANS+'>'+
    '<embed src="'+URL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"'+
    'type="application/x-shockwave-flash"  width=' + WIDTH + ' height=' + HEIGHT +' wmode='+TRANS+'></embed>';

}

function CreateControlU(DivID, WIDTH, HEIGHT, URL, TRANS)
{
	alert("ok");
  //var d = document.getElementById(DivID);
  /*<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/96LG6O3K7VA"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/96LG6O3K7VA" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>*/

  DivID.innerHTML = 
    '<object width=' + WIDTH + ' height=' + HEIGHT +'>'+
	'<param name="movie" value="' + URL + '"></param>'+
	'<param name="wmode" value='+TRANS+'>'+
    '<embed src="'+URL+'" type="application/x-shockwave-flash" width=' + WIDTH + ' height=' + HEIGHT +' wmode='+TRANS+'></embed></object>';

}

function CreateControl1(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, TRANS)
{
//	alert(DivID);
  //var d = document.getElementById(DivID);

 document.getElementById(DivID).innerHTML =
 '<object classid=' + CLSID + ' id=' + ObjectID + ' width=' + WIDTH + ' height=' + HEIGHT +'>'+
	'<param name="movie" value="' + URL + '">'+
	'<param name="wmode" value='+TRANS+'>'+
    '<embed src="'+URL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"'+
    'type="application/x-shockwave-flash"  width=' + WIDTH + ' height=' + HEIGHT +' wmode='+TRANS+'></embed>';
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
var message="Function Disabled!";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
//alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
//alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

//document.oncontextmenu=new Function("return false");
