function InsertSampleMovie() {
        document.write('<OBJECT name="movie" id="movie" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" height=295 width=357 classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B>');
        document.write('<PARAM NAME="controller" VALUE="TRUE">');
        document.write('<PARAM NAME="type" VALUE="video/quicktime">');
        document.write('<PARAM NAME="autoplay" VALUE="true">');
        document.write('<PARAM NAME="loop" VALUE="false">');
        document.write('<PARAM NAME="src" VALUE="http://www.videoportal.es:8080/uploadmovies/sample_100kbit.mov">');
        document.write('<PARAM NAME="qtsrc" VALUE="rtsp://www.videoportal.es/Press/070304_Reportaje_TPA.mov">');
        //document.write('<PARAM NAME="media_src" VALUE="rtsp://www.videoportal.es/Press/070304_Reportaje_TPA.mov">');
        document.write('<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">');
        document.write('<EMBED WIDTH="355" HEIGHT="293" AUTOPLAY="TRUE" CONTROLLER="TRUE" LOOP="false" SRC="http://www.videoportal.es:8080/uploadmovies/sample_100kbit.mov" QTSRC="rtsp://www.videoportal.es/Press/070304_Reportaje_TPA.mov" type="video/quicktime" BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html">');
	//MEDIA_SRC="rtsp://www.videoportal.es/Press/070304_Reportaje_TPA.mov"
	document.write('</EMBED>');
        document.write('</OBJECT>');
}
var version = "";

function Version() {
	if (navigator.plugins && navigator.plugins.length) {
		for (i=0; i < navigator.plugins.length; i++ ) { 
			if (navigator.plugins[i].name.indexOf("QuickTime") >= 0) { 
				haveqt = true;
				array = navigator.plugins[i].name.split(" ");
				version = array[2];
			}
		}
	} else {
		version = document.movie.GetQuickTimeVersion();
	}
	if(version.substring(0,1) != 7)
		changeObjectVisibility("div_aviso","visible");
	
}

function changeObjectVisibility(objectId, newVisibility) {
    // first get the object's stylesheet
    var styleObject = getStyleObject(objectId);

    // then if we find a stylesheet, set its visibility
    // as requested
    //
    if (styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	return false;
    }
}

function getStyleObject(objectId) {
  // checkW3C DOM, then MSIE 4, then NN 4.
  //
  if(document.getElementById && document.getElementById(objectId)) {
	return document.getElementById(objectId).style;
   }
   else if (document.all && document.all(objectId)) {  
	return document.all(objectId).style;
   } 
   else if (document.layers && document.layers[objectId]) { 
	return document.layers[objectId];
   } else {
	return false;
   }
}
