﻿<!-- Begin VIEWER OPTIONS CODE

// CHANGE ANY OF THESE VARIABLES FOR THE IMAGE VIEWER

//  use only lowercase on options


var welcome_width	= "700"		// WELCOME POPUP WIDTH
var welcome_height	= "380"		// WELCOME POPUP HEIGHT
var scrollbar_welcome	= "no"		// WELCOME POPUP SCROLLBARS
var menu_welcome	= "yes"		// SHOW MENU IN MESSAGE POPUP
var wX_location		= "350"		// WELCOME HORIZONTAL LOCATION
var wY_location		= "0"		// WELCOME VERTICAL LOCATION
var welcome_viewer 	= "no"		// MESSAGE - yes/FULL SCREEN OR no/POPUP MODE


var right_click_on	= "no"		// 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


// COPYRIGHT 2011 ? SMAC Tech inc
// Unauthorized use or sale of this script is strictly prohibited by law

// YOU DO NOT NEED TO EDIT BELOW THIS LINE


// WELCOME POPUP CODE


function WelCome(URL) {

day = new Date();
id = 'messagepopup';
   if (welcome_viewer == "no") {
eval("page" + id + " = window.open(URL, '" + id + "', 'scrollbars='+scrollbar_welcome+',toolbar=no,resizable=yes,directories=no,menubar='+menu_welcome+',location=no,status=no,left='+wX_location+',top='+wY_location+',width=' + welcome_width + ',height=' + welcome_height + '');");
}
else 
if (welcome_viewer == "yes") {
eval("page" + id + " = window.open(URL);");
}
}








// BLOCK IMAGE TOOLBAR


   if (block_imagebar == "yes") {
document.write('<META HTTP-EQUIV="imagetoolbar" CONTENT="no">')
}



// 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 -->
