/*
##############################################################################################
##############################################################################################
##########                                                                           #########
########## THIS CODE IS COPYRIGHT OF IWOLRD CREATIVE - http://www.iworldcreative.com #########
########## USE OR REPLICATION OF THIS CODE IN WHOLE OR IN PART WITHOUT THE PRIOR     #########
########## WRITTEN PERMISSION OF IWORLD CREATIVE IS STRICTLY FORBIDDEN.              #########
##########                                                                           #########
##############################################################################################
##############################################################################################
*/

//alert('test');

function shadeblocks(iblock){
	if (iblock==1){
		document.getElementById("leftblock1").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock1").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock1").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock1").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock1").style.backgroundRepeat="repeat-x";	
		document.getElementById("rightblock1").style.border="1px solid #FF0000";
	}
	else if (iblock==2){
		document.getElementById("leftblock2").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock2").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock2").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock1").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock1").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock1").style.border="1px solid #FF0000";
		document.getElementById("rightblock2").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock2").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock2").style.border="1px solid #FF0000";
		document.getElementById("rightblock3").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock3").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock3").style.border="1px solid #FF0000";	
	}
	else if (iblock==3){
		document.getElementById("leftblock3").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock3").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock3").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock3").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock3").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock3").style.border="1px solid #FF0000";
		document.getElementById("rightblock4").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock4").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock4").style.border="1px solid #FF0000";	
	}
	else if (iblock==4){
		document.getElementById("leftblock4").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock4").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock4").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock5").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock5").style.backgroundColor="#c5c5c5";
		document.getElementById("rightblock5").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock5").style.border="1px solid #FF0000";	
	}
	else if (iblock==5){
		document.getElementById("leftblock1").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock1").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock1").style.border="1px solid #FF0000";
		document.getElementById("leftblock2").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock2").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock2").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock1").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock1").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock1").style.border="1px solid #FF0000";	
	}
	else if (iblock==6){
		document.getElementById("leftblock2").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock2").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock2").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock2").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock2").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock2").style.border="1px solid #FF0000";	
	}
	else if (iblock==7){
		document.getElementById("leftblock2").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock2").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock2").style.border="1px solid #FF0000";
		document.getElementById("leftblock3").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock3").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock3").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock3").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock3").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock3").style.border="1px solid #FF0000";	
	}
	else if (iblock==8){
		document.getElementById("leftblock3").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock3").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock3").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock4").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock4").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock4").style.border="1px solid #FF0000";	
	}
	else if (iblock==9){
		document.getElementById("leftblock4").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("leftblock4").style.backgroundRepeat="repeat-x";
		document.getElementById("leftblock4").style.border="1px solid #FF0000";
		
		document.getElementById("rightblock5").style.backgroundImage="url(wp-content/themes/thesis/custom/images/background_block.gif)";
		document.getElementById("rightblock5").style.backgroundColor="#c5c5c5";
		document.getElementById("rightblock5").style.backgroundRepeat="repeat-x";
		document.getElementById("rightblock5").style.border="1px solid #FF0000";	
	}

}
function clearblocks(){
document.getElementById("leftblock1").style.backgroundImage="none";
document.getElementById("leftblock2").style.backgroundImage="none";
document.getElementById("leftblock3").style.backgroundImage="none";
document.getElementById("leftblock4").style.backgroundImage="none";
document.getElementById("rightblock1").style.backgroundImage="none";
document.getElementById("rightblock2").style.backgroundImage="none";
document.getElementById("rightblock3").style.backgroundImage="none";
document.getElementById("rightblock4").style.backgroundImage="none";
document.getElementById("rightblock5").style.backgroundImage="none";
document.getElementById("rightblock5").style.backgroundColor="#efefef";


document.getElementById("leftblock1").style.border="solid 1px #FFFFFF";
document.getElementById("leftblock2").style.border ="solid 1px #FFFFFF";
document.getElementById("leftblock3").style.border ="solid 1px #FFFFFF";
document.getElementById("leftblock4").style.border ="solid 1px #FFFFFF";
document.getElementById("rightblock1").style.border ="solid 1px #FFFFFF";
document.getElementById("rightblock2").style.border ="solid 1px #FFFFFF";
document.getElementById("rightblock3").style.border ="solid 1px #FFFFFF";
document.getElementById("rightblock4").style.border ="solid 1px #FFFFFF";
document.getElementById("rightblock5").style.border ="solid 1px #FFFFFF";



}
