<!-- Begin VIDEO VIEWER OPTIONS CODE

// CHANGE ANY OF THESE VARIABLES FOR THE IMAGE VIEWER

//  use only lowercase on options





// GALLERY VIEWER OPTIONS



var message="You may not right mouse click this page.";
if (navigator.appName == 'Microsoft Internet Explorer'){
function NOclickIE(e) {
if (event.button == 2 || event.button == 3) {
alert(message);
return false;
}
return true;
}
document.onmousedown=NOclickIE;
document.onmouseup=NOclickIE;
window.onmousedown=NOclickIE;
window.onmouseup=NOclickIE;
}
else {
function NOclickNN(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}}}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=NOclickNN; }
document.oncontextmenu=new Function("alert(message);return false")
}


function isValid(str) //check if file exist on server
{	var O = AJ();
	if(!O) return false;
	
	try
	{	O.open("HEAD",str,false);
		O.send(null);
		return(O.status==200) ? true : false;
		}
	catch(er)
	{	
		return false;
		}
}

function AJ() 
{	var obj;
	if(window.XMLHttpRequest)
	{
		obj = new XMLHttpRequest();
		}
	else if(window.ActiveXObject)
	{
		try
		{
			obj = new ActiveXObject('MSXML2.XMLHTTP.3.0');
			}
		catch(er)
		{
			obj = false;
			}
		}
	return obj;	
}


var viewer 		= "new"	// OPTIONS: | new |  same | New browser or a same





function ViewQuickTime(data) {


   if (viewer == "same") {
    windowHandle = window.open('quicktime-viewer.htm' + '?' + data,'windowName');
	}


else if (viewer == "new") {
    windowHandle = window.open('quicktime-viewer.htm' + '?' + data,'windowName2');
	}

}




function ViewWindowsMedia(data) {


   if (viewer == "same") {
    windowHandle = window.open('winmedia-viewer.htm' + '?' + data,'windowName');
	}


else if (viewer == "new") {
    windowHandle = window.open('winmedia-viewer.htm' + '?' + data,'windowName2');
	}

}



function ViewSWF(data) {
	
  // if(data.search('flv') >-1) {data = '../flv/'+data;}		

  // if(!isValid(data)) return; //check if file exist	
    
   //viewer = "same";
   if (viewer == "same") {
    windowHandle = window.open('gallery_pages/swf-viewer.htm' + '?htm='  + data,'windowName','fullscreen=yes');
	//windowHandle = window.open('swf-viewer.htm' + '?' + data,'windowName','left=0,top=0,width='+w+',height='+h+'');
	}


else if (viewer == "new") {
	var w = screen.width;
	var h = screen.height;
	windowHandle = window.open('gallery_pages/swf-viewer.htm' + '?htm='  + data,'windowName3','left=0,top=0,width='+w+',height='+h+'');
    
	}

}



// End -->