$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$("a[rel='slide']").colorbox({slideshow:true});
	
	//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
});


function ShowAns(obj){
	for(i=1; i<(11); i++){
		if(obj == 'ans'+i){
			document.getElementById(obj).style.display = 'block';
		}
		else{
			document.getElementById('ans'+i).style.display = 'none';
		}
	}
}
function HideAns(obj){
	document.getElementById(obj).style.display = 'none';
}

function popup(url,wd,hg){
	window.open(url, '','scrollbars=no,statusbar=no,resizable=no,width='+wd+',height='+hg);
}