// Hiermenus related script
if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

function popIt(pop) {  
var aWindow = window.open('','pope','width=570,height=350,scrollbars=1,resizable=1,top=0,left=0');
	aWindow.location=pop;
        aWindow.focus();
}

function setUserGuides(whom){
var url="/index.shtml";
if (favorite != null) {
switch (favorite) {
case 'bc' :	url = '/clientcare/pcs_west/guides/' + whom;
	     	break;
case 'ab' : 	url = '/clientcare/pcs_west/guides/' + whom; 
	     	break;
case 'sk' :     url = '/clientcare/pcs_west/guides/' + whom;
		break;
case 'mb' : 	url = '/clientcare/pcs_west/guides/' + whom;
	     	break;
case 'on' : 	url = '/clientcare/pcs_east/guides/' + whom; 
	     	break;
case 'qc' :     url = '/clientcare/pcs_east/guides/' + whom;
		break;
case 'nb' :     url = '/clientcare/pcs_east/guides/' + whom;
		break;
case 'nf' :     url = '/clientcare/pcs_east/guides/' + whom;
		break;
case 'pei' :     url = '/clientcare/pcs_east/guides/' + whom;
		break;
case 'ns' :     url = '/clientcare/pcs_east/guides/' + whom;
		break;
}
 window.location.href = url;
}
else {
 url="/ccprovince.html"
popIt(url);
}
}



function popWin(pop, w, h) { 

	var clwidth = w

        var clheight = h 

var aWindow = window.open('','pope','width=' + clwidth + ',height=' + clheight + ',top=0,left=0');

	aWindow.location=pop;

        aWindow.focus();

}



function popItToo(pop) {  



var aWindow = window.open('','pope','width=800,height=480,scrollbars=1,resizable=1,top=0,left=0');



	aWindow.location=pop;



        aWindow.focus();



}


function popWinCenter(pop, w, h) {
        var clwidth = screen.width/2 - w/2;
	var clheight = screen.height/2 - h/2; 
var aWindow = window.open('','pope','width=' + w + ',height=' + h + ',top=' + clheight + ',left=' + clwidth);
	aWindow.location=pop;
        aWindow.focus();
}



function popWin2(pop, w, h) { 

	var clwidth = w

        var clheight = h 

var aWindow = window.open('','pope','width=' + clwidth + ',height=' + clheight + ',top=350,left=400');

	aWindow.location=pop;

        aWindow.focus();

}

function popWin3(pop, w, h) { 
	var clwidth = w
        var clheight = h 
var aWindow = window.open('','pope','width=' + clwidth + ',height=' + clheight + ',top=150,left=300');
	aWindow.location=pop;
        aWindow.focus();

}

function popWin4(pop, w, h) { 

	var clwidth = w

        var clheight = h 

var aWindow = window.open('','pope','width=' + clwidth + ',height=' + clheight + ',scrollbars=1,resizable=1, top=0,left=0');

	aWindow.location=pop;

        aWindow.focus();

}


if (document.layers){



awmImageNames0=Array('/images/nav/home_off.gif','/images/nav/home_on.gif','/images/nav/productsandservices_off.gif','/images/nav/productsandservices_on.gif','/images/nav/webstore_off.gif','/images/nav/webstore_on.gif','/images/nav/clientcare_off.gif','/images/nav/clientcare_on.gif','/images/nav/coolstuff_off.gif','/images/nav/coolstuff_on.gif','/images/nav/aboutus_off.gif','/images/nav/aboutus_on.gif','/images/nav/sendamessage_off.gif','/images/nav/sendamessage_on.gif','/images/nav/dot.gif');



awmImages0=new Array();



//status='Preloading menu images'



for (i=0; i<15; i++) {



//status='Preloading menu images('+i+' of 15)';



awmImages0[i]=new Image(); awmImages0[i].src=awmImageNames0[i];}



status=''}











function getCookieVal (offset) {  



var endstr = document.cookie.indexOf (";", offset);



if (endstr == -1)    



endstr = document.cookie.length;  



return unescape(document.cookie.substring(offset, endstr));



}











function GetCookie (name) {  

var arg = name + "=";  

var alen = arg.length;  

var clen = document.cookie.length;  

var i = 0;  

while (i < clen) {    

var j = i + alen;    

if (document.cookie.substring(i, j) == arg)      

return getCookieVal (j);    

i = document.cookie.indexOf(" ", i) + 1;    

if (i == 0) break;   

}  

return null;

}







var favorite = GetCookie('province');



var favorite1 = GetCookie('product');











function setProvince(which,whom){



var url="/index.shtml";



if(which =="prod"){      // products locations



if (favorite != null) {



switch (favorite) {



case 'bc' : 	url = '/bc/' + whom + 'index.shtml'; // change these!



	     	break;



case 'ab' : 	url = '/ab/' + whom + 'index.shtml'; 



	     	break;



case 'sk' :     url = '/sk/' + whom + 'index.shtml';



		break;



case 'mb' : 	url = '/mb/' + whom + 'index.shtml';



	     	break;



case 'on' : 	url = '/on/' + whom + 'index.shtml'; 



	     	break;



case 'qc' :     url = '/qc/' + whom + 'index.shtml';



		break;


case 'nb' :     url = '/nb/' + whom + 'index.shtml';
		break;
case 'nf' :     url = '/nf/' + whom + 'index.shtml';
		break;
case 'pei' :     url = '/pei/' + whom + 'index.shtml';
		break;
case 'ns' :     url = '/ns/' + whom + 'index.shtml';
		break;
}



 window.location.href = url;



}



else {



 url="/" + which + "province.html?" + whom;



popIt(url);



}



}











if(which =="store"){     // webstore locations

if (favorite != null) {
switch (favorite) {
case 'bc' : 	url = 'http://store.telusmobility.com/bc/index.htm';
	     	break;
case 'ab' : 	url = 'http://store.telusmobility.com/ab/index.htm'; 
	     	break;
case 'sk' :     url = 'http://store.telusmobility.com/sk/index.htm';
		break;
case 'mb' : 	url = 'http://store.telusmobility.com/mb/index.htm';
	     	break;
case 'on' : 	url = 'http://store.telusmobility.com/on/index.htm'; 
	     	break;
case 'qc' :     url = 'http://store.telusmobility.com/qc/index.htm';
		break;
case 'nb' :     url = 'http://store.telusmobility.com/nb/index.htm';
		break;
case 'nf' :     url = 'http://store.telusmobility.com/nf/index.htm';
		break;
case 'pei' :     url = 'http://store.telusmobility.com/pei/index.htm';
		break;
case 'ns' :     url = 'http://store.telusmobility.com/ns/index.htm';
		break;
}
 window.location.href = url;
}
else {
 url="/" + which + "province.html";
popIt(url);
}



}







if(which =="cc") {      // clientcare locations

if ((favorite != null) && (favorite1 != null) && (favorite1 != "NULL")) {

switch (favorite) {

case 'bc' : 	

switch (favorite1) {

case 'dpcs' : 	

if(whom=="cc")

url = '/clientcare/pcs_west/index.shtml';

else

url = '/clientcare/pcs_west/' + whom + '_home.shtml';

	     	break;

case 'pt' : 	

if((whom=="cc")||(whom=="selfserve"))

url = '/clientcare/payandtalk/index.shtml';

else

url = '/clientcare/payandtalk/' + whom + '_home.shtml';

	     	break;

case 'anl' :     
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
		break;
case 'mk' : 	
if(whom=="cc")
url = '/clientcare/mike/index.shtml';
else
url = '/clientcare/mike/' + whom + '_home.shtml';
	     	break;
case 'pg' : 	
if((whom=="cc")||(whom=="selfserve")||(whom=="network_features"))
url = '/clientcare/paging/index.shtml';
else
url = '/clientcare/paging/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'asat' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/autotel_home.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;   	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
	     	break;

case 'ab' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'anl' :     
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
		break;
case 'mk' : 	
if(whom=="cc")
url = '/clientcare/mike/index.shtml';
else
url = '/clientcare/mike/' + whom + '_home.shtml';
	     	break;
case 'pg' : 	
if((whom=="cc")||(whom=="selfserve")||(whom=="network_features"))
url = '/clientcare/paging/index.shtml';
else
url = '/clientcare/paging/' + whom + '_home.shtml';
	    	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'asat' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/autotel_home.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
} 
	     	break;

case 'sk' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'anl' :     
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
		break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';

else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;     	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
		break;



case 'mb' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;  
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'mk' : 	
if(whom=="cc")
url = '/clientcare/mike/index.shtml';
else
url = '/clientcare/mike/' + whom + '_home.shtml';
	     	break;	     	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
	     	break;

case 'on' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'mk' : 	
if(whom=="cc")
url = '/clientcare/mike/index.shtml';
else
url = '/clientcare/mike/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;	     	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
} 
	     	break;

case 'qc' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'anl' :     
if(whom=="cc")
url = '/clientcare/pcs_west/index.shtml';
else
url = '/clientcare/pcs_west/' + whom + '_home.shtml';
		break;
case 'mk' : 	
if(whom=="cc")
url = '/clientcare/mike/index.shtml';
else
url = '/clientcare/mike/' + whom + '_home.shtml';
	     	break;
case 'qt' : 	url = '/clientcare/quebectel/index.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;	     	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
		break;

case 'ns' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'mk' : 	
if(whom=="cc")
url = '/clientcare/mike/index.shtml';
else
url = '/clientcare/mike/' + whom + '_home.shtml';
	     	break;	     		
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
		break;
case 'nb' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
		break;
case 'nf' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
		break;
case 'pei' : 
switch (favorite1) {
case 'dpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'pt' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
case 'epcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'wpcs' : 	
if(whom=="cc")
url = '/clientcare/pcs_east/index.shtml';
else
url = '/clientcare/pcs_east/' + whom + '_home.shtml';
	     	break;
case 'ept' : 	
if((whom=="cc")||(whom=="selfserve"))
url = '/clientcare/payandtalk/index.shtml';
else
url = '/clientcare/payandtalk/' + whom + '_home.shtml';
	     	break;
	     		     		     		     	     	
default : 	url = '/index.shtml';
		popIt("/ccprovince.html");
	     	break;
}
		break;

}
 window.location.href = url;
}

else {
	if(whom=="cc")
		url="/" + which + "province.html";
	else
		url="/" + which + "province.html?" + whom;
popIt(url);
}
}
}


function setNetFeatures(whom){
var url="/index.shtml";
switch (whom) {
	case 'advancevmfax' :
	whomGo1="network_features/using_advanced_voice_mail.shtml";
	whomGo2="network_features/using_advanced_voice_mail.shtml";
	break;
	case 'callerid' :
	whomGo1="network_features/using_caller_id.shtml";
	whomGo2="network_features/using_outbound_call_display.shtml";
	break;
	case 'callforward' :
	whomGo1="network_features/using_call_forwarding.shtml";
	whomGo2="network_features/using_call_forwarding.shtml";
	break;
	case 'callwaiting' :
	whomGo1="network_features/using_call_waiting.shtml";
	whomGo2="network_features/using_call_waiting.shtml";
	break;
	case 'confcall' :
	whomGo1="network_features/using_conference_calling.shtml";
	whomGo2="network_features/using_conference_calling.shtml";
	break;
	case 'donotdisturb' :
	whomGo1="network_features/using_do_not_disturb.shtml";
	whomGo2="network_features/using_do_not_disturb.shtml";
	break;
	case 'minivoicemail' :
	whomGo1="network_features/using_payandtalk_basic_voice_mail.shtml";
	whomGo2="network_features/using_payandtalk_basic_voice_mail.shtml";
	break;
	case 'numericmessaging' :
	whomGo1="network_features/using_numeric_messaging.shtml";
	whomGo2="network_features_home.shtml";
	break;
	case 'textmessaging' :
	whomGo1="network_features/using_text_messaging.shtml";
	whomGo2="network_features_home.shtml";
	break;
	case 'voicemail' :
	whomGo1="network_features/using_pcs_basic_voice_mail.shtml";
	whomGo2="network_features/using_voice_mail.shtml";
	break;
	case 'unifiedmessaging' :
	whomGo1="network_features_home.shtml";
	whomGo2="network_features/using_unified_messaging.shtml";
	break;
	case 'groupconferencing' :
	whomGo1="network_features_home.shtml";
	whomGo2="network_features/using_group_conferencing.shtml";
	break;
	}

if (favorite != null) {
switch (favorite) {
case 'bc' :	url = '/clientcare/pcs_west/' + whomGo2;
	     	break;
case 'ab' : 	url = '/clientcare/pcs_west/' + whomGo2; 
	     	break;
case 'sk' :     url = '/clientcare/pcs_west/' + whomGo2;
		break;
case 'mb' : 	url = '/clientcare/pcs_east/' + whomGo1;
	     	break;
case 'on' : 	url = '/clientcare/pcs_east/' + whomGo1; 
	     	break;
case 'qc' :     url = '/clientcare/pcs_east/' + whomGo1;
		break;
case 'nb' :     url = '/clientcare/pcs_east/' + whomGo1;
		break;
case 'nf' :     url = '/clientcare/pcs_east/' + whomGo1;
		break;
case 'pei' :     url = '/clientcare/pcs_east/' + whomGo1;
		break;
case 'ns' :     url = '/clientcare/pcs_east/' + whomGo1;
		break;
}
 window.location.href = url;
}
else {
 url="/ccprovince.html"
popIt(url);
}
}


function goShop(whichshop){
var url="/index.shtml";    
if (favorite != null) {
switch (favorite) {
case 'bc' : 	url = 'http://store.telusmobility.com/bc/' + whichshop;
	     	break;
case 'ab' : 	url = 'http://store.telusmobility.com/ab/' + whichshop;
	     	break;
case 'sk' :     url = 'http://store.telusmobility.com/sk/' + whichshop;
		break;
case 'mb' : 	url = 'http://store.telusmobility.com/mb/' + whichshop;
	     	break;
case 'on' : 	url = 'http://store.telusmobility.com/on/' + whichshop; 
	     	break;
case 'qc' :     url = 'http://store.telusmobility.com/qc/' + whichshop;
		break;
case 'nb' :     url = 'http://store.telusmobility.com/nb/' + whichshop;
		break;
case 'nf' :     url = 'http://store.telusmobility.com/nf/' + whichshop;
		break;
case 'pei' :     url = 'http://store.telusmobility.com/pei/' + whichshop;
		break;
case 'ns' :     url = 'http://store.telusmobility.com/ns/' + whichshop;
		break;
}
 window.location.href = url;
}
 window.location.href = url;
}





function goShopBuy(whichshop){
var url="/index.shtml";    
if (favorite != null) {
switch (favorite) {
case 'bc' : 	url = 'http://store.telusmobility.com/bc/' + whichshop;
	     	break;
case 'ab' : 	url = 'http://store.telusmobility.com/ab/' + whichshop;
	     	break;
case 'sk' :     url = 'http://store.telusmobility.com/sk/' + whichshop;
		break;
case 'mb' : 	url = 'http://store.telusmobility.com/mb/' + whichshop;
	     	break;
case 'on' : 	url = 'http://store.telusmobility.com/on/' + whichshop; 
	     	break;
case 'qc' :     url = 'http://store.telusmobility.com/qc/' + whichshop;
		break;
case 'nb' :     url = 'http://store.telusmobility.com/nb/' + whichshop;
		break;
case 'nf' :     url = 'http://store.telusmobility.com/nf/' + whichshop;
		break;
case 'pei' :    url = 'http://store.telusmobility.com/pei/' + whichshop;
		break;
case 'ns' :     url = 'http://store.telusmobility.com/ns/' + whichshop;
		break;
}
 window.location.href = url;
}
 window.location.href = url;
}


function goShopPage(whichshop){
var url="/index.shtml";    
if (favorite != null) {
switch (favorite) {
case 'bc' : 	url = 'http://store.telusmobility.com/bc/' + whichshop;
	     	break;
case 'ab' : 	url = 'http://store.telusmobility.com/ab/' + whichshop;
	     	break;
case 'sk' :     url = 'http://store.telusmobility.com/sk/' + whichshop;
		break;
case 'mb' : 	url = 'http://store.telusmobility.com/mb/' + whichshop;
	     	break;
case 'on' : 	url = 'http://store.telusmobility.com/on/' + whichshop; 
	     	break;
case 'qc' :     url = 'http://store.telusmobility.com/qc/' + whichshop;
		break;
case 'nb' :     url = 'http://store.telusmobility.com/nb/' + whichshop;
		break;
case 'nf' :     url = 'http://store.telusmobility.com/nf/' + whichshop;
		break;
case 'pei' :     url = 'http://store.telusmobility.com/pei/' + whichshop;
		break;
case 'ns' :     url = 'http://store.telusmobility.com/ns/' + whichshop;
		break;
}

 window.location.href = url;

}

 window.location.href = url;

}





function goShopAcc(whichshop){

var url="/index.shtml";    

if (favorite != null) {

switch (favorite) {

case 'bc' : 	url = 'http://store.telusmobility.com/bc/' + whichshop;
	     	break;
case 'ab' : 	url = 'http://store.telusmobility.com/ab/' + whichshop;
	     	break;
case 'sk' :     url = 'http://store.telusmobility.com/sk/' + whichshop;
		break;
case 'mb' : 	url = 'http://store.telusmobility.com/mb/' + whichshop;
	     	break;
case 'on' : 	url = 'http://store.telusmobility.com/on/' + whichshop; 
	     	break;
case 'qc' :     url = 'http://store.telusmobility.com/qc/' + whichshop;
		break;
case 'nb' :     url = 'http://store.telusmobility.com/nb/' + whichshop;
		break;
case 'nf' :     url = 'http://store.telusmobility.com/nf/' + whichshop;
		break;
case 'pei' :     url = 'http://store.telusmobility.com/pei/' + whichshop;
		break;
case 'ns' :     url = 'http://store.telusmobility.com/ns/' + whichshop;
		break;
}

 window.location.href = url;

}

 window.location.href = url;

}





function goShopHandsets(whichshop){

var url="/index.shtml";    

if (favorite != null) {

switch (favorite) {

case 'bc' : 	url = 'http://store.telusmobility.com/bc/' + whichshop;
	     	break;
case 'ab' : 	url = 'http://store.telusmobility.com/ab/' + whichshop;
	     	break;
case 'sk' :     url = 'http://store.telusmobility.com/sk/' + whichshop;
		break;
case 'mb' : 	url = 'http://store.telusmobility.com/mb/' + whichshop;
	     	break;
case 'on' : 	url = 'http://store.telusmobility.com/on/' + whichshop; 
	     	break;
case 'qc' :     url = 'http://store.telusmobility.com/qc/' + whichshop;
		break;
case 'nb' :     url = 'http://store.telusmobility.com/nb/' + whichshop;
		break;
case 'nf' :     url = 'http://store.telusmobility.com/nf/' + whichshop;
		break;
case 'pei' :     url = 'http://store.telusmobility.com/pei/' + whichshop;
		break;
case 'ns' :     url = 'http://store.telusmobility.com/ns/' + whichshop;
		break;
}

 window.location.href = url;

}

 window.location.href = url;

}


// This function redirects every selection of autotel from the nav bar
// to the PCS West Autotel Client Care Home page
function setSpecialProvince(which){
var url="/index.shtml";
if(which =="Autotel"){      // products locations
if (favorite != null) {
switch (favorite) {
case 'bc' : 	url = '/bc/autotel_home.shtml'; // change these!
	     	break;
case 'ab' : 	url = '/ab/autotel_satellite.shtml'; 
	     	break;
case 'sk' :     url = '/sk/autotel_satellite.shtml';
		break;
case 'mb' : 	url = '/mb/autotel_satellite.shtml';
	     	break;
case 'on' : 	url = '/on/autotel_satellite.shtml'; 
	     	break;
case 'qc' :     url = '/qc/autotel_satellite.shtml';
		break;
case 'nb' :     url = '/nb/autotel_satellite.shtml';
		break;
case 'nf' :     url = '/nf/autotel_satellite.shtml';
		break;
case 'pei' :     url = '/pei/autotel_satellite.shtml';
		break;
case 'ns' :     url = '/ns/autotel_satellite.shtml';
		break;
}
 window.location.href = url;
}
else {
 url="/clientcare/pcs_west/autotel_home.shtml";
window.location.href = url;
}
}
}



function setCoolProvince(){
var url="/index.shtml";
if (favorite != null) {
switch (favorite) {
case 'bc' : 	url = '/bc/giftguide/';
	     	break;
case 'ab' : 	url = '/ab/giftguide/'; 
	     	break;
case 'sk' :     url = '/sk/prod_index.shtml';
		break;
case 'mb' : 	url = '/mb/giftguide/';
	     	break;
case 'on' : 	url = '/on/giftguide/';
	     	break;
case 'qc' :     url = '/qc/giftguide/';
		break;
case 'nb' :     url = '/nb/giftguide/';
		break;
case 'nf' :     url = '/nf/giftguide/';
		break;
case 'pei' :     url = '/pei/giftguide/';
		break;
case 'ns' :     url = '/ns/giftguide/';
		break;
}
 window.location.href = url;
}
else {
 url="/coolprovince.html";
popIt(url);
}
}

function setAnyProvince(stringtobreak){
var url="/index.shtml";
if (favorite != null) {

// Breaks stringtobreak by the ',' and stores it in the pathstring array
var pathstring = stringtobreak.split(',');

switch (favorite) {
case 'bc' : 	
	if (pathstring[0] == "oneurl") {
		url = '/bc' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[1];
		}
	}
	     	break;
case 'ab' : 	
	if (pathstring[0] == "oneurl") {
		url = '/ab' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[2];
		}
	}
	     	break;
case 'sk' : 	
	if (pathstring[0] == "oneurl") {
		url = '/sk' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[3];
		}
	}
	     	break;
case 'mb' : 	
	if (pathstring[0] == "oneurl") {
		url = '/mb' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[4];
		}
	}
	     	break;
case 'on' : 	
	if (pathstring[0] == "oneurl") {
		url = '/on' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[5];
		}
	}
	     	break;
case 'qc' : 	
	if (pathstring[0] == "oneurl") {
		url = '/qc' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[6];
		}
	}
	     	break;
case 'nb' : 	
	if (pathstring[0] == "oneurl") {
		url = '/nb' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[7];
		}
	}
		break;
case 'nf' : 	
	if (pathstring[0] == "oneurl") {
		url = '/nf' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[8];
		}
	}
		break;
case 'pei' : 	
	if (pathstring[0] == "oneurl") {
		url = '/pei' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[9];
		}
	}
		break;
case 'ns' : 	
	if (pathstring[0] == "oneurl") {
		url = '/ns' + pathstring[1];
  	} else {
		if (pathstring [0] == "multiurl") {
			url = pathstring[10];
		}
	}
		break;
}
 window.location.href = url;
}
else {
 url="/anyprovince.html?" + stringtobreak;
popIt(url);
}
}



function RTeCollector(strParam) { 
        intHeight = 460; 
        intWidth  = 640; 
        intTop=(screen.height/2)-(intHeight/2) 
        intLeft=(screen.width/2)-(intWidth/2) 
        strFeatures='toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height='+intHeight+',width='+intWidth+',top='+intTop+',left='+intLeft;

        winEcollector=window.open('http://ecollector.responsetek.com/eCollector.asp?' + strParam, 'eCollector', strFeatures);

}




function maketop(){
if (window!= top)
top.location.href=location.href;
}
maketop();
