// JavaScript Document

		
		function playMp3(str) {
flashvar = thisMovie('test');
flashvar.SetVariable("_root.mp3src",str);
flashvar.SetVariable("playit", 1);
}



function thisMovie(movieName) {
return (navigator.appName.indexOf('Microsoft')!=-1) ? document.getElementById(movieName) : document.getElementById(movieName).getElementsByTagName("embed")[0];
}


function idget(){
var DivGen = document.getElementById('hidden');
validate(DivGen);
}
function validate(DivGen){
if(DivGen.style.display=='none'){
DivGen.style.display=''} else {
DivGen.style.display='none'
}}


	
	function viewCategory(a){
	
	    if (a == -1)
			window.location = "phrases.cfm";
		else
			window.location = "phrases.cfm?newCategoryShowed=" + a + '&sortBy=' + 28;
	}
	
//b=type
function openPopupWindow(itemID,b){
	
		self.name = "Parent_Window";
		
	   window.open('http://www.instantspeakchinese.com/ca/features/item/itemPhrase.cfm?type=' + b + '&item=' + itemID, "_blank",
"height=300,width=620,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
       
	}
        
	
	
		function openPopupWindow2(itemID){
	
		self.name = "Parent_Window";
		
	   window.open('http://www.instantspeakchinese.com/ca/features/item/itemPinyin.cfm?word=' + itemID, "_blank",
"height=150,width=325,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
        }
        
			function openPopupWindow3(word){
	
	   self.name = "Parent_Window";
		
	   winRef = window.open('http://www.instantspeakchinese.com/ca/features/item/item.cfm?word=' + word, "mywindowPronounce", "height=150,width=325,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
	   
	   winRef.focus();

        }
	  