var sb={
	tags: [], //this sets up a place holder for the tags
	domain: "",
	https: false,
	url: "tag/tag.php",
	v_id: 0,

	ScriptTag: null,
	SetTags: function() {
		if (this.https) {
			this.url="https://"+this.domain+"/"+this.url;
		} else {
			this.url="http://"+this.domain+"/"+this.url;
		}
		
		if (this.tags!=null && this.tags.length>0) {
			this.url+="?";
			for (i=0; i<this.tags.length; i++) {
				this.url+="tags[]="+this.tags[i]+"&";
			}
			this.url += "id="+this.id ;
			if( this.cv ) {
				this.url += "&cv="+this.cv ;
			}
			if (this.v_id>0) {
				this.url+="&v_id="+this.v_id;
			}
			this._SendTags();
		} else {
			return false;
		}
	},
	
	SetTagsList: function(sbtagslist) {
		var CurPath=window.location.pathname+window.location.search;
                CurPath=CurPath.replace(/\s/g, "");

		for (domain in sbtagslist) {
			var domain_tags={};
			var sbtagslist_domain=sbtagslist[domain];
			for (path in sbtagslist_domain) {
				var sbtagslist_domain_path=sbtagslist_domain[path];
                                path=path.replace(/\s/g, "");
				if (CurPath.indexOf(path)>=0) {
					for (i=0; i<sbtagslist_domain_path.length; i++) {
						domain_tags[sbtagslist_domain_path[i]]=1;
					}					
				}
			}
			for (tag in domain_tags) {
				this.tags=this.tags.concat(tag);
			}
			this.domain=domain;
			this.SetTags();
			this._ResetObj();
		}
	},
	
	_ResetObj: function() {
		this.url="tag/tag.php";
		this.tags=[];
		this.ScriptTag=null;
	},
	
	_SendTags: function() {
		var e = document.createElement("script");
		e.src=this.url;
		e.type="text/javascript";
		this.ScriptTag=e;   
		document.getElementsByTagName("head")[0].appendChild(e);
	},
	
	_CleanUp: function() {}
}

var sbtagspaths={
	'/services/services.php' : ['QMBS','Overview','WEB-QBMS Services'],
	'/services/pos_services.php' : ['QMBS','Overview','Innovator','WEB-QBMS POS Services'],
	'/services/get_more_faster.php' : ['QMBS','Overview','WEB-QBMS More Faster'],
	'/services/merchant_service/' : ['QMBS','Overview','WEB-QBMS Merchant Service'],
	'/flash/qbms_demo/qbms-both.html' : ['QMBS','Overview','Innovator','WEB-QBMS Demo Both'],
	'/services/merchant_service/features.php' : ['QMBS','Overview','Education','WEB-QBMS Merchant Service Features','MS Shopper'],
	'/services/merchant_service/how_it_works.php' : ['QMBS','Details','Education','WEB-QBMS Merchant How It Works','MS Shopper'],
	'/services/merchant_service/faq.php' : ['QMBS','Details','Education','WEB-QBMS Merchant FAQ','MS Shopper'],
	'/services/merchant_service/pricing.php' : ['QMBS','Details','Pricing','WEB-QBMS Merchant Pricing','MS Shopper'],
	'/services/merchant_service/testimonials.php' : ['QMBS','Details','Community','WEB-QBMS Merchant Testimonials','MS Shopper'],
	'/services/merchant_service_web/already.php' : ['QMBS','Details','Comparison','WEB-QBMS Merchant Web Already Own MS','MS Shopper','MS Web'],
	'/services/merchant_service_web/ready.php' : ['QMBS','Details','Comparison','WEB-QBMS Merchant Web Ready to Own MS','MS Shopper','MS Web'],
	'/services/merchant_service_web/features.php' : ['QMBS','Overview','Education','WEB-QBMS Merchant Web Features','MS Shopper','MS Web'],
	'/services/merchant_service_web/how_to.php' : ['QMBS','Details','Education','WEB-QBMS Merchant Web How To','MS Shopper','MS Web'],
	'/services/merchant_service_web/how_it_works.php' : ['QMBS','Details','Education','WEB-QBMS Merchant Web How It Works','MS Shopper','MS Web'],
	'/services/merchant_service_web/partner.php' : ['QMBS','Details','WEB-QBMS Merchant Web How It Works','MS Shopper','MS Web'],
	'/services/merchant_service_web/faq.php' : ['QMBS','Details','Education','WEB-QBMS Merchant Web How It Works','MS Shopper','MS Web'],
	'/services/merchant_service_web/pricing.php' : ['QMBS','Details','Pricing','WEB-QBMS Merchant Web How It Works','MS Shopper','MS Web'],
	'/flash/terminal_demo/demo.html' : ['QMBS','Details','Innovator','WEB-QBMS Merchant Terminal Demo','MS Shopper'],
	'/services/merchant_service_terminal/features.php' : ['QMBS','Overview','Education','WEB-QBMS Merchant Terminal Features'],
	'/services/merchant_service_terminal/how_it_works.php' : ['QMBS','Details','Education','WEB-QBMS Merchant Terminal How It Works','MS Shopper','MS Terminal'],
	'/services/merchant_service_terminal/faq.php' : ['QMBS','Details','Support','WEB-QBMS Merchant Terminal FAQ','MS Shopper','MS Terminal'],
	'/services/merchant_service_terminal/pricing.php' : ['QMBS','Details','Pricing','WEB-QBMS Merchant Terminal Pricing','MS Shopper','MS Terminal'],
	'/services/merchant_service_terminal/hardware.php' : ['QMBS','Details','WEB-QBMS Merchant Terminal Hardware','MS Shopper','MS Terminal'],
	'/services/merchant_service_terminal/testimonials.php' : ['QMBS','Details','Community','WEB-QBMS Merchant Terminal Testimonials','MS Shopper','MS Terminal'],
	'/services/pos_services.php' : ['QMBS','Overview','WEB-QBMS POSMerchant POS Services'],
	'/services/POS_merchant_account_services/' : ['QMBS','Overview','WEB-QBMS POSMerchant Account Services'],
	'/services/pop-up/posms_demos.php' : ['QMBS','Details','Innovator','WEB-QBMS POSMerchant Demo','MS Shopper','MS for POS'],
	'/services/POS_merchant_account_services/features.php' : ['QMBS','Overview','Education','WEB-QBMS POSMerchant Features','MS Shopper','MS for POS'],
	'/services/POS_merchant_account_services/how_it_works.php' : ['QMBS','Details','Education','WEB-QBMS POSMerchant How It Works','MS Shopper','MS for POS'],
	'/services/POS_merchant_account_services/faq.php' : ['QMBS','Details','Support','WEB-QBMS POSMerchant FAQ','MS Shopper','MS for POS'],
	'/services/POS_merchant_account_services/pricing.php' : ['QMBS','Details','Pricing','WEB-QBMS POSMerchant Pricing','MS Shopper','MS for POS'],
	'/services/POS_merchant_account_services/testimonials.php' : ['QMBS','Details','Community','WEB-QBMS POSMerchant Testimonials','MS Shopper','MS for POS'],
	'/pos_calculator/' : ['QMBS','Overview','WEB-QBMS POSMerchant Calculator'],
	'/services/POS_merchant_account_services/posecomm/index.php' : ['QMBS','Overview','WEB-QBMS POSMerchant Ecom Index','MS Shopper','MS for POS'],
	'/services/POS_merchant_account_services/posecomm/features.php' : ['QMBS','Details','Education','WEB-QBMS POSMerchant Ecom Features','MS Shopper','MS for POS'],
	'/flash/posecomm_demo/posecomm.html' : ['QMBS','Overview','WEB-QBMS POSMerchant Ecom Demo'],
	'/services/POS_merchant_account_services/posecomm/how_to.php' : ['QMBS','Details','Education','WEB-QBMS POSMerchant Ecom How To','MS Shopper','MS for POS Ecommerce'],
	'/services/POS_merchant_account_services/posecomm/how_it_works.php' : ['QMBS','Details','Education','WEB-QBMS POSMerchant Ecom How It Works','MS Shopper','MS for POS Ecommerce'],
	'/services/POS_merchant_account_services/posecomm/partner.php' : ['QMBS','Details','Community','WEB-QBMS POSMerchant Ecom Partners','MS Shopper','MS for POS Ecommerce'],
	'/services/POS_merchant_account_services/posecomm/faq.php' : ['QMBS','Details','Support','WEB-QBMS Merchant FAQ','MS Shopper','MS for POS Ecommerce'],
	'/services/POS_merchant_account_services/posecomm/pricing.php' : ['QMBS','Details','Pricing','WEB-QBMS Merchant Pricing','MS Shopper','MS for POS Ecommerce'],
	'/flash/giftcard_demo/giftcard.html' : ['QMBS','Overview','WEB-QBMS Merchant GiftCard Demo'],
	'/services/POS_merchant_account_services/gift_cards/service_info_features.php' : ['QMBS','Overview','Education','WEB-QBMS Merchant GiftCard Features','MS Shopper','MS Gift Cards'],
	'/services/POS_merchant_account_services/gift_cards/service_info_works.php' : ['QMBS','Details','Education','WEB-QBMS Merchant GiftCard Works','MS Shopper','MS Gift Cards'],
	'/services/POS_merchant_account_services/gift_cards/service_info_card_designs.php' : ['QMBS','Details','Education','WEB-QBMS Merchant GiftCard Designs','MS Shopper','MS Gift Cards'],
	'/services/POS_merchant_account_services/gift_cards/service_info_pricing.php' : ['QMBS','Details','Pricing','WEB-QBMS Merchant GiftCard Pricing','MS Shopper','MS Gift Cards'],
	'/services/POS_merchant_account_services/gift_cards/service_info_faq.php' : ['QMBS','Details','Support','WEB-QBMS Merchant GiftCard FAQ','MS Shopper','MS Gift Cards'],
	'/services/POS_merchant_account_services/gift_cards/card_ordering_overview.php' : ['QMBS','Overview','WEB-QBMS Merchant GiftCard Overview','MS Shopper','MS Gift Cards'],
	'/services/pricing.php' : ['QMBS','Overview','Pricing','WEB-QBMS Merchant Pricing'],
	'/services/examples_at_work/' : ['QMBS','Overview','WEB-QBMS Merchant Examples At Work'],
	'/services/examples_at_work/retail.php' : ['QMBS','Overview','WEB-QBMS Merchant Retail'],
	'/services/examples_at_work/merchants_phonefaxmail.php' : ['QMBS','Overview','WEB-QBMS Merchant Phone Fax Email'],
	'/services/examples_at_work/service_businesses.php' : ['QMBS','Overview','WEB-QBMS Merchant Examples Service Business'],
	'/services/examples_at_work/merchants_multiple_credit.php' : ['QMBS','Overview','WEB-QBMS Merchant Example Multiple Credit'],
	'/services/examples_at_work/merchants_ontheroad.php' : ['QMBS','Overview','WEB-QBMS Merchant Examples On The Road'],
	'/services/apply.php' : ['QMBS','Overview','WEB-QBMS Merchant Apply'],
	'/services/site_help.php' : ['QMBS','Overview','Support','WEB-QBMS Merchant Site Help'],
	'/services/support.php' : ['QMBS','Overview','Support','WEB-QBMS Merchant Support'],
	'/services/data_security_req.php' : ['QMBS','Overview','Support','WEB-QBMS Merchant Data Security'],
	'/accept_credit_cards/sesb/overviewN.php' : ['QMBS','Overview','WEB-QBMS-Overview Already Accept'],
	'/accept_credit_cards/sesb/index.php' : ['QMBS','Home','WEB-QBMS Home '],
	'/accept_credit_cards/sesb/featuresN.php' : ['QMBS','Details','Education','WEB-QBMS-FeaturesBenefitzs - Already Accept','MS Shopper'],
	'/accept_credit_cards/sesb/faqN.php' : ['QMBS','Details','Support','WEB-QBMS-Already Accept FAQ','MS Shopper'],
	'/accept_credit_cards/sesb/peopleN.php' : ['QMBS','Details','Community','WEB-QBMS-Already Accept Testimonials','MS Shopper'],
	'/accept_credit_cards/sesb/priceN.php' : ['QMBS','Details','Pricing','WEB-QBMS-Already Accept Competitive Rates','MS Shopper'],
	'/accept_credit_cards/sesb/creditN.php' : ['QMBS','Details','WEB-QBMS-Already Accept Credit Card Basics','MS Shopper'],
	'/accept_credit_cards/sesb/applyN.php' : ['QMBS','Details','Pricing ','WEB-QBMS-Already Accept Apply','MS Shopper'],
	'/accept_credit_cards/sesb/overviewS.php' : ['QMBS','Overview','WEB-QBMS-New To Credit Cards Overview','MS Shopper'],
	'/accept_credit_cards/sesb/featuresS.php' : ['QMBS','Details','Education','WEB-QBMS-New To Credit Cards Features','MS Shopper'],
	'/accept_credit_cards/sesb/faqS.php' : ['QMBS','Details','Support','WEB-QBMS-New To Credit Cards FAQS','MS Shopper'],
	'/accept_credit_cards/sesb/peopleS.php' : ['QMBS','Details','Community','WEB-QBMS-New To Credit Cards Testimonials','MS Shopper'],
	'/accept_credit_cards/sesb/priceS.php' : ['QMBS','Details','Pricing ','WEB-QBMS-New To Credit Cards Pricing','MS Shopper'],
	'/accept_credit_cards/sesb/creditS.php' : ['QMBS','Details','WEB-QBMS-New To Credit Cards Credit5','MS Shopper'],
	'/accept_credit_cards/sesb/applyS.php' : ['QMBS','Details','Pricing ','WEB-QBMS-New To Credit Cards Apply','MS Shopper'],
	'/accept_credit_cards/pc.php' : ['QMBS','Details','Education','WEB-QBMS-PC','MS Shopper'],
	'/accept_credit_cards/webstore.php' : ['QMBS','Details','Education','WEB-QBMS-Webstore','MS Shopper'],
	'/accept_credit_cards/terminal.php' : ['QMBS','Details','Education','WEB-QBMS-Terminal','MS Shopper'],
	'/accept_credit_cards/call_me.php' : ['QMBS','Details','Pricing','WEB-QBMS-Call me','MS Shopper'],
	'/accept_credit_cards/apply.php' : ['QMBS','Details','Priing','WEB-QBMS-Apply','MS Shopper'],
	'/accept_credit_cards/3reasons_switch.php' : ['QMBS','Details','Education','WEB-QBMS-Already_Accept Top3 Switch','MS Shopper'],
	'/accept_credit_cards/3reasons_new.php' : ['QMBS','Details','Education','WEB-QBMS-New To Credit Cards Top3','MS Shopper'],
	'/accept_credit_cards/activate.php' : ['QMBS','Details','Pricing','WEB-QBMS-Activate','MS Shopper'],
	'/accept_credit_cards/products.php' : ['QMBS','Details','Education','WEB-QBMS-Products','MS Shopper']
}

/**
 * m360.quickbooksmerchantservice.com
 */
sb.id=600;
sb.cv="n";
var sbtagslist= {
	"m360.quickbooksmerchantservice.com" : sbtagspaths
}
sb.SetTagsList(sbtagslist);

/**
 * qb-review.com
 */
sb.id=1003;
sb.cv="n";
var sbtagslist= {
	"www.qb-review.com" : sbtagspaths,
	"www.quickbooksinsider.com" : sbtagspaths
}
sb.SetTagsList(sbtagslist);
