var interior
function initFlash(flashVars){

	FlashControl.createSWFObject(
	
		"videoPlayer.swf?flvpath=data/uploads/" + flashVars,
		{
			width:"265",
			height:"153",
			bgcolor:"#ffffff",
			wmode:"transparent",
			quality:"high",
			align:"left",
			salign:"t",
			allowScriptAccess:"sameDomain",
			id:"GTPlayer"

		},
		"vidplayer",
		{
			detectFlash:true,
			flashVersion:8,
			detectResolution:false,
			onError:errorHandlerVideo
		}
	)

	
}
function errorHandlerVideo(err,erros){
	//alert("error")
	var wrapper = document.getElementById("vidplayer")
	var noFlashIMG = 'noflash.jpg'
	var _html=""
	switch (err){
		case "invalidFlash":
			
			var _html = '<div id="noflash_wrapper">'					
			_html += '<a target="_new" href="http://www.adobe.com/products/flashplayer/"><img src="data/htmlimages/NoFlashSmall.jpg" alt="" /></a>'
			
			
			_html += '</div>'
			
			wrapper.innerHTML = _html
			
		break;
	}
}


//THIS IS FOR THE NEW LARGE BREKENRIDGE PLAYER
function close_brek_vid(){
	document.getElementById('dom_holder_video').style.display="none";
	document.getElementById('dom_wrapper_video').style.display="none";
	document.getElementById('dom_video').innerHTML="";
	document.getElementById("flash_header").style.display = "block"
}
function close_index_vid(){
	clear_homepage_smal_slideshowDIV('2');
	document.getElementById('dom_holder_video').style.display="none";
	document.getElementById('dom_wrapper_video').style.display="none";
	document.getElementById('dom_video').innerHTML="";
	document.getElementById("flash_header").style.display = "block"
}
function clear_homepage_smal_slideshowDIV(thetype){
	//for some reason on Mac browser the homepage sliideshow div plays over the video div.. so I will clear it and replay it when the video is closed.
	
	if (thetype=='1'){ //clear div
		document.getElementById('videogallery').innerHTML="";
	}else{
		displayHomeSlideShow();
	}
	
}
function initFlash_homevideo(flashVars){
	clear_homepage_smal_slideshowDIV('1');
	document.getElementById('dom_holder_video').style.display="block";
	document.getElementById('dom_wrapper_video').style.display="block";

	FlashControl.createSWFObject(
	
		"videoPlayerBig.swf?flvpath=data/uploads/" + flashVars,
		{
			width:"640",
			height:"440",
			bgcolor:"#ffffff",
			wmode:"transparent",
			zindex:"20000",
			quality:"high",
			align:"left",
			salign:"t",
			allowScriptAccess:"sameDomain",
			id:"brekvid"

		},
		"dom_video",
		{
			detectFlash:true,
			flashVersion:8,
			detectResolution:false,
			onError:errorHandlerVideo_brek
		}
	)
	document.getElementById("flash_header").style.display = "none"
	
}
function initFlash_brek(flashVars){
	document.getElementById('dom_holder_video').style.display="block";
	document.getElementById('dom_wrapper_video').style.display="block";

	FlashControl.createSWFObject(
	
		"videoPlayerBig.swf?flvpath=data/uploads/" + flashVars,
		{
			width:"640",
			height:"440",
			bgcolor:"#ffffff",
			wmode:"transparent",
			zindex:"20000",
			quality:"high",
			align:"left",
			salign:"t",
			allowScriptAccess:"sameDomain",
			id:"brekvid"

		},
		"dom_video",
		{
			detectFlash:true,
			flashVersion:8,
			detectResolution:false,
			onError:errorHandlerVideo_brek
		}
	)
	document.getElementById("flash_header").style.display = "none"

	
}
function errorHandlerVideo_brek(err,erros){
	//alert("error")
	var wrapper = document.getElementById("dom_video")
	var noFlashIMG = 'noflash.jpg'
	var _html=""
	switch (err){
		case "invalidFlash":
			
			var _html = '<div id="noflash_wrapper">'					
			_html += '<a target="_new" href="http://www.adobe.com/products/flashplayer/"><img src="data/htmlimages/NoFlashSmall.jpg" alt="" /></a>'
			
			
			_html += '</div>'
			
			wrapper.innerHTML = _html
			
		break;
	}
}
	
