<!-- Begin VIEWER OPTIONS AND OTHER CODE

// CHANGE ANY OF THESE VARIABLES

// use only lowercase on options



// GALLERY VIEWER OPTIONS

var viewer 		= "same"	// OPTIONS: | new | popup | same | New browser or a popup
var width 		= "800"		// WIDTH OF THE POPUP
var height 		= "625"		// 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

var right_click_on	= "yes"		// RIGHT CLICK PROTECTION ON
var block_imagebar	= "yes"		// BLOCK WINDOWS IMAGE TOOL BAR
var right_click_text	= "You may not right mouse click this page."	// RIGHT CLICK TEXT


// MUSIC FRAME OPTIONS

var FrameType 		= "1"		// MUSIC FRAME TYPE 1 OR 2 - TYPE 2 OPENS HOMEPAGE IN FRAME

// 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) {
   if (viewer == "popup") {
    windowHandle = window.open('image-viewer.htm' + '?' + data,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');

}
else if (viewer == "new") {
    windowHandle = window.open('image-viewer.htm' + '?' + data,'windowName');
}
else if (viewer == "same") {
    window.location = ('image-viewer.htm' + '?' + data);
}
}

// END IMAGE VIEW CODE


// MUSIC FRAME CODE

function OpenSoundFrame (){

if (FrameType == "1") {
	top.location.href = "sound_frame/soundFRAME.htm" + "?" + window.location.href; 
	}
else if (FrameType == "2") {
	top.location.href = "sound_frame/soundFRAME-NOSCRIPT.htm"; 
	}
    }

function AutoSoundFrame (){
	top.location.href = "sound_frame/soundFRAME-AUTOSTART.htm"; 
	}

// End -->



// RIGHT CLICK PROTECTION


if (right_click_on == "yes") {
var message=right_click_text;
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")
}
}



// End -->
