var DHTML_SUITE_THEME_FOLDER = "includes/core/dhtml-suite-batur/themes/";
var DHTML_SUITE_THEME = 'blue';

var txtIndex = document.location.pathname;
if (document.location.hostname.indexOf('crackle01') != -1)
	txtIndex = '/Deafinite/www/index.php';
else if (document.location.hostname.indexOf('crackle-media.co.uk') != -1)
	txtIndex = '/test/deafinite/index.php';

function funInclude(txtFile)
{
	document.write('<'+'script');
	document.write(' language="javascript"');
	document.write(' type="text/javascript"');
	document.write(' src="'+txtFile+'">');
	document.write('</'+'script'+'>');
}

$(document).ready(function() {
	try
	{
		funPerPageLoad();
	}
	catch(err)
	{
	}
	
	funInitiateSupplierSlide();
	funInitialiseDialogs();
	funShowIntroMovie();
	
	preloader();
});

var intProductImage = 0;

function funProductImageSwap(num)
{
	var divRef1 = document.getElementById('product-image-'+num);
	var divRefThumb1 = document.getElementById('product-thumb-'+num);
	var divRef2 = document.getElementById('product-image-'+intProductImage);
	var divRefThumb2 = document.getElementById('product-thumb-'+intProductImage);
	
	divRef1.style.display = '';
	divRefThumb1.style.display = 'none';
	divRef2.style.display = 'none';
	divRefThumb2.style.display = 'inline';
	
	intProductImage = num;
}

function funProductImageLarge(imagePath,title,description)
{
	enlargerObj.displayImage(imagePath,title,description);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  var OptionWindow = window.open(theURL,winName,features);
  OptionWindow.focus();
}

function funShowGallery()
{
	var divRef = document.getElementById('gallery-area-backing');
	var divRef2 = document.getElementById('gallery-area');
	
	divRef.style.opacity = 0;
    divRef.style.MozOpacity = 0;
    divRef.style.filter = "alpha(opacity=0)";
    divRef.style.display = '';
    divRef.style.position = 'absolute';
    divRef.style.top = 0+'px';
    divRef.style.left = 0+'px';
    divRef.style.zIndex = 90000;
    divRef.style.width = funGetBrowserWidth() + 'px';
    if (document.body.clientHeight + 50 < funGetBrowserHeight)
    	divRef.style.height = document.body.clientHeight + 50 + 'px';
    else
    	divRef.style.height = '3000px';
    
    divRef2.style.zIndex = 90001;
    divRef2.style.display = '';
    funPositionCenter(divRef2.id);
   	divRef2.style.display = 'none';
    
   	funFadeIn('gallery-area-backing',0,5,10,'document.getElementById(\'gallery-area\').style.display=""; funPositionCenter(\'gallery-area\');');
}

function funHideGallery()
{
	var divRef = document.getElementById('gallery-area-backing');
	var divRef2 = document.getElementById('gallery-area');
	divRef.style.opacity = 1;
    divRef.style.MozOpacity = 1;
    divRef.style.filter = "alpha(opacity=100)";
    divRef.style.display = '';
    divRef.style.position = 'absolute';
    divRef.style.top = 0+'px';
    divRef.style.left = 0+'px';
    divRef.style.zIndex = 100000;
    divRef.style.width = funGetBrowserWidth() + 'px';
    divRef.style.height = document.body.clientHeight + 50 + 'px';
    
    divRef2.style.zIndex = 100001;
    divRef2.style.display = 'none';
    
   	funFadeOut('gallery-area-backing',80,5,10,'document.getElementById(\'gallery-area-backing\').style.display="none";');
}

function funFadeIn(id,opacity,fadeStep,fadeSpeed,callOnFinish)
{
	var i = 0;
	var a = 0;
	var multiplier = (document.all ? 2 : 1);
	
	var divRef = document.getElementById(id);
	callOnFinish = unescape(callOnFinish);
	
	divRef.style.opacity = (opacity / 100);
    divRef.style.MozOpacity = (opacity / 100);
    divRef.style.filter = "alpha(opacity=" + opacity + ")";
    
    opacity += (fadeStep * multiplier);
	
	if (opacity >= 100)
	{
		divRef.style.opacity = (opacity / 100);
	    divRef.style.MozOpacity = (opacity / 100);
	    divRef.style.filter = "alpha(opacity=" + opacity + ")";
		if (callOnFinish)
			eval(callOnFinish);
	}
	else
	{
		setTimeout('funFadeIn(\'' + id + '\','+ opacity +','+fadeStep+','+fadeSpeed+',\''+escape(callOnFinish)+'\')',(fadeSpeed / multiplier));
	}
}

function funFadeOut(id,opacity,fadeStep,fadeSpeed,callOnFinish)
{
	var i = 0;
	var a = 0;
	var multiplier = (document.all ? 2 : 1);
	
	var divRef = document.getElementById(id);
	callOnFinish = unescape(callOnFinish);
	
	divRef.style.opacity = (opacity / 100);
    divRef.style.MozOpacity = (opacity / 100);
    divRef.style.filter = "alpha(opacity=" + opacity + ")";
    
    opacity -= (fadeStep * multiplier);
	
	if (opacity <= 1)
	{
		if (callOnFinish)
			eval(callOnFinish);
	}
	else
	{
		setTimeout('funFadeOut(\'' + id + '\','+ opacity +','+fadeStep+','+fadeSpeed+',\''+escape(callOnFinish)+'\')',(fadeSpeed / multiplier));
	}
}

function funGetBrowserWidth()
{
	if(self.innerWidth)
		return self.innerWidth;
	
	return document.documentElement.offsetWidth;
}
	
function funGetBrowserHeight()
{
	if(self.innerHeight)
		return self.innerHeight;
	
	return document.documentElement.offsetHeight;
}

function funPositionCenter(id)
{
	var divRef = document.getElementById(id);
	
	divRef.style.position = 'absolute';
	
	var browserHeight = funGetBrowserHeight();
	var browserWidth = funGetBrowserWidth();
	var browserOffsetTop = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	
	intTop = ((browserHeight - divRef.offsetHeight)/2)+browserOffsetTop;
	if (intTop < 0)
		intTop=0;
	if (browserOffsetTop > intTop)
		intTop = browserOffsetTop;
	
	intLeft = ((browserWidth - divRef.offsetWidth)/2);
	if (intLeft < 0)
		intLeft=0;
	
	divRef.style.top = intTop+'px';
	divRef.style.left =  intLeft+ 'px';
}

function preloader() 
{
     // counter
     var i = 0;

     // create object
     imageObj = new Array;

	 
	 // set image list
    images = new Array();
	//images[0]="images/add-basket-button-over.jpg"
	
	 
     // start preloading
     for(i=0; i<images.length; i++) 
     {
     	  imageObj[i] = new Image();
          imageObj[i].src=images[i];
     }
} 

window.onresize = function() {
	if (document.getElementById('gallery-area-backing'))
	{
		if (document.getElementById('gallery-area').style.display == '')
		{
			var divRef = document.getElementById('gallery-area-backing');
		
			divRef.style.position = 'absolute';
	    	divRef.style.top = 0+'px';
		    divRef.style.left = 0+'px';
	    	divRef.style.width = funGetBrowserWidth() + 'px';
		    divRef.style.height = document.body.clientHeight + 50 + 'px';
		    
	    	funPositionCenter('gallery-area');
		}
	}
}

function displayMessage(url)
{	
	messageObj.setSource(url);
	messageObj.setCssClassMessageBox(false);
	messageObj.setSize(500,300);
	messageObj.setShadowDivVisible(true);	// Enable shadow for these boxes
	messageObj.display();
}

function displayMessageIframe(url,width,height)
{	
	messageObj.setHtmlContent('<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0"></iframe>');
	messageObj.setSize(width,height);
	messageObj.setShadowDivVisible(true);
	messageObj.display();
}

function closeMessage()
{
	messageObj.close();	
}

function aboutMessage(url)
{
	MM_openBrWindow(url,'aboutWin','width=950, height=150, scrollbars=yes');
}

function funURLEncode(txtValue)
{
	txtValue = encodeURIComponent(txtValue);
	
	return txtValue;
}

function funInitiateSupplierSlide()
{
	if (document.getElementById('supplier-slide'))
	{
		intItems = $('#supplier-slide-inner .supplier-slide-item').length;
		$('#supplier-slide-inner .supplier-slide-item:first').clone().appendTo('#supplier-slide-inner');
		$('#supplier-slide-inner .supplier-slide-item:nth-child(' + (intItems) + ')').clone().prependTo('#supplier-slide-inner');
		$('#supplier-slide-inner').css('width',(intItems+2)*$('.supplier-slide-item').width());
		intLeft = $('.supplier-slide-item').width();
		intLeft = intLeft - intLeft - intLeft;
		$('#supplier-slide-inner').css('left',intLeft);
	}
}

function funSupplierSlide()
{
	intWidth = $('.supplier-slide-item').width();
	intStart = parseInt($('#supplier-slide-inner').css('left'));
	intStart = intStart-intStart-intStart;
	intFinish = Math.ceil((intStart+intWidth)/intWidth)*intWidth;
	
	if (intFinish+intWidth >= $('#supplier-slide-inner').width())
	{
		$('#supplier-slide-inner').css('left',0);
		intFinish = intWidth;
	}
	
	$('#supplier-slide-inner').animate({left: (intFinish-intFinish-intFinish)},800);
}

var stageW = 374; //1024   590;
var stageH = 210; //576   380;

var flashvars = {};
var params = {};

var txtMovies = '';
var txtMoviesBaseURL = '';

/*function funShowMovie(txtLocation,txtBaseURL)
{
	flashvars = {};
	params = {};
	
	var arrMovie = txtLocation.split(',');
	
	params.bgcolor = "#ffffff";
	params.allowfullscreen = "true";
	
	// note if you use this line, there are issues in IE7 (Microsoft...)
	//params.wmode = "transparent";
	
	flashvars.stageW = stageW;
	flashvars.stageH = stageH;
	
	flashvars.imagePath = "";
	
	flashvars.autoStart = "true";
	flashvars.autoHide = "true";
	flashvars.autoHideTime = "3";
	flashvars.hideLogo = "true";
	flashvars.volAudio = "60";
	flashvars.disableMiddleButton = "false";
	flashvars.playSounds = "true";
	flashvars.soundBarColor = "0x0066FF";
	flashvars.barColor = "0x0066FF";
	flashvars.barShadowColor = "0x91BBFB";
	flashvars.subbarColor = "0xffffff";
	flashvars.extendVideo = "true";

	flashvars.videoPath = txtBaseURL + arrMovie[0];
	
	if (!document.getElementById('movie-player-df'))
	{
		$('<div>').attr('id','movie-player-df').css('display','none').appendTo('body');
		$('<div>').attr('id','movie-player-df-bg').css('display','none').css('backgroundColor','#000000').appendTo('body');
	}
	
	$('<div>').attr('id','movie-player-df-inner').appendTo('#movie-player-df');
	$('<a>').attr('id','movie-player-df-close').attr('href','#').attr('onclick','funHideMovie(); return false').appendTo('#movie-player-df');
	
	$('#movie-player-df').css('width',stageW).css('height',stageH);
	//alert(txtBaseURL + txtLocation);
	
	var divRef = document.getElementById('movie-player-df-bg');
	var divRef2 = document.getElementById('movie-player-df');
	
	divRef.style.opacity = 0;
    divRef.style.MozOpacity = 0;
    divRef.style.filter = "alpha(opacity=0)";
    divRef.style.display = '';
    divRef.style.position = 'absolute';
    divRef.style.top = 0+'px';
    divRef.style.left = 0+'px';
    divRef.style.zIndex = 90000;
    divRef.style.width = funGetBrowserWidth() + 'px';
    if (document.body.clientHeight + 50 < funGetBrowserHeight)
    	divRef.style.height = document.body.clientHeight + 50 + 'px';
    else
    	divRef.style.height = '3000px';
    
    divRef2.style.zIndex = 90001;
    divRef2.style.display = '';
    funPositionCenter(divRef2.id);
   	divRef2.style.display = 'none';
   	
   	$('#movie-player-df-bg').animate({opacity:0.8},800,function(){
   		$('#movie-player-df').show()
   		swfobject.embedSWF(txtBaseURL + "includes/core/flash/movie-player/flvPlayer.swf", "movie-player-df-inner", stageW, stageH, "9.0.0", txtBaseURL + "includes/core/flash/movie-player/js/expressInstall.swf", flashvars, params);
   	});
   	
   	arrMovie.shift();
   	txtMovies = arrMovie.toString();
   	txtMoviesBaseURL = txtBaseURL;
}

function funHideMovie()
{
	var divRef = document.getElementById('movie-player-df-bg');
	var divRef2 = document.getElementById('movie-player-df');
	divRef.style.opacity = 0.8;
    divRef.style.MozOpacity = 0.8;
    divRef.style.filter = "alpha(opacity=80)";
    divRef.style.display = '';
    divRef.style.position = 'absolute';
    divRef.style.top = 0+'px';
    divRef.style.left = 0+'px';
    divRef.style.zIndex = 100000;
    divRef.style.width = funGetBrowserWidth() + 'px';
    divRef.style.height = document.body.clientHeight + 50 + 'px';
    
    divRef2.style.zIndex = 100001;
    divRef2.style.display = 'none';
    divRef2.innerHTML = '';
    
   	$('#movie-player-df-bg').animate({opacity:0},800,function(){
   		$('#movie-player-df-bg').hide();
   	});
}

function funNextMovie()
{
	if (txtMovies.length < 1)
	{
		funHideMovie();
	}
	else
	{
		var divRef2 = document.getElementById('movie-player-df');
		divRef2.innerHTML = '';
    	
    	var arrMovie = txtMovies.split(',');
    	flashvars.videoPath = txtMoviesBaseURL + arrMovie[0];
    	
    	$('<div>').attr('id','movie-player-df-inner').appendTo('#movie-player-df');
		$('<a>').attr('id','movie-player-df-close').attr('href','#').attr('onclick','funHideMovie(); return false').appendTo('#movie-player-df');
		
		swfobject.embedSWF(txtMoviesBaseURL + "includes/core/flash/movie-player/flvPlayer.swf", "movie-player-df-inner", stageW, stageH, "9.0.0", txtMoviesBaseURL + "includes/core/flash/movie-player/js/expressInstall.swf", flashvars, params);
    	
		arrMovie.shift();
   		txtMovies = arrMovie.toString();
	}
}*/

function funShowMovie(txtLocation,txtBaseURL,intStaffID)
{
	flashvars = {};
	params = {};
	
	var arrMovie = txtLocation.split(',');
	
	params.bgcolor = "#ffffff";
	params.allowfullscreen = "true";
	
	// note if you use this line, there are issues in IE7 (Microsoft...)
	//params.wmode = "transparent";
	
	flashvars.stageW = stageW;
	flashvars.stageH = stageH;
	
	flashvars.imagePath = "";
	
	flashvars.autoStart = "true";
	flashvars.autoHide = "true";
	flashvars.autoHideTime = "1";
	flashvars.hideLogo = "true";
	flashvars.volAudio = "60";
	flashvars.disableMiddleButton = "false";
	flashvars.playSounds = "false";
	flashvars.soundBarColor = "0x0066FF";
	flashvars.barColor = "0x0066FF";
	flashvars.barShadowColor = "0x91BBFB";
	flashvars.subbarColor = "0xffffff";
	flashvars.extendVideo = "true";

	flashvars.videoPath = txtBaseURL + arrMovie[0];
	
	if (!document.getElementById('movie-player-df'))
		$('<div>').attr('id','movie-player-df').css('display','none').appendTo('#feature-strip');
	
	if (intStaffID)
	{
		if ($('movie-player-df').parent().attr('id') != 'StaffMovie'+intStaffID)
			$('#StaffMovie'+intStaffID).append($('#movie-player-df'));
	}
	else
	{
		if ($('movie-player-df').parent().attr('id') != 'feature-strip')
			$('#feature-strip').append($('#movie-player-df'));
	}
	
	$('<div>').attr('id','movie-player-df-inner').appendTo('#movie-player-df');
	$('<a>').attr('id','movie-player-df-close').attr('href','#').attr('onclick','funHideMovie(); return false').appendTo('#movie-player-df');
	
	if (intStaffID)
		$('#movie-player-df').css('width',stageW).css('height',stageH).css('position','absolute').css('zIndex',200).css('right','-400px').css('top','-30px');
	else
		$('#movie-player-df').css('width',stageW).css('height',stageH).css('position','absolute').css('zIndex',200).css('right','-35px').css('bottom','0px');
	//alert(txtBaseURL + txtLocation);
	
	$('#movie-player-df').show();
   	swfobject.embedSWF(txtBaseURL + "includes/core/flash/movie-player/flvPlayer.swf", "movie-player-df-inner", stageW, stageH, "9.0.0", txtBaseURL + "includes/core/flash/movie-player/js/expressInstall.swf", flashvars, params);
   	
   	arrMovie.shift();
   	txtMovies = arrMovie.toString();
   	txtMoviesBaseURL = txtBaseURL;
}

function funHideMovie()
{
	$('#movie-player-df').hide().html('');
}

function funNextMovie()
{
	if (txtMovies.length < 1)
	{
		funHideMovie();
	}
	else
	{
		$('#movie-player-df').html('');
		
    	var arrMovie = txtMovies.split(',');
    	flashvars.videoPath = txtMoviesBaseURL + arrMovie[0];
    	
    	$('<div>').attr('id','movie-player-df-inner').appendTo('#movie-player-df');
		$('<a>').attr('id','movie-player-df-close').attr('href','#').attr('onclick','funHideMovie(); return false').appendTo('#movie-player-df');
		
		swfobject.embedSWF(txtMoviesBaseURL + "includes/core/flash/movie-player/flvPlayer.swf", "movie-player-df-inner", stageW, stageH, "9.0.0", txtMoviesBaseURL + "includes/core/flash/movie-player/js/expressInstall.swf", flashvars, params);
    	
		arrMovie.shift();
   		txtMovies = arrMovie.toString();
	}
}

function funInitialiseDialogs()
{
	$('#mailing-list-dialog').dialog({
			autoOpen: false,
			height: 300,
			width: 280,
			modal: true,
			buttons: {
				'Add To Mailing List': function() {
					var txtError = '';
					var txtForm = 'frmMailingListDialog';
					if ($('#'+txtForm+'Name').val() == '' || $('#'+txtForm+'Name').val() == 'Your Name')
						txtError = 'Please enter your name';
					else if ($('#'+txtForm+'EmailAddress').val() == '' || $('#'+txtForm+'EmailAddress').val() == 'Your Email Address')
						txtError = 'Please enter your email address';
					
					if (txtError != '')
					{
						$(this).dialog('option','height',280);
						$('#mailing-list-dialog .validateTips').text(txtError).attr('style','').addClass('ui-state-error');
					}
					else
					{
						$.ajax({
							url: txtIndex,
							cache: false,
							data: $('#frmMailingListDialog').serialize(),
							success: function(txtResponse) {
								if (txtResponse == 'OK')
								{
									$('#mailing-list-dialog-thank').dialog('open');
									$('#mailing-list-dialog').dialog('close');
								}
								else
								{
									$(this).dialog('option','height',300);
									$('#mailing-list-dialog .validateTips').text('There was a problem adding you to the mailing list. Please try again.').attr('style','').addClass('ui-state-error');
								}
							},
							error: function() {
								$(this).dialog('option','height',300);
								$('#mailing-list-dialog .validateTips').text('There was a problem adding you to the mailing list. Please try again.').attr('style','').addClass('ui-state-error');
							}
						});
					}
				},'Cancel': function() {
					$(this).dialog('close');
				}
			},
			open: function() {
				$('#mailing-list-dialog .validateTips').attr('style','display:none').removeClass('ui-state-error');
				$(this).dialog('option','height',250);
				$('#frmMailingListDialogName').focus().blur();
			}
		});
	$("#mailing-list-dialog-thank").dialog({
			autoOpen: false,
			resizable: false,
			height:250,
			width:300,
			modal: true,
			buttons: {
				'Close': function() {
					$(this).dialog('close');
				}
			}
		});
	
	
	$("#callback-dialog").dialog({
			autoOpen: false,
			resizable: false,
			height:375,
			width:300,
			modal: true,
			buttons: {
				'Request Call Back': function() {
					var txtForm = 'frmCallbackDialog';
					var txtName = $('#'+txtForm+'Name').val();
					var txtTel = $('#'+txtForm+'Phone').val();
					var txtDetail = $('#'+txtForm+'Details').val();
					
					if (txtDetail == 'Any details / comments')
						$('#'+txtForm+'Details').val('');
					
					var txtError = '';
					if (txtName == '' || txtName == 'Your Name')
						txtError = 'Please enter your name';
					else if (txtTel == '' || txtTel == 'Telephone Number')
						txtError = 'Please enter your telephone number';
					
					if (txtError != '')
					{
						$('#callback-dialog .validateTips').text(txtError).addClass('ui-state-error');
					}
					else
					{
						$.ajax({
							url: txtIndex,
							cache: false,
							data: $('#frmCallbackDialog').serialize(),
							success: function(txtResponse) {
								if (txtResponse == 'OK')
								{
									$('#callback-dialog-thank').dialog('open');
									$('#callback-dialog').dialog('close');
								}
								else
								{
									$('#callback-dialog .validateTips').text('There was a problem requesting your call back. Please try again.').addClass('ui-state-error');
								}
							},
							error: function() {
								$('#callback-dialog .validateTips').text('There was a problem requesting your call back. Please try again.').addClass('ui-state-error');
							}
						});
					}
				},
				'Cancel': function() {
					$(this).dialog('close');
				}
			},
			open: function() {
				$('#callback-dialog .validateTips').text($(this).data('dvt')).removeClass('ui-state-error');
				$('#frmCallbackDialogName').focus().blur();
			}
		});
	$("#callback-dialog").data('dvt',$('#callback-dialog .validateTips').text());
	$("#callback-dialog-thank").dialog({
			autoOpen: false,
			resizable: false,
			height:250,
			width:300,
			modal: true,
			buttons: {
				'Close': function() {
					$(this).dialog('close');
				}
			}
		});
}

var calendarObjForForm = new DHTMLSuite.calendar({minuteDropDownInterval:5,numberOfRowsInHourDropDown:5,callbackFunctionOnDayClick:'getDateFromCalendar',callbackFunctionOnClose:'getDateFromCalendarOnClose',isDragable:true,displayTimeBar:true}); 

function pickDate(buttonObj,inputObject)
{
	calendarObjForForm.setCalendarPositionByHTMLElement(inputObject,0,inputObject.offsetHeight+2);	// Position the calendar right below the form input
	calendarObjForForm.setInitialDateFromInput(inputObject,'dd/mm/yyyy hh:ii');	// Specify that the calendar should set it's initial date from the value of the input field.
	calendarObjForForm.addHtmlElementReference('myDate',inputObject);	// Adding a reference to this element so that I can pick it up in the getDateFromCalendar below(myInput is a unique key)
	if(calendarObjForForm.isVisible()){
		calendarObjForForm.hide();
	}else{
		calendarObjForForm.resetViewDisplayedMonth();	// This line resets the view back to the inital display, i.e. it displays the inital month and not the month it displayed the last time it was open.
		calendarObjForForm.display();
	}		
}

function getDateFromCalendar(inputArray)
{
	/* inputArray is an associative array with the properties
	year
	month
	day
	hour
	minute
	calendarRef - Reference to the DHTMLSuite.calendar object.
	*/
	var references = calendarObjForForm.getHtmlElementReferences(); // Get back reference to form field.
	references.myDate.value = inputArray.day + '/' + inputArray.month + '/' + inputArray.year + ' ' + inputArray.hour + ':' + inputArray.minute;
	calendarObjForForm.hide();	
}

function getDateFromCalendarOnClose(inputArray)
{
	/* inputArray is an associative array with the properties
	year
	month
	day
	hour
	minute
	calendarRef - Reference to the DHTMLSuite.calendar object.
	*/
	var references = calendarObjForForm.getHtmlElementReferences(); // Get back reference to form field.
	if (references.myDate.value != '')
	references.myDate.value = inputArray.day + '/' + inputArray.month + '/' + inputArray.year + ' ' + inputArray.hour + ':' + inputArray.minute;
}

function funShowIntroMovie()
{
	if (document.getElementById('feature-strip-video'))
	{
		txtVideo = $('#feature-strip-video').attr('vsrc');
		txtVBaseURL = $('#feature-strip-video').attr('burl');
		
		if (txtVideo.length > 0)
		{
			flashvars = {};
			params = {};
						
			params.bgcolor = "#ffffff";
			params.allowfullscreen = "false";
			
			// note if you use this line, there are issues in IE7 (Microsoft...)
			params.wmode = "transparent";
			
			flashvars.movie_location = txtVBaseURL + txtVideo;
			
			$('<div>').attr('id','movie-player-intro').appendTo('#feature-strip-video');
			
			swfobject.embedSWF(txtVBaseURL + "includes/site/core/flash/intro-movie-player.swf", "movie-player-intro", 374, 210, "9.0.0", txtVBaseURL + "includes/core/flash/movie-player/js/expressInstall.swf", flashvars, params);
		}
	}
}
