// BEGIN ###############################################################
// code to pop tour window

var tourWin;

function openTour() {
	var width = 600;
	var height = 350;
	tourWin = window.open("../service/cust-serv.tour.01.asp", "tourWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=no");
	}

// END -----------------------------------------------------------------




// BEGIN ###############################################################
// code to pop enlarged prod window

var prodWin;

function openProdEnlarged() {
	var width = 434;
	var height = 525;
	prodWin = window.open("product.popup.enlarged.html", "prodWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=no");
	}

// END -----------------------------------------------------------------




// BEGIN ###############################################################
// code to pop email a friend window

var emailWin;

function openEmail() {
	var width = 434;
	var height = 470;
	emailWin = window.open("popup.email-a-friend.html", "prodWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=no");
	}

// END -----------------------------------------------------------------



// BEGIN ###############################################################
// code to pop email a friend window

var emailWin;

function OpenGiftEmail(filename) {
	var width = 440;
	var height = 465;
	emailWin = window.open('recp_giftemail.asp', "prodWin", "width=" + width+ ",height=" + height + ",left=0,top=0,toolbars=no,scrollbars=no");
	}

// END -----------------------------------------------------------------

// BEGIN ###############################################################
// code to pop faq window

var faqWin;

function openFaq(addedinfo) {
	//====================Modify by MikeYin on 20100804======================
	//var evt = event ? event : (window.event ? window.event : null);
	//var evtsrc = evt.srcElement ? evt.srcElement : evt.target;
	//evtsrc = evt.target || evt.srcElement;
	if (addedinfo.indexOf("sImage") > 0){
		var evtsrc = document.activeElement;
		//if (evtsrc.tagName == "BODY"){
		if (navigator.userAgent.indexOf("Chrome") > 0){
				var evt = window.event || arguments[0];
				evtsrc = evt.target.parentNode || evt.srcElement.parentNode;
				if (evtsrc.tagName == "A"){
					evtsrc =evtsrc.parentNode;
				}
		}else if (evtsrc.tagName == "A" && navigator.userAgent.indexOf("Firefox") > 0){
			evtsrc = evtsrc.parentNode;
		}
		if (addedinfo.indexOf("=") != -1){
			var num = addedinfo.indexOf("=");
			var len = addedinfo.length;
			var str = addedinfo.substring(num+1,len);
			var popstr = "../plow_assets/images/about/" + str + ".jpg";
			show_on(evtsrc,popstr);
		}		
	}else{
		var width = 454;
		var height = 470;
		faqWin = window.open(addedinfo, "faqWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=yes,scrolling=yes");	
	}
	//====================End by MikeYin on 20100804=========================
	//var width = 454;
	//var height = 470;
	//faqWin = window.open(addedinfo, "faqWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=yes,scrolling=yes");
}
// END -----------------------------------------------------------------


// BEGIN ###############################################################
// code to checkout help window

var chkhlpWin;

function openCheckHelp(help) {
	var width = 300;
	var height = 325;
	chkhlpWin = window.open(help, "chkhlpWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=yes,scrolling=yes");
	}

// END -----------------------------------------------------------------


// BEGIN ###############################################################
// code to quickorder help window

var quickorderWin;

function openQuickorderHelp() {
	var width = 300;
	var height = 325;
	quickorderWin = window.open("popup.quickorder-help.html", "quickorderWin", "width=" + width+ ",height=" + height + ",toolbars=no,scrollbars=yes,scrolling=yes");
	}

// END -----------------------------------------------------------------


