function loadflash(src,width,height)
{   
	if(arguments && src)
	{
	    // -----------------------------------------------------------------------------
	    // Globals
	    // Major version of Flash required
	    var requiredMajorVersion = 8;
	    // Minor version of Flash required
	    var requiredMinorVersion = 0;
	    // Minor version of Flash required
	    var requiredRevision = 0;
	    // -----------------------------------------------------------------------------
	
	    // Version check based upon the values entered above in "Globals"
	    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	    // Check to see if the version meets the requirements for playback
	    if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
			    "src", src,
			    "width", width,
			    "height", height,
			    "id", "sunset",
			    "quality", "high",
			    "name", "sunset",
			    "wmode", "transparent",
			    "allowScriptAccess","sameDomain",
			    "type", "application/x-shockwave-flash",
			    'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
			    "pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	    } else {    // flash is too old or we can't detect the plugin
			//    var alternateContent = 'Alternate HTML content should be placed here.<BR>'
			//    + 'This content requires the Adobe Flash Player. '
			//    + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
			//    document.write(alternateContent);  // insert non-flash content
	    }
	}
}




function loadflash2(src,width,height,flvpath,autoplay)
{   
	if(arguments && src)
	{
	    // -----------------------------------------------------------------------------
	    // Globals
	    // Major version of Flash required
	    var requiredMajorVersion = 8;
	    // Minor version of Flash required
	    var requiredMinorVersion = 0;
	    // Minor version of Flash required
	    var requiredRevision = 0;
	    // -----------------------------------------------------------------------------
	
	    // Version check based upon the values entered above in "Globals"
	    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	    // Check to see if the version meets the requirements for playback
	    if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
			    "src", src,
			    "width", width,
			    "height", parseInt(height)+21,
			    "FlashVars", "autoPlayVideo=" + autoplay + "&flvpath=" + flvpath + "&videoHeight=" + height,
			    "id", "sunset",
			    "quality", "high",
			    "name", "sunset",
			    "wmode", "transparent",
			    "allowScriptAccess","sameDomain",
			    "type", "application/x-shockwave-flash",
			    'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
			    "pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	    } else {    // flash is too old or we can't detect the plugin
		    var alternateContent = '<div style="padding:10px; margin:5px; border: 2px solid #ff0000; background-color:#ffcccc; color:#ff0000; text-align:center;">'
		    + 'This content requires the latest version of Adobe Flash Player.<br /> '
		    + '<a href=http://www.adobe.com/go/getflash/ target="_blank">Download Flash</a>'
		    + '</div>';
		    document.write(alternateContent);  // insert non-flash content
	    }
	}
}


function loadcallout(src,width,height,clicktag)
{   
	if(arguments && src)
	{
	    // -----------------------------------------------------------------------------
	    // Globals
	    // Major version of Flash required
	    var requiredMajorVersion = 8;
	    // Minor version of Flash required
	    var requiredMinorVersion = 0;
	    // Minor version of Flash required
	    var requiredRevision = 0;
	    // -----------------------------------------------------------------------------
	
	    // Version check based upon the values entered above in "Globals"
	    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	    // Check to see if the version meets the requirements for playback
	    if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
			    "src", src,
			    "width", width,
			    "height", height,
			    "FlashVars", "clickTAG=" + clicktag,
			    "id", "sunset",
			    "quality", "high",
			    "name", "sunset",
			    "wmode", "transparent",
			    "allowScriptAccess","sameDomain",
			    "type", "application/x-shockwave-flash",
			    'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
			    "pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	    } else {    
		    // flash is too old or we can't detect the plugin
		    var alternateContent = '<div style="padding:10px; margin:5px; border: 2px solid #ff0000; background-color:#ffcccc; color:#ff0000; text-align:center;">'
		    + 'This content requires the latest version of Adobe Flash Player.<br /> '
		    + '<a href=http://www.adobe.com/go/getflash/ target="_blank">Download Flash</a>'
		    + '</div>';
		    document.write(alternateContent);  // insert non-flash content
	    }
	}
}

function videoOpen(flvPath,width,height) {
	var play_video = window.open("http://www.tandberg.com/media/video.jsp?flvPath=" + flvPath + "&width=" + width + "&height=" + height,null,"height=" + (height + 70) + ",width=" + (width + 30) + ",status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
}
