
	function fncLoadVideo(strDiv,strPath,strType,strId1,strId2){
	
		if ( $("#"+strDiv).length > 0 ){

			$("#"+strDiv).remove();
		}
		
		var intHoogte 	=  $("#"+strDiv+"Holder").height();
		var intBreedte	=  $("#"+strDiv+"Holder").width();			
		
		$("#"+strDiv+"Holder").append("<div id=\""+strDiv+"\" style=\"height:"+intHoogte+"px;width:"+intBreedte+"px;\"></div>");
		$("#"+strDiv+"Holder").css('display','block');
		
		var arrVars 				= {};
								
		var arrParams 				= {};

		arrParams.scale 			= "noscale";	
		arrParams.wmode 			= "transparent";	
		arrParams.allowFullScreen 	= "true";
		arrParams.AllowScriptAccess = "always";
								
		var arrAttributes 			= {};
		
		if( strType != '' && strId1 != '' ){
		
			if( strType == "youtube" ){
			
				swfobject.embedSWF("http://www.youtube.com/v/"+strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
									
			} else if( strType == "google" ){
						
				swfobject.embedSWF("http://video.google.com/googleplayer.swf?docId="+strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
	
			} else if( strType == "myvideo" ){
						
				swfobject.embedSWF("http://www.myvideo.nl/movie/"+strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);		
	
			} else if( strType == "myspace" ){
						
				swfobject.embedSWF("http://mediaservices.myspace.com/services/media/embed.aspx/m="+strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);		
			
			} else if( strType == "dailymotion" ){
				
				swfobject.embedSWF("http://www.dailymotion.com/swf/"+strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
	
			} else if( strType == "clipfish" ){
	
				swfobject.embedSWF("http://www.clipfish.de/cfng/flash/clipfish_player_3.swf?as=0&vid="+strId1+"&r=1&area=e&c=990000", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
	
			} else if( strType == "sevenload" ){
	
				arrVars.configPath	 	= "http%3A%2F%2Fflash.sevenload.com%2Fplayer%3FportalId%3Den%26autoplay%3D0%26mute%3D0%26itemId%3D"+strId1+"&locale=en_US&autoplay=0&environment=";	
				
				swfobject.embedSWF("http://static.sevenload.com/swf/player/player.swf?v=142", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);	
				
			} else if( strType == "metacafe" ){
	
				swfobject.embedSWF("http://www.metacafe.com/fplayer/" + strId1 + ".swf", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);	
				
			} else if( strType == "vimeo" ){
	
				swfobject.embedSWF("http://vimeo.com/moogaloop.swf?clip_id=" + strId1 + "&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);					
	
			} else if( strType == "yahoo" ){
				
				arrVars.id 				= strId2;	
				arrVars.vid 			= strId1;	
				arrVars.lang 			= "en-us";		
				arrVars.intl 			= "us";	
				arrVars.embed 			= "1";					

				swfobject.embedSWF("http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.46", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);				
				
			} else if( strType == "veoh" ){
	
				swfobject.embedSWF("http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.3.1017&permalinkId=" + strId1 + "&player=videodetailsembedded&videoAutoPlay=0&id=anonymous", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);				
				
			} else if( strType == "livevideo" ){
					
				swfobject.embedSWF("http://www.livevideo.com/flvplayer/embed/" + strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
				
			} else if( strType == "revver" ){

				arrVars.mediaId			= strId1;		
				arrVars.width 			= intBreedte;		
				arrVars.height 			= intHoogte;						
				
				swfobject.embedSWF("http://flash.revver.com/player/1.0/player.swf?r=revver"+strId1+"12569227569459384", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);	
	
			} else if( strType == "videu" ){
	
				swfobject.embedSWF("http://www.videu.de/flv/player2.swf?iid=" + strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
				
			} else if( strType == "liveleak" ){
	
				swfobject.embedSWF("http://www.liveleak.com/e/" + strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
				
			} else if( strType == "spike" ){
					
				arrVars.flvbaseclip 	= strId1;
				
				swfobject.embedSWF("http://www.spike.com/efp", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);		
	
			} else if( strType == "megavideo" ){
	
				arrVars.flvbaseclip 	= strId1;	
				
				swfobject.embedSWF("http://www.megavideo.com/v/" + strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
	
			} else if( strType == "nos" ){
				
				swfobject.embedSWF("http://player.nos.nl/nos/media/flash/nos_video_embed.swf?tcmid=" + strId1, strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);
			
			} else if( strType == "flv" ){
			
				arrVars.strVideo		= strId2;
				arrVars.blnAutoPlay		= 'false';
				arrVars.intWidth		= intBreedte;
				arrVars.intHeight		= intHoogte-30;
				 
				arrParams.wmode 		= "opaque";	 
				 
				swfobject.embedSWF(strPath+"swf/video.swf", strDiv, intBreedte, intHoogte, "9.0.0",strPath+"swf/expressInstall.swf", arrVars, arrParams, arrAttributes);	

			} else if( strType == "mov" || strType == 'mp4' ){
					
				$('#'+strDiv).html("<object width='"+intBreedte+"' height='"+intHoogte+"' classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' autoplay='false' codebase='http://www.apple.com/qtactivex/qtplugin.cab'><param name='src' value='"+strId2+"'><param name='autoplay' value='false'><embed src='"+strId2+"' width='"+intBreedte+"' height='"+intHoogte+"' autoplay='false' pluginspage='http://www.apple.com/quicktime/download/'></embed></object>");
   	
			} else if( strType == "wmv" ){					
					
				$('#'+strDiv).html("<object width='"+intBreedte+"' height='"+intHoogte+"' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id='MediaPlayer' standby='Loading Windows Media Player components...' type='application/x-oleobject'><param name='FileName' value='"+strId2+"'><param name='autostart' value='false'><param name='ShowControls' value='true'><param name='ShowStatusBar' value='false'><param name='ShowDisplay' value='false'><embed type='application/x-mplayer2' src='"+strId2+"' name='MediaPlayer' width='"+intBreedte+"' height='"+intHoogte+"' ShowControls='1' ShowStatusBar='0' ShowDisplay='0' autostart='0'></embed></object>");	

			}	 			

		} 

	}
