﻿function displayheaderfooter(button,heb){
	var filename;
	if (heb==1){
		if (button==5){
			filename = 'header_heb.swf';
		}else{
			filename = 'header_heb_nosound.swf';
		}
	}else{
		if (button==1){
			filename = 'header.swf';
		}else{
			filename = 'header_nosound.swf';
		}	
	}
	
	var str="   <div class='header'>"+
	"				<div class='header2'>"+
	"					<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'"+
	"				   codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'"+
	"				   width='766' height='267'>"+
	"					<param name='movie' value='/flash/" + filename + "?button=" + button + "'> "+
	"					<param name='quality' value='high'>"+
	"					<!--[if !IE]> <-->"+
	"					<object data='/flash/" + filename + "?button=" + button + "'"+
	"							width='766' height='267' type='application/x-shockwave-flash'>"+
	"					 <param name='quality' value='high'>"+
	"					 <param name='menu' value='false'>"+
	"					 <param name='pluginurl' value='http://www.macromedia.com/go/getflashplayer'>"+
	"					 FAIL (the browser should render some flash content, not this)."+
	"					</object>"+
	"					<!--> <![endif]-->"+
	"				   </object>"+
	"				</div>"+
	"			</div>";    	
	
	Header.innerHTML = str;
    
	
	
    str="   <div class='footer2'>"+
    "					<div style='width:22px; height:63px; float:left'></div>"+
	"			  	<div style='width:259px; height:63px; float:left' class='pol'>"+
	"					<br style='line-height:28px'>"+
	"			    	www.bcasol.com &copy; 2006 &nbsp;&nbsp;&nbsp;<span style='color:#C2C2C2 '></span> &nbsp;&nbsp;&nbsp;<a href='index-5.html'><!--Privacy Policy--> </a>"+
	"				</div>";
	if (heb==1){
			str += '	<div style="width:350px; height:63px; float:right"><br style="line-height:28px">כל הזכויות שמורות לחברת בי & סי פתרונות מתקדמים בע"מ</div>';
	}else{
			str += "	<div style='width:350px; height:63px; float:right'><br style='line-height:28px'>All Rights Reserved for B&C Advanced Solutions LTD.</div>";
	}
	
	str += "			</div>"+
	"		</div>"
	
    Footer.innerHTML = str;
}

function getQueryVariable(variable) 
{ 
  var query = window.location.search.substring(1); 
  var vars = query.split("&"); 
  var returned = 0; 
  for (var i=0;i<vars.length;i++) 
  { 
    var pair = vars[i].split("="); 
    if (pair[0] == variable) 
    { 
      returned = pair[1]; 
    } 
  } 
  return returned; 
}  


