try{
if (self != top)
{
   if (document.images)
      top.location.replace(window.location.href);
   else
      top.location.href = window.location.href;
}
}catch(er){}

function Rcertify() { 
	rCertify();
} 
function rCertify() { 
  popupWin = window.open
  ('http://www.bbbonline.org/cks.asp?id=10201258412620727', 'Participant', 'location=yes,scrollbars=yes,width=450,height=300') 
  window.name = 'opener'; 
} 
function openRepWindow(url) { 
  popupWin = window.open
  (url, 'Participant', 'location=no,scrollbars=yes,width=510,height=350') 
  window.name = 'repPopup'; 
}
function openPinWindow(url, id) { 
  popupWin = window.open
  (url, 'Participant', 'location=no,scrollbars=yes,width=350,height=350') 
  window.name = id; 
}
function openPinWindow2(url, id, width, height) { 
  popupWin = window.open
  (url, 'Participant', 'location=no,scrollbars=yes,width=' + width + ' ,height=' + height) 
  window.name = id; 
}

function openMacromedia() { 
  url = 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'
  popupWin = window.open
  (url, 'Participant', '') 
  window.name = 'macromedia'; 
}


function HelpArray(len) {
	this.length=len
}
HelpText = new HelpArray(5)
var startTr = "<tr><td class='tdBullet'>&nbsp;&nbsp;<img src='/images/redbullet.gif' alt='' />&nbsp;</td><td class='tdBigFont'>";
var endTr = "</td></tr>"
var aryImages = new Array(5);
aryImages[0] = "/ica/i/police_.jpg";
aryImages[1] = "/ica/i/museum_.jpg";
aryImages[2] = "/ica/i/firstnations.jpg";					
aryImages[3] = "/ica/i/school_609538.jpg";
aryImages[4] = "/ica/i/provincial_609000.jpg";
aryImages[5] = "/ica/i/municipal.jpg";
  for (i=0; i < aryImages.length; i++) {
    var preload = new Image();
    preload.src = aryImages[i];
  }

//create variable for initial common html data
htmlStart = "<table border='0' cellpadding='0' cellspacing='0'><tr><td style='background:url(/ica/i/infobox.jpg) no-repeat;' valign='top' width='199'>"  
htmlStart += "<table border='0' cellpadding='0' cellspacing='0'><tr><td height='43' style='color:white;font-size:15px;font-weight:bold;text-align:center;' width='185'>" 

  
HelpText[0] = htmlStart + "Police &amp; Fire</td></tr><tr><td height='127' align='center'><image src='/ica/i/police_.jpg' height='127'></td></tr></table></td>"
HelpText[0] += "<td style='background:url(/ica/i/tablets.jpg) no-repeat;width:350px;height:185px;color:#CC9933;' valign='top'><div style='padding-top:25px;padding-left:20px;padding-right:20px;'>"
HelpText[0] += "International Coats of Arms sells a variety of products including Police Pins, Badges and Crests. We are now keeping a supply of some of our most commonly demanded pins <B>In Stock.</B> Currently we are offering pins for school "
HelpText[0] += "campaigns (Drug-free etc.), flags, and ribbons used for commemorative causes. These are nice quality pins, and we are able to offer great pricing and fast turn around time on these items.<BR>Call us for more details."
HelpText[0] += "</div></td></tr></table>";

HelpText[1] = htmlStart + "Museums</td></tr><tr><td height='127' align='center'><image src='/ica/i/museum_.jpg' height='127'></td></tr></table></td>"
HelpText[1] += "<td style='background:url(/ica/i/tablets.jpg) no-repeat;width:350px;height:185px;color:#CC9933;' valign='top'><div style='padding-top:25px;padding-left:20px;padding-right:20px;'>"
HelpText[1] += "International Coats of Arms sells a variety of products including Museum Pins and Museum Key Chains. We are now keeping a supply of some of our most commonly demanded pins <B>In Stock.</B><br>Call us for more details."
HelpText[1] += "</div></td></tr></table>";

HelpText[2] = htmlStart + "First Nations</td></tr><tr><td height='127' align='center'><image src='/ica/i/firstnations.jpg' height='127'></td></tr></table></td>"
HelpText[2] += "<td style='background:url(/ica/i/tablets.jpg) no-repeat;width:350px;height:185px;color:#CC9933;' valign='top'><div style='padding-top:25px;padding-left:20px;padding-right:20px;'>"
HelpText[2] += "All products shipped by International Coats of Arms are <B>100% guaranteed.</B>" 
HelpText[2] += "We are confident that your order will be received on time, undamaged and will meet your expectations. If you are in any way dissatisfied with the quality, condition or workmanship of your order, you can return it to us for a full refund."
HelpText[2] += "</div></td></tr></table>";

HelpText[3] = htmlStart + "Schools</td></tr><tr><td height='127' align='center'><image src='/ica/i/school_609538.jpg' height='127'></td></tr></table></td>"
HelpText[3] += "<td style='background:url(/ica/i/tablets.jpg) no-repeat;width:350px;height:185px;color:#CC9933;' valign='top'><div style='padding-top:25px;padding-left:20px;padding-right:20px;'>"
HelpText[3] += "International Coats of Arms sells a variety of products including School Pins and School Key Chains. We are now keeping a supply of some of our most commonly demanded pins <B>In Stock.</B> Currently we are offering pins for school "
HelpText[3] += "campaigns (Drug-free etc.), flags, and ribbons used for commemorative causes. These are nice quality pins, and we are able to offer great pricing and fast turn around time on these items.<BR>Call us for more details."
HelpText[3] += "</div></td></tr></table>";

HelpText[4] = htmlStart + "Provincial Parks<br>&amp; Tourism</td></tr><tr><td height='127' align='center'><image src='/ica/i/provincial_609000.jpg' height='127'></td></tr></table></td>"
HelpText[4] += "<td style='background:url(/ica/i/tablets.jpg) no-repeat;width:350px;height:185px;color:#CC9933;' valign='top'><div style='padding-top:25px;padding-left:20px;padding-right:20px;'>"
HelpText[4] += "International Coats of Arms sells a variety of products including Provincial Park Pins and Key Chains. We are now keeping a supply of some of our most commonly demanded pins <B>In Stock.</B><br>Call us for more details."
HelpText[4] += "</div></td></tr></table>";

HelpText[5] = htmlStart + "Municipal<br>&amp; Government</td></tr><tr><td height='127' align='center'><image src='/ica/i/municipal.jpg' height='127'></td></tr></table></td>"
HelpText[5] += "<td style='background:url(/ica/i/tablets.jpg) no-repeat;width:350px;height:185px;color:#CC9933;' valign='top'><div style='padding-top:25px;padding-left:20px;padding-right:20px;'>"
HelpText[5] += "<img src='/ica/i/bullet2tr.gif'>&nbsp;Shipping including (Rush available)<br><img src='/ica/i/bullet2tr.gif'>&nbsp;Free design help and advice<br><img src='/ica/i/bullet2tr.gif'>&nbsp;Discounts for charitable organizations<br>"
HelpText[5] += "<img src='/ica/i/bullet2tr.gif'>&nbsp;Payment 50/50 by cheque, MC,VISA,AMEX"
HelpText[5] += "</div></td></tr></table>";

					
ScriptText = new HelpArray(5)					
var i = -1
function playHelp()
{
	var theDiv = document.getElementById("div1")
	if (i == 5) 
	{
		i = 0
	}
	else
	{
		i++
	}
	try{
		theDiv.filters[0].apply()
	}catch(er){}
	
	theDiv.innerHTML = HelpText[i]
	
	try{
		theDiv.filters[0].play()
	}catch(er){}

	mytimeout = setTimeout("playHelp()",10000)
}

function hideSelectedTab(){
	//clear the selected Button
	var ctr=1;	
	while(document.getElementById("tab" + ctr) != null){
		tab = document.getElementById("tab" + ctr);
		tab.className="tab" + ctr;		
		ctr++;
	}	
}

function moveBtn(tabSelected){
	hideSelectedTab();//clear the selected Button
	tab = document.getElementById("tab" + tabSelected);
	tab.className="tabSel" + tabSelected;			
}

