function drawProtoFrame(count, user, orientation, rand) {
	var size = 100;
	
	var frameWidth  = '100px';
	var frameHeight = '100px';	
	var count = (count == null) ? 3 : count;
	var orientation = (orientation == null) ? 1 : orientation;
	var url = 'http://www.prototyp.pl/widget/show/count/' + count + '/orientation/' + orientation;
	if (rand == 1) {
		url += '/rand/1';
	}
	if (user != null ) {
		url += '/user/'+user;
	}
	if (orientation == 1) {
		frameWidth  = count * size;
		frameHeight = '120px';
	} else {
		frameHeight = (count * size) + 40;		
	}

	var html = '';
  html += '<iframe ALLOWTRANSPARENCY=true style="width: ' + frameWidth + 'px; ' + 
              'height: ' + frameHeight + 'px;" ' + 
              'src="'+ url +'" scrolling="no" frameborder="0">' +
              '</iframe>';
  document.write(html);
}