function ShowMe(product_id, language_id, show_id, show_file_type_id){
	var wintop;
	var winheight;
	var winleft;
	var winwidth;
	
	switch (show_file_type_id){
	case 1 : //How-To SWF
			if(screen.width > 800){
				winheight = 600;
				winwidth = 800;

				wintop = (screen.height/2) - (winheight/2)
				if(wintop < 0) wintop = 0;

				winleft = (screen.width/2) - (winwidth/2)
				if(winleft < 0) winleft = 0;

				window.open('play_howto_swf.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=no');
			}else{
	     		//window.open('play_howto_swf.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','fullscreen=yes, scrollbars=no');
				window.open('play_howto_swf.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','height=600,width=800,top=0,left=0, scrollbars=no');
				
			}
		
			break

		case 2 : //How-To WMV
			if(screen.width > 800){
				winheight = 600;
				winwidth = 800;

				wintop = (screen.height/2) - (winheight/2)
				if(wintop < 0) wintop = 0;

				winleft = (screen.width/2) - (winwidth/2)
				if(winleft < 0) winleft = 0;

				window.open('play_howto_wmv.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=no');
			}else{
				//window.open('play_howto_wmv.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','fullscreen=yes, scrollbars=no');
				window.open('play_howto_wmv.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','height=600,width=800,top=0,left=0, scrollbars=no');
			}

			break

		case 3 : //How-To SNT
		
			if((navigator.family == 'gecko') || (navigator.family == 'ie4' && navigator.version >= 6)){   
				frames['ie_playsnt'].location.href = 'play_howto_snt.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
			} else if(navigator.family == 'ie4' && navigator.version < 6){
				document.all.ie_playsnt.src = 'play_howto_snt.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
			} else if(navigator.family == 'nn4'){
				document.layers["netscape_playsnt"].src = 'play_howto_snt.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
			} else {
				alert('Internet Explorer 4.0+ or Netscape 4.0+ are required to view this content.');
			}
		
			break

		default : //Unhandled
			alert('Unhandled Show File Type');
	}
	
}

function CompanionText(product_id, language_id, show_id){
	var wintop;
	var winheight;
	var winleft;
	var winwidth;

	winheight = 500;
	winwidth = 600;

	wintop = (screen.height/2) - (winheight/2)
	if(wintop < 0) wintop = 0;

	winleft = (screen.width/2) - (winwidth/2)
	if(winleft < 0) winleft = 0;

	window.open('companion.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'CompanionText','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=yes');
}

function HelpAFriend(product_id, language_id, show_id){
	var wintop;
	var winheight;
	var winleft;
	var winwidth;

	winheight = 500;
	winwidth = 600;

	wintop = (screen.height/2) - (winheight/2)
	if(wintop < 0) wintop = 0;

	winleft = (screen.width/2) - (winwidth/2)
	if(winleft < 0) winleft = 0;

	window.open('helpafriend.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'HelpAFriend','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=yes');
}

function SendTopic(category_id,topic_id){
	var wintop;
	var winheight;
	var winleft;
	var winwidth;

	winheight = 500;
	winwidth = 600;

	wintop = (screen.height/2) - (winheight/2)
	if(wintop < 0) wintop = 0;

	winleft = (screen.width/2) - (winwidth/2)
	if(winleft < 0) winleft = 0;

	window.open('sendtopic.asp?caegory_id=' + category_id + '&topic_id=' + topic_id,'SendTopic','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=yes');
}

function FAQ(product_id, language_id, show_id){
	if((navigator.family == 'gecko') || (navigator.family == 'ie4' && navigator.version >= 6)){   
		frames['ie_playsnt'].location.href = 'tag_faq.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
	} else if(navigator.family == 'ie4' && navigator.version < 6){
		document.all.ie_playsnt.src = 'tag_faq.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
	} else if(navigator.family == 'nn4'){
		document.layers["netscape_playsnt"].src = 'tag_faq.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
	}
}

function FAQ_Remove(product_id, language_id, show_id){
	if (confirm('Click OK to remove this FAQ, or Cancel'))
		 {  
		 if((navigator.family == 'gecko') || (navigator.family == 'ie4' && navigator.version >= 6)){   
		   frames['ie_playsnt'].location.href = 'tag_faq.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id + '&remove=yes';
		} else if(navigator.family == 'ie4' && navigator.version < 6){
			document.all.ie_playsnt.src = 'tag_faq.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id + '&remove=yes';
		} else if(navigator.family == 'nn4'){
			document.layers["netscape_playsnt"].src = 'tag_faq.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id + '&remove=yes';
		}
	}
}

function Tag_SolutionSender(product_id, language_id, show_id)
{
	//top.frames.tagged.location.href = 'solutionsender_tagged.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
	top.frames.tagged.document.sendForm.action = 'solutionsender_tagged.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id ;
	top.frames.tagged.document.sendForm.submit();
}
 
 function HistoryTag_SolutionSender(product_id, language_id, show_id)
 {
	//opener.top.frames.tagged.location.href='solutionsender_tagged.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
	opener.top.frames.tagged.document.sendForm.action = 'solutionsender_tagged.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id ;
	opener.top.frames.tagged.document.sendForm.submit();
 }
 
 function Tag_TopicBuilder(product_id, language_id, show_id)
{
	
	//top.frames.tagged.location.href = 'topicbuilder_tagged.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
	top.frames.tagged.document.sendForm.action = 'topicbuilder_tagged.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id ;
	top.frames.tagged.document.sendForm.submit();
}

 function Edit_TopicBuilder(topic_id)
 {
	opener.top.frames.tagged.location.href='topicbuilder_tagged.asp?mode=edit&action=view&topic_id=' + topic_id;
}
function Copy_TopicBuilder(topic_id)
 {
	opener.top.frames.tagged.location.href='topicbuilder_tagged.asp?mode=new&action=copy&topic_id=' + topic_id;
}

 function DeleteTag_TopicBuilder(product_id, language_id, show_id)
{
	if (confirm('Click OK to delete this topic, or Cancel'))
	{  
	//alert ('Test delete');
	top.frames.tagged.document.sendForm.action = 'topicbuilder_tagged.asp?action=delete&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id ;
	top.frames.tagged.document.sendForm.submit();
	}	
}

function Topic_CompanionText(topic_id,product_id, language_id, show_id){
	var wintop;
	var winheight;
	var winleft;
	var winwidth;

	winheight = 500;
	winwidth = 600;

	wintop = (screen.height/2) - (winheight/2)
	if(wintop < 0) wintop = 0;

	winleft = (screen.width/2) - (winwidth/2)
	if(winleft < 0) winleft = 0;

	window.open('topiclibrary_companion.asp?topic_id=' +topic_id + '&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'CompanionText','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=yes');
	history.go(0);
}

function Topic_ShowMe(topic_id,product_id, language_id, show_id, show_file_type_id){
	var wintop;
	var winheight;
	var winleft;
	var winwidth;
	
	switch (show_file_type_id){
		case 1 : //How-To SWF
			if(screen.width > 800){
				winheight = 600;
				winwidth = 800;

				wintop = (screen.height/2) - (winheight/2)
				if(wintop < 0) wintop = 0;

				winleft = (screen.width/2) - (winwidth/2)
				if(winleft < 0) winleft = 0;

				window.open('play_howto_swf.asp?topic_id=' +topic_id + '&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=no');
			}else{
				window.open('play_howto_swf.asp?topic_id=' +topic_id + '&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','fullscreen=yes, scrollbars=no');
			}
		
			break

		case 2 : //How-To WMV
			if(screen.width > 800){
				winheight = 600;
				winwidth = 800;

				wintop = (screen.height/2) - (winheight/2)
				if(wintop < 0) wintop = 0;

				winleft = (screen.width/2) - (winwidth/2)
				if(winleft < 0) winleft = 0;

				window.open('play_howto_wmv.asp?topic_id=' +topic_id + '&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','height=' + winheight + ',width=' + winwidth + ',top=' + wintop + ',left=' + winleft + ',scrollbars=no');
			}else{
				window.open('play_howto_wmv.asp?topic_id=' +topic_id + '&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id,'ShowMe','fullscreen=yes, scrollbars=no');
			}

			break

		case 3 : //How-To SNT
			if((navigator.family == 'gecko') || (navigator.family == 'ie4' && navigator.version >= 6)){   
				frames['ie_playsnt'].location.href = 'play_howto_snt.asp?product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
			} else if(navigator.family == 'ie4' && navigator.version < 6){
				document.all.ie_playsnt.src = 'play_howto_snt.asp?topic_id=' +topic_id + '&product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
			} else if(navigator.family == 'nn4'){
				document.layers["netscape_playsnt"].src = 'play_howto_snt.asp?topic_id=' &topic_id + '=product_id=' + product_id + '_' + language_id + '&show_id=' + show_id;
			} else {
				alert('Internet Explorer 4.0+ or Netscape 4.0+ are required to view this content.');
			}

			break

		default : //Unhandled
			alert('Unhandled Show File Type');
	}
	history.go(0);
}