// AK Artist Manaement JavaScript Document


	//---- Video ---
	
	
	//-- Remote URL path, please enter your custom video location in the "" space. --
	
	
	
	//-----------------------------------------------------------------------------
	
var objlaunch = new Object;

var VIDEOLOCATION = "mms://video23.usp.net/tfa/"

//function.openwin(aCommand)  {


objlaunch.openwin = function(aCommand) {	 


	var objVIDEO		= new Object;
	
	objVIDEO.movieWidth 					= 320;
	objVIDEO.movieHeight					= 285;
	objVIDEO.movieObjectName 				= "AKAManagementMediaPlayer";
	objVIDEO.autoStart 						= "true";		
	objVIDEO.ShowControls					= "true";
	

	aCommand = VIDEOLOCATION + aCommand + ".wmv";
	//	alert(aCommand);	
	objlaunch.OpenWindow=window.open('about:blank',"_blank", "height=420,width=480,toolbar=no" );
	objlaunch.OpenWindow.document.write("<HTML><HEAD>");
	objlaunch.OpenWindow.document.write("<TITLE>AK Artist Management</TITLE><BODY BGCOLOR='#000000'>");

	objlaunch.OpenWindow.document.write("<div align='center'>");


	strHTML = "";
	//strHTML += ("<p align='center'>");
	strHTML += ("<BR><BR>");
	//strHTML += ("<EMBED WIDTH='320' HEIGHT='285' SRC='" + aCommand + "' align='center'></EMBED>");


	autoStart = "True";
	
 if(objBrowser.ie){
	strHTML += ("<OBJECT ID='wmpocx' ");
	strHTML += ("classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95'");
	strHTML += ("TYPE='application/x-oleobject'");
	strHTML += (" WIDTH='" + objVIDEO.movieWidth + "'");
	strHTML += (" HEIGHT='" + objVIDEO.movieHeight + "'");
	strHTML += (">");
	strHTML += ("<param name='filename' value='" + aCommand + "'>");
	strHTML += ("<param name='Showcontrols' value='" + objVIDEO.ShowControls + "'>");
	strHTML += ("<param name='autoStart' value='" + objVIDEO.autoStart + "'>");				
	//alert("ie");
 }else{
		//start firefox/netscape code
	strHTML += ("<EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'");
	strHTML += (" src=" + aCommand);
	strHTML += (" width=" + objVIDEO.movieWidth);
	strHTML += (" height=" + objVIDEO.movieHeight);			
	strHTML += (" displaysize='3' ");
	strHTML += (" utosize='0' ");
	strHTML += (" bgcolor='black' ");
	strHTML += (" autostart='" + autoStart + "' ");
	strHTML += (" ShowControls='"+ objVIDEO.ShowControls + "' ");	
	strHTML += ("></EMBED>");
	//end firefox/netscape code
	//alert("other");
 }

	strHTML += ("</OBJECT>");
	
	

	strHTML += ("<BR>");
	//strHTML += ("<button name='BCloseWndw' onclick='window.close()' style='width: 315; height: 26'>Close </button>");
	strHTML += ("</div>");


	objlaunch.OpenWindow.document.write(strHTML);
	
	

	objlaunch.OpenWindow.document.write("<BR><BR>");
	//objlaunch.OpenWindow.document.write("<button name='BCloseWndw' onclick='window.close()' style='width: 315; height: 26'>Close </button>");
	objlaunch.OpenWindow.document.write("</p>");


	
	

	objlaunch.OpenWindow.document.write("</BODY></HTML>");
	objlaunch.OpenWindow.document.close();

}
//-----------------------------------------------------------------------------


//-----------------------------------------------------------------------------
function closewin() {
myAlert("closewin()");
window.close();
}
//-----------------------------------------------------------------------------


objlaunch.openLink = function(afCommand) {
	
//function openLink(afCommand) {
//	alert (afCommand)
//	afCommand ="print\Module 2\Richmond\PSHE - citizenship - Citizenship Foundation.doc"
	objlaunch.OpenWindow=window.open(afCommand,"_blank");

}

objlaunch.ToGalLink = function(ablCommand) {
		//alert(ablCommand);
		var baklink  = ablCommand
		location = "../gallery/"+ablCommand;
		
		
}



//objlaunch.BakGalLink = function(ablCommand) {
	function BakGalLink(baklink){
		//alert(location.href);
		currentLocation = location.href
		vchar = currentLocation.lastIndexOf("?");
		//alert(vchar);
		vLetter = currentLocation.slice(vchar+1,currentLocation.length)
		//alert(vLetter);
		location = "../clients/" + vLetter+".htm";
}


objlaunch.ToPrintLink = function(apdfCommand) {
		//alert(apdfCommand);
		var vlocation = "../print/"+apdfCommand;
		//alert(vlocation);
		objlaunch.OpenWindow=window.open(vlocation,"File",'locationbar=no,resizable=yes,statusbar=no,menubar=yes,toolbar=no');
}