
function shadowBoxFlashLaunchHT(ht_type) {
	var hotlink_code = new String($('#hotlink_code').attr('href'));
			if(hotlink_code != "#"){
				hotlink_stored = hotlink_code;
			}
		switch(ht_type){
			case '#ht_implant_v1':
			presentation_link = "http://products.pbhs.com/human_touch/dental_implants/index.html";
			presentation_width = 810;
			presentation_height = 412;
			break;
			case '#ht_implant_v2':
			presentation_link = "http://products.pbhs.com/human_touch/dental_implants_V02"+hotlink_stored+"HT_Implant.html";
			presentation_width = 810;
			presentation_height = 510;
			break;
			case '#ht_implant_v2_lrg':
			presentation_link = "http://products.pbhs.com/human_touch/dental_implants_V02"+hotlink_stored+"HT_Implant_V02_Larger.html";
			presentation_width = 1000;
			presentation_height = 800;
			break;
			case '#ht_cosmetic_v2':
			presentation_link = "http://products.pbhs.com/human_touch/cosmetic"+hotlink_stored+"HT_Cosmetic.html";
			presentation_width = 810;
			presentation_height = 510;
			break;
			case '#ht_wisdom_v1':
			presentation_link = "http://products.pbhs.com/human_touch/wisdom_teeth/index.html";
			presentation_width = 810;
			presentation_height = 412;
			break;
			case '#ht_wisdom_v2':
			presentation_link = "http://products.pbhs.com/human_touch/wisdom_teeth_V02"+hotlink_stored+"HT_Wisdom.html";
			presentation_width = 810;
			presentation_height = 510;
			break;
			case '#ht_orthognathic_v1':
			presentation_link = "http://products.pbhs.com/human_touch/orthognathics/index.html";
			presentation_width = 810;
			presentation_height = 412;
			break;
			case '#ht_endo_v1':
			presentation_link = "http://products.pbhs.com/human_touch/endodontics/index.html";
			presentation_width = 810;
			presentation_height = 412;
			break;
			case '#ht_perio_v1':
			presentation_link = "http://products.pbhs.com/human_touch/periodontics/index.html";
			presentation_width = 810;
			presentation_height = 412;
			break;
		}
		$('#hotlink_code').attr({ href: "#"});
		Shadowbox.open({content: presentation_link,
					   player: "iframe",
					   title: "",
					   animate:true,
					   width: presentation_width,
					   height: presentation_height});
}





function shadowBoxFlashLaunch(sb_url,sb_player,sb_title,sb_width,sb_height) {
	if(sb_player == 'undefined'){
		sb_player = "iframe";
	}
	Shadowbox.open({content: sb_url,
					   player: sb_player,
					   title: sb_title,
					   animate:true,
					   width: Number(sb_width),
					   height: Number(sb_height)});
}


$(document).ready(function(){
						   
		$('#ht_implant_v1').click(function() {
			presentation_link = "http://products.pbhs.com/human_touch/dental_implants/index.html";
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 412});
   			});
		
		
		$('#ht_implant_v2').click(function() {
			var hotlink_code = new String($(this).attr('href'));
			if(hotlink_code != "#"){
				hotlink_stored = hotlink_code;
			}
			presentation_link = "http://products.pbhs.com/human_touch/dental_implants_V02"+hotlink_stored+"HT_Implant.html";
			$(this).attr("href", "#");
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 510});
   			});
		
		$('#ht_implant_v2_lrg').click(function() {
			var hotlink_code = new String($(this).attr('href'));
			if(hotlink_code != "#"){
				hotlink_stored = hotlink_code;
			}
			presentation_link = "http://products.pbhs.com/human_touch/dental_implants_V02"+hotlink_stored+"HT_Implant_V02_Larger.html";
			$(this).attr("href", "#");
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 1000,
						   height: 800});
			
   			});
		
		$('#ht_perio_v1').click(function() {
			presentation_link = "http://products.pbhs.com/human_touch/periodontics/index.html";
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 412});
   			});
		
		$('#ht_endo_v1').click(function() {
			presentation_link = "http://products.pbhs.com/human_touch/endodontics/index.html";
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 412});
   			});
		
		$('#ht_orthognathic_v1').click(function() {
			presentation_link = "http://products.pbhs.com/human_touch/orthognathics/index.html";
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 412});
   			});
		
		$('#ht_wisdom_v1').click(function() {
			presentation_link = "http://products.pbhs.com/human_touch/wisdom_teeth/index.html";
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 412});
   			});
		
		
		$('#ht_wisdom_v2').click(function() {
			var hotlink_code = new String($(this).attr('href'));
			if(hotlink_code != "#"){
				hotlink_stored = hotlink_code;
			}
			presentation_link = "http://products.pbhs.com/human_touch/wisdom_teeth_V02"+hotlink_stored+"HT_Wisdom.html";
			$(this).attr("href", "#");
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 510});
   			});
		

		$('#ht_cosmetic_v2').click(function() {
			var hotlink_code = new String($(this).attr('href'));
			if(hotlink_code != "#"){
				hotlink_stored = hotlink_code;
			}
			presentation_link = "http://products.pbhs.com/human_touch/cosmetic"+hotlink_stored+"HT_Cosmetic.html";
			$(this).attr("href", "#");
			Shadowbox.open({content: presentation_link,
						   player: "iframe",
						   title: "",
						   animate:true,
						   width: 810,
						   height: 510});
   			});
			
	/* oms procedural images */
	
	$('#proc_sinuslift').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/sinus_lift.swf',
					  width: '222px',
					  height: '147px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_sleepapnea').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/pbhs_apnea.swf',
					  width: '234px',
					  height: '310px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_impactedcanine').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/impacted_canine.swf',
					  width: '480px',
					  height: '350px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_bonegrafting').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/pbhs_bonegrafting_v6.swf',
					  width: '234px',
					  height: '310px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_orthog').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/pbhs_orthog.swf',
					  width: '234px',
					  height: '310px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_tmj').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/pbhs_tmj_v6.swf',
					  width: '234px',
					  height: '310px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_wisdom').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/pbhs_wisdom_v6.swf',
					  width: '234px',
					  height: '310px',
					  flashvars: {}
					},
					{ version: 8, update: false }
					 );
	$('#proc_implant').flash(
					{ 
					  src: 'http://products.pbhs.com/_procedural-oms/pbhs_implant2v6.swf',
					  width: '234px',
					  height: '310px',
					  flashvars: {}
					},
					{ version: 8, update: false }
	);

});