<!--
	// change vid function
	function changeVideo(clip,desc){
	if(clip.charAt(clip.length-1)=='v'){
		var type='movie'
		var icon='icon-television.gif'
	}else{
		var type='ipx'
		var icon='icon-picture.gif'
	}
	var strMov = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0" width="480" height="336">'
        strMov += '<param name="movie" value="flash/video.swf?vid=' + clip + '" />'
        strMov += '<param name="quality" value="high" />'
		strMov += '<embed src="flash/video.swf?vid=' + clip + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="336"></embed>'
        strMov += '</object>'
	var strIpx = '<applet code="IpixViewer.class" codebase="java_plugin/files/" name="vidPlayer" width="480" height="336" align="bottom" archive="IpixViewer.jar" id="vidPlayer">'
    	strIpx += '<param name="URL" value="images/ipx/'+clip+'" />'
    	strIpx += '<param name="Warp" value="1" />'
    	strIpx += '<param name="Toolbar" value="off" />'
    	strIpx += '<param name="SpinSpeed" value="-5" />'
    	strIpx += '<param name="SpinStyle" value="flat" />'
    	strIpx += '<param name="BackgroundColor" value="#3D3F3E" />'
    	strIpx += '<param name="HelpURL" value="help/viewalways_java3_2/index.html" /></applet>'
	var descsription = '<span id="icon"><img src="images/'+icon+'" width="16" height="16" /></span><h2>'+desc+'</h2>'
		if(type=="movie"){
			// its a movie now check the browser
			if(document.layers){
				//NN4+
      	 		document.layers["playerChanger"].innerHTML = strMov;
    		}else if(document.getElementById){
	  			//gecko(NN6) + IE 5+
        		document.getElementById("playerChanger").innerHTML = strMov;
    		}else if(document.all){
				// IE 4
        		document.all["playerChanger"].innerHTML = strMov;
    		}
		}else if(type=="ipx"){
			if(document.layers){
				//NN4+
      	 		document.layers["playerChanger"].innerHTML = strIpx;
			}else if(document.getElementById){
				//gecko(NN6) + IE 5+
        		document.getElementById("playerChanger").innerHTML = strIpx;
    		}else if(document.all){
				// IE 4
        		document.all["playerChanger"].innerHTML = strIpx;
    		}
		}
		if(document.layers){
				//NN4+
      	 		document.layers["description"].innerHTML = descsription;
			}else if(document.getElementById){
				//gecko(NN6) + IE 5+
        		document.getElementById("description").innerHTML = descsription;
    		}else if(document.all){
				// IE 4
        		document.all["description"].innerHTML = descsription;
    		}
	}
	function changeText(page){
	new ajax ('page.php', {postBody: 'page='+page, update: $('contentText'), onComplete: myFunction(page)});

};
function getThumbs(type){
	if(type=='slideshow'){
		strCode = '<div id="flash"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="480" height="336">            <param name="movie" value="flash/slideshow.swf">            <param name="quality" value="high">            <embed src="flash/slideshow.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="336"></embed> </object></div>';
			if(document.layers){
				//NN4+
      	 		document.layers["playerChanger"].innerHTML = strCode;
			}else if(document.getElementById){
				//gecko(NN6) + IE 5+
        		document.getElementById("playerChanger").innerHTML = strCode;
    		}else if(document.all){
				// IE 4
        		document.all["playerChanger"].innerHTML = strCode;
    		}
		var page = type+'.cfm'
		new ajax (page, {postBody: 'page='+type, update: $('thumbnails'), onComplete: myFunction()});
	}else{
		var page = type+'.cfm'
		new ajax (page, {postBody: 'page='+type, update: $('thumbnails'), onComplete: myFunction()});
	}
	function myFunction(){
	};
}
function mediaContent(type,code){
	if(type=='video'){
		var strCode = '<div id="flash"><object id="vidPlayer" width="480" height="336" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject">'
        	strCode += '<param name="FileName" value="asx.cfm?ml='+ code +'" /><param name="autostart" value="1" /><param name="loop" value="1" />'
        	strCode += '<param name="showcontrols" value="1" />'
			strCode += '<embed type="application/x-mplayer2" src="asx.cfm?ml='+ code +'" width="480" height="336" autostart="1" showcontrols="1" loop="1"></embed>'
        	strCode += '</object></div>'
		if(document.layers){
				//NN4+
      	 		document.layers["playerChanger"].innerHTML = strCode;
			}else if(document.getElementById){
				//gecko(NN6) + IE 5+
        		document.getElementById("playerChanger").innerHTML = strCode;
    		}else if(document.all){
				// IE 4
        		document.all["playerChanger"].innerHTML = strCode;
    		}
	}else if(type=='ipx'){
		var strCode = '<div id="flash"><applet code="IpixViewer.class" codebase="java_plugin/files/" name="vidPlayer" width="480" height="336" align="bottom" archive="IpixViewer.jar" id="vidPlayer"><param name="URL" value="'+code+'" />'
        	strCode += '<param name="Warp" value="1" /><param name="Toolbar" value="yes" />'
        	strCode += '<param name="SpinSpeed" value="-5" /><param name="SpinStyle" value="flat" /><param name="BackgroundColor" value="#3D3F3E" /><param name="HelpURL" value="help/viewalways_java3_2/index.html" /></applet>'
        	strCode += '</div>'
		if(document.layers){
				//NN4+
      	 		document.layers["playerChanger"].innerHTML = strCode;
			}else if(document.getElementById){
				//gecko(NN6) + IE 5+
        		document.getElementById("playerChanger").innerHTML = strCode;
    		}else if(document.all){
				// IE 4
        		document.all["playerChanger"].innerHTML = strCode;
    		}
	}else if(type=='360'){
		new ajax ('360player.cfm', {postBody: 'code='+code, update: $('playerChanger'), onComplete: myDoneFunction()});
		}
		function myDoneFunction(){

		};
};
function changePage(page,lang){
	new ajax ('txt'+page+'.cfm', {postBody: 'page='+page+'&langcode='+lang, update: $('pagetext'), onComplete: myPlaceFunction()});
			function myPlaceFunction(){
		};
};
//-->