<!-- Begin VIEWER OPTIONS CODE

// CHANGE ANY OF THESE VARIABLES FOR THE IMAGE VIEWER

//  use only lowercase on options



// GALLERY VIEWER OPTIONS

var viewer 		= "popup"	// OPTIONS: | new | popup | same | New browser or a popup
var width 		= "900"		// WIDTH OF THE POPUP 
var height 		= "645"		// HEIGHT OF THE POPUP 
var scrollbars		= "yes"		// SHOW SCROLLBARS IN POPUP - yes OR no
var menu		= "no"		// SHOW MENU IN POPUP - yes OR no
var tool		= "no"		// SHOW TOOLBAR IN POPUP - yes OR no


// SLIDESHOW OPTIONS

var slideshow_width 	= "800"		// SLIDESHOW POPUP WINDOW WIDTH
var slideshow_height 	= "600"		// SLIDESHOW POPUP WINDOW HEIGHT
var scrollbarS 		= "0"		// TURN ON POPUP SCROLLBARS "1" FOR ON "0" FOR OFF
var viewerslide	 	= "no"		// yes/FULL SCREEN OR no/POPUP MODE



// CLIENT PAGE VIEWER OPTIONS

var viewerclient	= "popup"	// OPTIONS: | new | popup | same | New browser or a popup
var widthCL		= "750"		// WIDTH OF THE POPUP
var heightCL 		= "400"		// HEIGHT OF THE POPUP
var scrollbarsCL	= "yes"		// SHOW SCROLLBARS IN POPUP - yes OR no
var menuCL		= "no"		// SHOW MENU IN POPUP - yes OR no
var toolCL		= "no"		// SHOW TOOLBAR IN POPUP - yes OR no





// COPYRIGHT 2008 © Allwebco Design Corporation
// Unauthorized use or sale of this script is strictly prohibited by law

// YOU DO NOT NEED TO EDIT BELOW THIS LINE






// START IMAGE VIEW CODE

function ViewImage(data) {

	viewer = "popup";
   if (viewer == "popup") {
		var winl = 0;
		var wint = 0;
		 
		if (navigator.appName == 'Netscape' || navigator.appVersion.indexOf("MSIE 8.0")!=-1) {
			height = screen.height;
			width  = screen.width ;
			}
		else{	
			height = screen.availheight;
			width  = screen.availwidth ;
		}
		
		height = height * .93;
				
		if(height > 800){ 
			height = height * .93;
			winl = (screen.width-width)/2; 
			}
		if(width > 800){ width = width * .9
			winl = (screen.width-width)/2; 
			}
		
    windowHandle = window.open('/gallery_pages/image-viewer.htm' + '?' + data ,'windowName','position=1,scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+',top='+wint+',left='+winl+'');

	

}
else if (viewer == "new") {
	
    windowHandle = window.open('/gallery_pages/image-viewer.htm' +  '?' + data ,'windowName');
}
else if (viewer == "same") {
    window.location = ('/gallery_pages/image-viewer.htm' +  '?' +  data ,'windowName2');
}
}

// END IMAGE VIEW CODE
















// START QUICKTIME CLIENTS VIEW CODE

function ViewClientsQT(data) {
   if (viewerclient == "popup") {
    windowHandle = window.open('client_videos/quicktime-viewerCL.htm' + '?' + data,'windowName',',scrollbars='+scrollbarsCL+',resizable=yes,toolbar='+toolCL+',menubar='+menuCL+',width='+widthCL+',height='+heightCL+'');

}
else if (viewerclient == "new") {
    windowHandle = window.open('client_videos/quicktime-viewerCL.htm' + '?' + data,'windowName');
}
else if (viewerclient == "same") {
    window.location = ('client_videos/quicktime-viewerCL.htm' + '?' + data);
}
}

// END QUICKTIME CLIENTS VIEW CODE






// START WINDOWS CLIENTS VIEW CODE

function ViewClientsWM(data,page) {
   if (viewerclient == "popup") {
	   
	    var winl = (screen.width-widthCL)/2; 
		var wint = (screen.height-heightCL)/2;  
    windowHandle = window.open('client_videos/'+ page + '?data=' + data,'windowName',',scrollbars='+scrollbarsCL+',resizable=yes,toolbar='+toolCL+',menubar='+menuCL+',width='+widthCL+',height='+heightCL+',top='+wint+',left='+winl+'');

}
else if (viewerclient == "new") {
    windowHandle = window.open('client_videos/'+ page + '?data' + data,'windowName');
}
else if (viewerclient == "same") {
    window.location = ('client_videos/winmedia-viewerCL.htm' + '?data' + data);
}
}

// END WINDOWS CLIENTS VIEW CODE











function popUpSlideshow(URL) {

day = new Date();
id = day.getTime();

   if (viewerslide == "no") {
	    var winl = 0;
		var wint = 0;
		
		if (navigator.appName == 'Netscape' || navigator.appVersion.indexOf("MSIE 8.0")!=-1)  {
			slideshow_height = screen.height;
			slideshow_width  = screen.width ;
			}
		else{	
			slideshow_height = screen.availheight;
			slideshow_width  = screen.availwidth ;
		}
		
		slideshow_height = slideshow_height * .93;
				
		if(slideshow_height > 800){ 
			slideshow_height = slideshow_height * .93;
			winl = (screen.width-slideshow_width)/2; 
			}
		if(width > 800){ 
			slideshow_width = slideshow_width * .95
			winl = (screen.width-slideshow_width)/2; 
			}
		//alert(winl);

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars='+scrollbarS+',location=0,statusbar=0,menubar=0,resizable=1,top='+wint+',left='+winl+',width='+slideshow_width+',height='+slideshow_height+'');");



//windowHandle = window.open(URL, 'windowName', 'toolbar=0,fullscreen=yes,scrollbars='+scrollbarS+',location=0,statusbar=0,menubar=0,resizable=1');

}
else 
if (viewerslide == "yes") {
eval("page" + id + " = window.open(URL);");
}
}


function popUpVideo(URL) {

day = new Date();
id = day.getTime();

   if (viewerslide == "no") {
	    var winl = 0;
		var wint = 0;
		
		if (navigator.appName == 'Netscape' || navigator.appVersion.indexOf("MSIE 8.0")!=-1) {
			slideshow_height = screen.height;
			slideshow_width  = screen.width ;
			}
		else{	
			slideshow_height = screen.availheight;
			slideshow_width  = screen.availwidth ;
		}
		
		
		//slideshow_height = slideshow_height * .93;
				
		if(slideshow_height > 800){ 
			//slideshow_height = slideshow_height * .93;
			winl = (screen.width-slideshow_width)/2; 
			}
		if(width > 800){ 
			slideshow_width = slideshow_width * .95
			winl = (screen.width-slideshow_width)/2; 
			}
		//alert(winl);

eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars='+scrollbarS+',maximize=1,location=0,statusbar=0,menubar=0,resizable=1,top='+wint+',left='+winl+',width='+slideshow_width+',height='+slideshow_height+'');");



//windowHandle = window.open(URL, 'windowName', 'toolbar=0,fullscreen=yes,scrollbars='+scrollbarS+',location=0,statusbar=0,menubar=0,resizable=1');

}
else 
if (viewerslide == "yes") {
eval("page" + id + " = window.open(URL);");
}
}









// Begin SMALL MESSAGES


document.write('<div Class="divstyle" id="info" style=\'display:none;\'>')
document.write('<div id="imagetitle" class="pstyletitle" align="center"></div>')
document.write('</div>')


var IE = document.all?true:false

if (!IE) document.captureEvents(Event.MOUSEMOVE)

document.onmousemove = getMouseXY;

var tempX = 0
var tempY = 0

  
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
	tempX = event.clientX + window.document.documentElement.scrollLeft;
    tempY = event.clientY + window.document.documentElement.scrollTop;
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.clientX + window.pageXOffset;
    tempY = e.clientY + window.pageYOffset;
  }  
  	
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  obj_info = document.getElementById("info")
  if (IE) { 
  obj_info.style.top = tempY + 10;
  obj_info.style.left = tempX + 10;
  } else{
   	var x = tempX + 20;
	var y = tempY + 20; 
	
	obj_info.style.top = y + "px";
    obj_info.style.left = x + "px";
  }
  return true
}

function alert_msg(titletext){
obj_info = document.getElementById("info")
obj_info.style.display = '';
obj_imagetitle = document.getElementById("imagetitle");
obj_imagetitle.innerHTML = titletext;
}

function away()
{
obj_info = document.getElementById("info")
obj_info.style.display = 'none';
}


function goToURL() { history.go(-1); }


function soundInfo() {
	
		var win= null; 
		mypage = "soundinfo.htm";	
		myname = "windowName";
		if (IE) w = '400'
		else w = '450'
		h = '220';
		var winl = (screen.width-w)/2; 
		var wint = (screen.height-h)/2; 
		var settings ='height='+h+','; 
		settings +='width='+w+','; 
		settings +='top='+wint+','; 
		settings +='left='+winl+','; 
		settings +='scrollbars=no,'; 
		settings +='resizable=yes'; 
		win=window.open(mypage,myname,settings); 
		if(parseInt(navigator.appVersion) >= 4){win.window.focus();} 
	
  //  windowHandle = window.open('soundinfo.htm','windowName',		'position=1,scrollbars=no,resizable=no,toolbar=no,menubar=no,width=450,height=220');
//windowHandle.focus();

}




// End -->