<!-- Begin POP-UP SIZES AND OPTIONS CODE

// ONLY USE lowercase FOR ALL OPTIONS


// GALLERY VIEWER OPTIONS

var viewer 		= "same"	// OPTIONS: | new | popup | same | New browser or a popup
var viewer2 	= "popup"	// 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


// WELCOME MESSAGE OPTIONS


var welcome_width	= "700"		// WELCOME POPUP WIDTH
var welcome_height	= "375"		// 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


// FAQ POPUP OPTIONS

var FAQ_width 		= 500		// FAQ POPUP HEIGHT
var FAQ_height 		= 500		// FAQ POPUP HEIGHT
var faqscrollbarS 	= "0"		// TURN ON FAQ SCROLLBARS "1" FOR ON "0" FOR OFF
var FAQviewer	 	= "yes"		// yes/ FAQ FULL SCREEN OR no/POPUP MODE

// PRODUCT POPUP OPTIONS

var productscrollbarS 	= "0"		// TURN ON PRODUCT SCROLLBARS "1" FOR ON "0" FOR OFF
var PRODUCTviewer	 	= "popup"	// OPTIONS: | new | popup | same | New browser or a popup
var productURL  = "product-image.aspx" // default page for product images

var p2page          = "same"    // Simple Post to html (or other) page.


// COPYRIGHT 2007 © 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

//// START IMAGE VIEW CODE 2

//function ViewImage2(data) {
//   if (viewer2 == "popup") {
//    windowHandle = window.open('image-viewer2.htm' + '?pic=' + data,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');

//}
//else if (viewer2 == "new") {
//    windowHandle = window.open('image-viewer2.htm' + '?' + data,'windowName');
//}
//else if (viewer2 == "same") {
//    window.location = ('image-viewer2.htm' + '?' + data);
//}
//}

//// END IMAGE VIEW CODE

// 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);");
}
}


// START FAQ POPUP

function popUpFAQ(URL) {
day = new Date();
id = day.getTime();
   if (FAQviewer == "no") {
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + faqscrollbarS + ',location=0,statusbar=0,menubar=0,resizable=1,width='+FAQ_width+',height='+FAQ_height+'');");
}
else 
if (FAQviewer == "yes") {
eval("page" + id + " = window.open(URL);");
}
}

// START PRODUCT-IMAGE POPUP ASPX

function popUpProduct(productID, titleText, descText) {
   if (PRODUCTviewer == "popup") {
    windowHandle = window.open(productURL + '?product=' + productID+ '&title=' + titleText + '&desc=' + descText,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');

}
else if (PRODUCTviewer == "new") {
    windowHandle = window.open(productURL + '?product=' + productID,'windowName');
}
else if (PRODUCTviewer == "same") {
    window.location = (productURL + '?product=' + productID);
}
}

// END PRODUCT-IMAGE POPUP ASPX

// START WINDOW POPUP (Simple)

function Post2page(data) {
   if (p2page == "popup") {
    windowHandle = window.open(data,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');

}
else if (p2page == "new") {
    windowHandle = window.open(data,'windowName');
}
else if (p2page == "same") {
    window.location = (data);
}
}

// END IMAGE VIEW CODE

// End -->