/* Omniture Offermatica code inclusion */

document.write('<scr'+'ipt type="text/javascript" src="//www.vodafone.com.au/stelprd/fragments/vfa2_frag_includes/js/vcab-testing.js"></scr'+'ipt>');

/* Code customized by Datalicious, insights@datalicious.com, datalicious.com */

/* Vodafone.com.au Business vcab mBoxes 20090504 V1 */

/*************************** CUSTOM EVENTS **************************/

var ttCurrentSite="vcab";
var ttPreviousSite="";
var ttVisitorType="";
var ttLastSearchTerm="";
var ttLastCampaign="";
var ttPageCountBusiness=0;

function container0(action,ttPage) {
if (action == 'embed') {	
	ttPage=ttPage.toLowerCase();
	if (ttPage == '')
		ttPage=s.getPageName().toLowerCase();
	ttPage=replaceAll(ttPage,'_','-');
	ttPage=replaceAll(ttPage,' ','-');
	ttPage=replaceAll(ttPage,'/','-');
	ttPage=replaceAll(ttPage,'---','-');
	ttPage=replaceAll(ttPage,'--','-');	
	ttPreviousSite=s.getPreviousValue(s.pageName,'s_prop25','');
	ttVisitorType=s.getNewRepeat().toLowerCase();
	ttLastCampaign=s.getQueryParam('cid').toLowerCase();
	if ((document.referrer.indexOf('searchresults') >= 0) || (document.referrer.indexOf('google.') >= 0) || (document.referrer.indexOf('search.live.') >= 0) || (document.referrer.indexOf('search.yahoo.') >= 0) || (document.referrer.indexOf('search.msn.') >= 0) || (document.referrer.indexOf('ask.') >= 0) || (document.referrer.indexOf('altavista.') >= 0) || (document.referrer.indexOf('search.aol.') >= 0))
		ttLastSearchTerm=s.getQueryParam('q,p,query,mt,search,keywords,ask',':',document.referrer);
	if (document.referrer.indexOf('myvodafone.com.au') >= 0)
		ttPreviousSite="vcamv";
	ttPreviousSite=s.split(ttPreviousSite,':');
	ttPreviousSite=ttPreviousSite[0];
	ttPageCountBusiness=s.getAndPersistValue(ttPageCountBusiness,'ttPageCountBusiness',365);
	ttPageCountBusiness=Number(ttPageCountBusiness);
	ttPageCountBusiness=ttPageCountBusiness+1;
	ttPageCountBusiness=String(ttPageCountBusiness);
	ttPageCountBusiness=s.getAndPersistValue(ttPageCountBusiness,'ttPageCountBusiness',365);
	document.write('<div class="mboxDefault"><\/div>');
	mboxCreate('vcab:category-affinity',
		'user.categoryId=business',
		'profile.ttPreviousSite=' + ttPreviousSite,
		'profile.ttVisitorType=' + ttVisitorType,
		'profile.ttLastSearchTerm=' + ttLastSearchTerm,
		'profile.ttLastCampaign=' + ttLastCampaign,
		'profile.ttPageCountBusiness=' + ttPageCountBusiness
	);
	document.write('<div class="mboxDefault"><\/div>');
	mboxCreate('category-affinity');
}
}

/************************* CONTAINER CONTENT ************************/

var str="";

if (!dirPth || dirPth=="") {
	var dirPth = "stelprd";
}

function container1(action,page) {
	page = page.toLowerCase();
	if ((action == 'embed') && (page == "vcab:mobile-broadband")) {
		str='';
		str+='<!--BEGIN PROMO MODULE-->';
		str+='<div class="mod1Col">';
		str+='    <div class="modBorder">';
		str+='        <div class=" modBody modHeight282NoBorder">';
		str+='            <a href="http:\/\/store.vodafone.com.au\/OfferView.aspx?oid=95">';
		str+='                <img src="\/' + dirPth + '\/fragments\/vfa2_frag_includes\/img/\/5gb_mobile_broadband_promo.jpg" width="186" height="280" alt="$39 month 5GB mobile broadband" \/>';
		str+='            <\/a>';
		str+='        <\/div>';
		str+='    <\/div>';
		str+='    <div class="modFooter"><hr \/><\/div>';
		str+='<\/div>';
		str+='<!--END PROMO MODULE -->';
		document.write(str);
	}
	if ((action == 'embed') && (page == "vcab:business-solutions")) {
		str='';
		str+='<!--BEGIN PROMO MODULE-->';
		str+='<div class="mod1Col">';
		str+='    <div class="modBorder">';
		str+='        <div class=" modBody modHeight282NoBorder">';
		str+='            <a href="http:\/\/store.vodafone.com.au\/OfferView.aspx?oid=74">';
		str+='                <img src="\/' + dirPth + '\/fragments\/vfa2_frag_includes\/img/\/blackberry_promo.jpg" width="186" height="280" alt="FREE Blackberry $79 MyBusiness Cap" \/>';
		str+='            <\/a>';
		str+='        <\/div>';
		str+='    <\/div>';
		str+='    <div class="modFooter"><hr \/><\/div>';
		str+='<\/div>';
		str+='<!--END PROMO MODULE -->';
		document.write(str);
	}
	if ((action == 'embed') && (page == "vcab:vodafone-services"))  {
		str='';
		str+='<!--BEGIN SPOTLIGHT MODULE -->';
		str+='<div class="mod1Col">';
		str+='    <div class="modBody modCTAHeight">';
		str+='        <a href="http:\/\/www.vodafone.com.au\/personal\/plans\/joiningvodafone\/morereasonstoswitch\/index.htm"><img src="\/' + dirPth + '\/fragments\/vfa2_frag_includes\/img\/online_store_Spotlight.jpg" width="186" height="168" alt="" \/><\/a>';
		str+='    <\/div>';
		str+='    <div class="modFooter"><hr \/><\/div>';
		str+='<\/div>';
		str+='<!--END SPOTLIGHT MODULE -->';
		document.write(str);
	}
}

/*
function container2(action,page) {
	page = page.toLowerCase();
	if ((action == 'embed') && (page == "vcab:mobile-broadband"))  {
		str='';
		str+='<!--BEGIN SPOTLIGHT MODULE -->';
		str+='<div class="mod1Col">';
		str+='    <div class="modBody modCTAHeight">';
		str+='        <a href="http:\/\/www.vodafone.com.au\/personal\/plans\/joiningvodafone\/morereasonstoswitch\/index.htm"><img src="\/' + dirPth + '\/fragments\/vfa2_frag_includes\/img\/online_store_Spotlight.jpg" width="186" height="168" alt="" \/><\/a>';
		str+='    <\/div>';
		str+='    <div class="modFooter"><hr \/><\/div>';
		str+='<\/div>';
		str+='<!--END SPOTLIGHT MODULE -->';
		document.write(str);
	}	
}
*/
