<!-- Begin VIEWER AND POP-UP OPTIONS CODE

// ONLY USE lowercase FOR ALL OPTIONS

// GALLERY VIEWER OPTIONS

var viewer 		= "popup"	// OPTIONS: | new | popup | same | New browser or a popup
var width 		= "800"		// WIDTH OF THE POPUP
var height 		= "830"		// 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

// 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	 	= "no"		// yes/ FAQ FULL SCREEN OR no/POPUP MODE

// ===================================================================================

var Page_URL   = escape(window.location.href)
var Page_Title = escape(window.document.title)

// goToSocial may or may not be invoked by copyright.js
// ====================================================

function goToSocial(SocialBrand){
	switch (SocialBrand)
	{
		case "bebo"     :	windowHandle = window.open('http://www.bebo.com/', 'windowName') ;														break ;
		case "blinklist":	windowHandle = window.open('http://www.blinklist.com/?Action=Landing/landing.php&i18n=es', 'windowName') ;				break ;
		case "blogmarks":	windowHandle = window.open('http://blogmarks.net/register', 'windowName');												break ;
		case "delicious":	windowHandle = window.open('http://del.icio.us/post?url=' + Page_URL + '&title=' + Page_Title, 'windowName');			break ;
		case "digg"		:	windowHandle = window.open('http://digg.com/submit?url=' + Page_URL +  '&title=' + Page_Title, 'windowName');			break ;
		case "facebook"	:	windowHandle = window.open('http://www.facebook.com/share.php?u=' + Page_URL + '&title=' + Page_Title, 'windowName');	break ;
		case "fark"		:	windowHandle = window.open('http://www.fark.com/cgi/submit.pl', 'windowName');											break ;
		case "furl"		:	windowHandle = window.open('http://www.furl.net/storeIt.jsp?u=' + Page_URL + '&t=' + Page_Title, 'windowName');			break ;
		case "linkedin"	:	windowHandle = window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + Page_URL + '&title=' + Page_Title, 'windowName');	break ;
		case "magnolia"	:	windowHandle = window.open('http://ma.gnolia.com/bookmarklet/add?url=' + Page_URL + '&title=' + Page_Title, 'windowName');				break ;
		case "myspace"  :	windowHandle = window.open('http://www.myspace.com/', 'windowName') ;							break ;
		case "reddit"	:	windowHandle = window.open('http://reddit.com/submit?url=' + Page_URL, 'windowName');			break ;
		case "sphinn"	:	windowHandle = window.open('http://www.sphinn.com/login/', 'windowName');						break ;
		case "stumble"	:	windowHandle = window.open('http://www.stumbleupon.com/submit?url=' + Page_URL, 'windowName');	break ;
		case "technocrati":	windowHandle = window.open('http://www.technocrati.com/faves?add=' + Page_URL, 'windowName');	break ;
		case "twitter"	:	windowHandle = window.open('http://twitter.com/home?status=' + Page_URL, 'windowName');			break ;
		default			:	alert ("Unknown Social Brand.") ;
	}
	return ;
}

// START IMAGE VIEW CODE - Called from Ordering_1.php
// =================================================

function ViewImage(data) {
	if (viewer == "popup") {
		windowHandle = window.open('image-viewer.php' + '?' + data,'windowName',',scrollbars='+scrollbars+',resizable=yes,toolbar='+tool+',menubar='+menu+',width='+width+',height='+height+'');
	} else if (viewer == "new") {
		windowHandle = window.open('image-viewer.php' + '?' + data,'windowName');
	} else if (viewer == "same") {
		window.location = ('image-viewer.php' + '?' + data);
	}
}

// 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);");
	}
}

// Hover Function for IE8 Support
// ==============================

IEMhover = function() {
	var IEMh = document.getElementById("menunav").getElementsByTagName("LI");
	for (var i=0; i<IEMh.length; i++) {
		IEMh[i].onmouseover=function() {
			this.className+=" IEMhover";
		}
		IEMh[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" IEMhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", IEMhover);

// End -->
